- create virtual env wrapper & deactivate
mkvirtualenv env-py2 -p python2 #(or python3) workon env-py2 deactivate
- create virtual env & deactivate
sudo pip install virtualenv virtualenv env sourse env/bin/activate source deactivate
- delete virtual env
rmvirtualenv envname
- virtualenv dependencies save and install
#On the first, save pip freeze > requirements.txt
#On the second, install(note! after activating target env) pip install -r requirements.txt
-show all virtualenv names
lsvirtualenv -l
- PyCharm virtualenv wrapper setting
We have to set directory path manually in preference setting page.
The path is like this in my case.
And then you can select this virtualenv on run/debug configuration.
No comments:
Post a Comment