This tag is used for the commands available in Python's virtualenv, a tool for creating sandboxed environments.
Questions tagged [virtualenv-commands]
17 questions
783
votes
22 answers
How do I remove/delete a virtualenv?
I created an environment with the following command: virtualenv venv --distribute
Trying to remove it with the following command: rmvirtualenv venv does not work.
I do an lson my current directory and I still see venv
The only way I can remove it…

wulymammoth
- 8,121
- 4
- 19
- 19
201
votes
14 answers
List all virtualenv created by virtualenvwrapper
In virtualenvwrapper, is there a simple way to list all virtualenv on my machine?
(like what yolk -l does to list all python packages in the current virtual environment?)
CLARIFICATION: "ls -la" in my env directory does not count. I am looking for…

Calvin Cheng
- 35,640
- 39
- 116
- 167
149
votes
10 answers
Can I move a virtualenv?
This question is not a duplicate.
It pertains not just to renaming a virtual environment, but to actually moving it to a different directory, including, potentially, a different user's directory.
This is not the same as merely renaming a virtual…

Nathan Basanese
- 8,475
- 10
- 37
- 66
6
votes
1 answer
differentiate mkvirtualenv and mkproject for virturalenvwrapper
I am talking about Doug Hellman's virtualenvwrapper. Well, as per him, once we install virtualenvwrapper, we should edit the .bashrc file as explained here
what we do is we add the following three lines of code:
export…

apcelent
- 1,651
- 12
- 12
6
votes
3 answers
changing virtualenv folder on windows
after a computer fix my python projects dir (windows) changed (say from d: to f:).
now all my virtualenvs are broken. after activating the env the project inside the virtualenv can't find the dependencies and the custom scripts (from the env\scripts…

alonisser
- 11,542
- 21
- 85
- 139
5
votes
1 answer
Pycharm Virtulenv "non-zero exit code" after install wheel or module from pip
After installing kivy via a wheel i came upon an error in Pycharm when i refreshed my virtual env for python 3.4. The error is in the section
Pycharm: Projects ->
Project Interpreter -> [Virtualenv packages]
Error/warning along the bottom shows…

codelinx
- 107
- 1
- 1
- 10
3
votes
0 answers
EnvCommandError when Poetry installing dependencies
I'm having the following issue when trying to install the dependencies of my project with poetry:
ERROR: pywin32-301-cp38-cp38-win32.whl is not a supported wheel on this platform.
ERROR: pyrsistent-0.18.0-cp38-cp38-win32.whl is not a supported wheel…

Enrique Corimayo
- 31
- 1
3
votes
3 answers
How to fix "IOError: [Errno 2] No such file or directory" when making Virtual Environments
Whenever I try to use the 'virtualenv VirtualEnvironmentName' command or the 'virtualenv -p python3.8 VirtualEnvironmentName' command it says "IOError: [Errno 2] No such file or directory." I just want to make Virtual Environments, but I always get…

melee
- 51
- 1
- 6
2
votes
1 answer
Virtualenvwrapper-win installed on Windows 10 but can't activate virtual environment
When I try to activate the virtual environment using the command workon , the virtual environment does not activate. I am using a Windows 10 machine and installed Virtualenv, VirtualenvWrapper, and VirtualenvWrapper-win .
For example when I…

Stefan Cardenas
- 23
- 1
- 5
1
vote
1 answer
Postactivate script for auto-changing to project directory
I have a one-line entry in my virtualenv postactivate script which notifies my of which virtualenv I'm in:
export PS1="\[\033[40;1;36m\](`basename $VIRTUAL_ENV`)\[\033[00m\]\[\033[01;34m\] \W\[\033[00m\] \$ "
I want to add a line which will also…

Darwin Tech
- 18,449
- 38
- 112
- 187
0
votes
1 answer
Trouble running scripts installed by virtualenv-commands on Windows
There's a problem with running installed scripts on Windows which can be seen below
C:\Users\Piotr>where python
C:\program files\Python\2.7\python.exe
C:\Users\Piotr>python c:\program files\Python\2.7\scripts\ve init
[Errno 2] No such file or…

Piotr Dobrogost
- 41,292
- 40
- 236
- 366
0
votes
1 answer
Dynamically update virtual environment
I have created a virtual environment for my Python project and have installed my requirement.txt in it and every time my Python code ex executes it first activate my virtual environment and then run the .py code which is what I want.
I have an issue…

AL K
- 23
- 3
0
votes
2 answers
how to activate existing virtual enviroment (using pipenv)
I am working with a project in django where i am using virtual enviroment using pipenv shell (which created enviroment name (Django_and_Rest-YRrszWnq)) so in this enviroment I have installed many packages releated to this project
Now I started new…
user14827309
0
votes
1 answer
Virtualenv and virtualenvwrapper seem to not work
A few months ago I installed virtualenv, virtualenvwrapper and pip, created a few virtual environments and played with Django successfully.
After returning to my projects today, I am unable to use any of these commands. For instance:
/>…

Alexander Starbuck
- 1,139
- 4
- 18
- 31
0
votes
1 answer
Issues w advanced virtualenv configurations on Mac for scikit-learn and matplotlib
In short: I am using virtualenv to manage a large amount of requirements but I am concerned that I have conflicting versions of major packages on my Mac.
I have installed both scikit-learn and matplotlib via pip, but my PyCharm won’t acknowledge…

R Claven
- 1,160
- 2
- 13
- 27