Step 1:
download python.org/downloads/
Step 2:
setup a directory to install Python via the command line
"mkdir python3ver" for the python binaries
and "mkdir pythonProjects" for the python projects
Step 3:
during the installation
setup the install folder to python3ver\py3111\
then press 'install'
step 4:
via the command line go to pythonProjects
then type
python -m venv my_new_env
once it is done
tree my_new_env
to see the result
Step 5:
To activate the environment
Inside the PythonProjects folder
type
My_new_env\Scripts\activate
the prompt then will change showing (My_new_env)
from there Python can be launched.
To deactivate the environment
just type 'deactivate'
that's the end of the video
1 comment:
on linux the way to activate the environment is by using 'source'
source /path/to/venv/bin/activate
Post a Comment