Jan 6, 2023

Installing Python with multiple environments

[フレーム]

Step 1:


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:

Anonymous said...

on linux the way to activate the environment is by using 'source'

source /path/to/venv/bin/activate

March 14, 2023 at 2:29 AM

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • A little pseudo painting using ArtRage2 - "Spring" is the word !
  • What is it lately, this unexplainable need to change everything that works ? What about this idiom " if it ain't broke, don't ...
  • Hannah Wagner (better known by her stage name Miss Hannah Minx; born Oct. 1990) is an American vlogger known on Youtube for her Kawaii ...
  • After I gave a shot at ArtRage2 bundled with the Wacom tablet, I took the other cd that was in the box - and installed .... Photoshop Eleme...

AltStyle によって変換されたページ (->オリジナル) /