Questions tagged [virtualenv-commands]

15 questions
573
votes
17 answers

How do I remove/delete a virtualenv?

I created an environment with the following command: virtualenv venv --distribute I cannot remove it with the following command: rmvirtualenv venv - This is part of virtualenvwrapper as mentioned in answer below for virtualenvwrapper I do an lson my…
160
votes
11 answers

List all virtualenv

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
  • 32,676
  • 29
  • 109
  • 162
104
votes
7 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
  • 7,464
  • 8
  • 32
  • 61
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
  • 10,004
  • 16
  • 71
  • 123
5
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,643
  • 12
  • 12
4
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…
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…
1
vote
2 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…
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
  • 16,209
  • 34
  • 102
  • 173
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
  • 38,049
  • 34
  • 218
  • 341
0
votes
1 answer

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…
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: />…
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,091
  • 2
  • 10
  • 26
0
votes
0 answers

Virtualenv transfer from Mac to Windows

I am currently working on a Django project that uses Virtualenv. Originally, I started the project on my Mac, and would activate the virtual env by entering: source env/bin/activate since the virtual env files are stored in a folder called "ENV"…
ng150716
  • 1,893
  • 5
  • 32
  • 53
0
votes
2 answers

unable to install and use django 1.0 in virtualenv

Hi I am trying to install django 1.0 , I can install latest version of django in virtualenv using pip install django but I don't need it, I just want to install django 1.0 as I have to do some simple work in that. I have tried following things but…
Hafiz
  • 3,847
  • 11
  • 54
  • 106