Answers for ""python -m venv env" and activate"

8

how to activate virtual environment in python

# for windows 10

py -m venv myvirtualenv
myvirtualenvScriptsactivate #!!!! use "" not "/" !!!!!
Posted by: Guest on May-09-2021
0

activate venv in python

$ source ~/envs/tutorial-env/bin/activate
(tutorial-env) $ python
Python 3.5.1 (default, May  6 2016, 10:59:36)
  ...
>>> import sys
>>> sys.path
['', '/usr/local/lib/python35.zip', ...,
'~/envs/tutorial-env/lib/python3.5/site-packages']
>>>
Posted by: Guest on December-19-2020

Python Answers by Framework

Browse Popular Code Answers by Language