virtualenv is a tool that creates a sandboxed and isolated environment where Python packages can be installed without interfering with other packages on the same machine.

learn more… | top users | synonyms

0
votes
0answers
18 views

can't create virtual env in ubuntu 14.04

Initially I followed this user's Q&A - How to set up and use a virtual python environment in Ubuntu? but this didn't work at all. When I do mkvirtualenv -p python3 test I get this ERROR: ...
0
votes
0answers
46 views

Ubuntu 16.04 running python2.6 in virtualenv fails

Trying to install an older version of python (2.6) in a virtual environment in ubuntu 16.04, to work on an old project. I used this web site as my guide: http://bhfsteve.blogspot.com/2012/05/run-...
0
votes
0answers
22 views

run virtualenv in new terminal tab automatically

I am using virtualenv, so to start I have to say source some/long/path/bin/activate Sometimes (very often, in fact) I want to create another tab in terminal, to edit another script, or to run ...
1
vote
1answer
37 views

VirtualEnv + Apt + Python3 Issue

VirtualEnv + Apt + Python3 Issue On 14.04 I've got an interesting problem trying to import a module. I have python3 and python3-apt installed and I can verify this with the following: chalbersma@...
3
votes
0answers
58 views

Python virtualenvwrapper problem running the initialization hooks

On a fresh install of 16.04, I am trying to install virtualenvwrapper by following this great answer by Gerhard Burger. after configuring the .bashrc, whenever opening the terminal displays bash: /...
2
votes
1answer
158 views

How to ensure matplotlib in a Python 3 virtualenv uses the TkAgg backend?

I am using Ubuntu 16.04 with Python 3. Using apt to install matplotlib and then printing the matplotlib backend gives TKAgg, which is expected because Ubuntu has 16.04 has python3-tk installed. This ...
0
votes
0answers
75 views

Errors in installing virtualenv after installing to python 3.3.0 also

I am getting this error when I run the sudo pip install virtualenv command. I tried installing the python 3.3.0 version also which you can notice below. but I am not able to make the python3.3.0 ...
0
votes
1answer
51 views

How do I run mulitple pythons with virtualenv in production?

I have installed virtualenv to run a different version of Python than the system Python for my django app. I installed Python 2.7.11 using the method described here. I've modified my uwsgi.ini file to ...
0
votes
0answers
60 views

How to resolve ERROR: virtualenvwrapper could not find virtualenv in your path

Other such posts didn't solve my error. I followed this post to install virtualenv and virtualenvwrapper . Now when try running mkvirtualenv Addon-Tests in my project's root directory, I get an error :...
0
votes
0answers
33 views

Unable to source virtualenvwrapper.sh file

I have two versions of python installed, version 2.7 at /usr/local/lib/python2.7/dist-packages another version at /home/kv/.pythonbrew/pythons/Python-2.7.5/bin/python running the command kv@kv:...
1
vote
1answer
115 views

bash: WORKON_HOME=~/.virtualenvs: No such file or directory

I installed python virtualenv and virtualenvwrapper on ubuntu 15.10 following the answer at How to set up and use a virtual python environment in Ubuntu?. The installation was successful, i.e. I can ...
0
votes
1answer
263 views

Create a copy of virtualenv locally without pip install

Sometime there is a need to create a copy of exiting virtualenv to test extra features of our project. In such a case we need to create a copy of the existing environment and add few more ...
1
vote
0answers
21 views

Is there an equivalent of virtual env but for the whole of ubuntu?

Python has a wonderful tool called a virtual environment, which lets you effectively hermetically seal various python libraries (which may conflict with each other!) from each other. Is there an ...
0
votes
0answers
55 views

service [sname] restart not working like I expect

I am having some trouble getting gunicorn to run from a python virtual env and this is the only thing I can see that proves what is wrong right now... description "Gunicorn daemon for Django project" ...
1
vote
0answers
745 views

Cannot create Python 3.5 virtualenv ImportError: No module named 'gdbm'

I'm experiencing the same issue as this individual but unfortunately switching back to Python 3.4 is not an option for me, I need to be running 3.5. I've broken command not found? Here is what I'...
0
votes
1answer
2k views

Running setup.py bdist_wheel for cffi Failed building wheel for cryptography

I am trying to build a docker image. I have a install.sh file which will run when it is built. The contents of install.sh is as follows sudo apt-get install -y python-dev python3.5 python3.5-dev # ...
7
votes
1answer
3k views

pyvenv-3.4 disappeared in Ubuntu 14.04.3?

This is what I was doing to create a venv in Python 3.4 on Ubuntu 14.04.3 LTS until last week: » pyvenv-3.4 --without-pip venv I was doing that because of this. But since yesterday: » pyvenv-3.4 --...
1
vote
1answer
193 views

Error Getting Dependencies for Matplotlib

I am trying to install the python package matplotlib from source. I cannot install the package from the repository using sudo apt-get install python-matplotlib because I need to be able to install the ...
2
votes
0answers
104 views

virtualenvwrapper creates envs in ~/.virtualenvs? (with questionmark) -> leads to issues

I have installed Ubuntu 14.04 a few weeks ago, and start and learn Python/Django. At the beginning I installed virtualenv and virtualenvwrapper via pip, and worked like a train. Yesterday I messed up ...
0
votes
0answers
52 views

Learning python in a virtual environment

I am a beginner user of ubuntu and I am currently using ubuntu 14.04.03 lts. I would like to learn python and to be precise I would like to start with python 3.4.3. I would also like to set up a ...
1
vote
1answer
34 views

How to install dh_virutalenv 0.8 or 0.9?

I have DHVE installed: ii dh-virtualenv 0.6-1 all wrap and build python packages using virtualenv but ...
2
votes
1answer
1k views

pip install virtualenv, error on ubuntu 15.04

How to fix this issue? and how to install pip and virtualenv on ubuntu 15.04 pip install virtualenv Traceback (most recent call last): File "/usr/bin/pip", line 9, in <module> ...
3
votes
1answer
2k views

Problems installing Numpy in Virtualenv

I have numpy installed globally (I think via Django) but I'm trying to install it within a virtualenv. When I run pip install numpy (within my virtualenv), it gets stuck at Running setup.py ...
6
votes
1answer
8k views

pyvenv vs venv vs python-virtualenv vs virtualenv and python 3

malikarumi@Tetouan2:~$ pip install virtualenv Collecting virtualenv Downloading virtualenv-12.0.7-py2.py3-none-any.whl (1.8MB) 100% |################################| 1.8MB 330kB/s ...
1
vote
1answer
833 views

how to install python third modules into virtualenv?

I installed a virtual environment for python. I succeeded to install numpy and scipy but not parallel python. How can I install or build third modules into the virtualenv? I tried to sudo apt-get ...
4
votes
1answer
8k views

“OSError: [Errno 13] Permission denied” error

I am trying to create a virtualenv environment but I am encountered by this error: user@mylaptop:~$ virtualenv -p ~/Public/Programming/project1/ Running virtualenv with interpreter /home/user/Public/...
1
vote
2answers
6k views

How to install pyzmq for iPython Notebook in a Python 3 virtual environment?

I wanted to use iPython Notebook in Python 3 on Ubuntu 14.04. Because I have both Python 2.7 and Python 3.4 installed on my system--and for other implementation-specific reasons--I decided to use a ...
1
vote
1answer
544 views

14.04 what is the difference between /usr/bin/python3 /usr/bin/python3.4

In /usr/bin there is a python3 and python3.4. What is the difference? If I am setting up virtualenv for 3.4 do I need to point it to the 3.4 file, or does the python3 act like a meta package?
0
votes
1answer
73 views

Should I use only pip in virtualenv?

While in a virtual environment, what will happen if I use other methods of installation such as apt or manual install? Will the installation go into the virtual or global environment? I am asking this ...
1
vote
1answer
588 views

How do I install pygame in a pyenv virtualenv for Python 2.7 on Ubuntu 12.04?

I found instructions for Python 3.3 but nothing specifically for 2.7. I sorted it out and figured I'd record it here for future reference.
41
votes
2answers
45k views

Error installing scrapy in virtualenv using pip

pip install scrapy Downloading/unpacking scrapy Downloading Scrapy-0.24.2-py2-none-any.whl (502kB): 502kB downloaded Downloading/unpacking pyOpenSSL (from scrapy) Downloading pyOpenSSL-0.14.tar.gz ...
1
vote
1answer
8k views

cannot install lxml in virtualenv (python)

I cannot install lxml. In system i have python-lxml package, but i need other... Please help, if you can - my task is install lxml for development in virtual enviroment using virtualenv. I found this ...
1
vote
1answer
1k views

unable to install a package using pip

I'm triying to install a package using pip inside a virtualenv: pip install fuse-python but the output is Downloading/unpacking fuse-python Downloading fuse-python-0.2.tar.gz (53kB): 53kB ...
1
vote
1answer
377 views

How to install Err in a Python 3 virtual environment?

I'm trying to install Err on Ubuntu Server 12.04.4. It requires python plus a bunch of dependencies. When I followed the install instructions, I couldn't get it to work using the "default" which ...
0
votes
1answer
408 views

undefined symbol: PyExc_TypeError

I'm using Ubuntu 12.04 and I have weird problem that started appearing. I've been using virtualenv command for working with my Python projects and I never had trouble with it. However, for some reason ...
1
vote
2answers
2k views

How to install python-guestfs and libguestfs-tools in python virtual environment?

Can any one help me out to install python-guestfs and libguestfs-tools in python virtual environment? I tried to install those packages with the help of pip install but it fails to install because ...
4
votes
2answers
341 views

What is the correct location for a maintained virtualenv service?

I will be installing and maintaining a Python 2.7-based server application on Ubuntu server (12.04). The model of maintenance will be to create a virtualenv and install application standard libraries (...
4
votes
1answer
8k views

Trying to create a python virtual environment but getting OSError

I have installed python3.3, pip-1.5, ditribute-0.7.3, virtualenv-1.11. I am giving the below command to create virtual environment virtualenv --no-site-packages test I am getting the following ...
5
votes
0answers
574 views

Virtualenv permission denied

After a lot of struggle with virtualenv/virtualenvwrapper I decided to remove all virtualenvs and re-install the packages. root> su myuser myuser> sudo pip install virtualenv myuser> sudo ...
1
vote
1answer
702 views

Running python3.3 using virtulenv

I am using Ubuntu server 12.04. The default python version is 2.7. I have installed python 3.3 in /opt directory. When I try to create a virtualenv to use python 3.3, I get the following error: $...
2
votes
3answers
3k views

Edit ZSH theme for virtualenv name

I use zsh theme intheloops. The theme looks like this when no virtual env. is active -- an empty line -- [sourabh@skynet] ~/Code/django_apps/cope (master) ⚡ ❯ and when an env. is active, (env ...
1
vote
1answer
402 views

python module can be found using shell but not in virtualenv

When I do import numpy on my shell, numpy is found (I can use it). However, when I workon my virtualenv import numpy gives me no module named numpy error. I tried to pip install numpy while working ...
2
votes
1answer
606 views

install Flask as a virtual environment whith virtualenv.py in 12.10

I am trying to follow this Tutorial to learn flask. I have never used python before and a relatively new to linux too so sorry if I am asking a very basic question. I have installed python version 2....
5
votes
2answers
8k views

Clean uninstall of virtualenv and virtualenvwrapper

Since I do not use them at this time I tried to uninstall virtualenv and virtualenvwrapper via the Ubuntu Software Center. Now whenever I open a console I get the following error message: Traceback (...
5
votes
2answers
18k views

Installing pygame with pip

I'm trying to install pygame using pip in a virtualenv. I'm following this tutorial on using Kivy. However, running pip install pygame returns Downloading/unpacking pygame Downloading pygame-1.9....
2
votes
1answer
4k views

Installation issues for Virtualenv and VirtualenvWrapper in 13.04

Ubuntu Server in VirtualBox. I am trying to install VirtualEnv to start learning Flask and bottle. Some details of my setup. vks@UbSrVb:~$ cat /etc/os-release NAME="Ubuntu" VERSION="12.04.2 LTS, ...
8
votes
3answers
8k views

How do I install Pygame in virtualenv?

In installed python-virtualenv, because this question said I should use virtualenv to install pygame. However, I'm not really sure how that's accomplished. What I did (following these instructions): ...
4
votes
2answers
378 views

How can I get diffuse to play well with a Python virtualenv?

Diffuse is installed on my workstation and plays well with Mercurial so I often use it for diff'ing. However, I also am using a Python virtualenv to use some different modules in a more controlled ...
40
votes
4answers
57k views

How to set up and use a virtual python environment in Ubuntu?

Python virtual environments are used to create isolated python environments to avoid dependency and version conflicts, and also indirectly takes care of permission issues. But what is the easiest way ...