Questions tagged [virtual-environment]
544 questions
0
votes
0 answers
Python version in virtualenv - ubuntu 16.04
I have got python2.7 (initiated by python2), python3.5(initiated by python3) and python3.7 (initiated by python3.7)installed
I have installed virtualenv from pip3 (pip3.6 and pip3.7 cannot be found for some reason)
then I created a new folder, setup…

NewPy
- 623
- 1
- 5
- 14
0
votes
3 answers
No module named PIL in heroku though it is installed
I have been trying to deploy a Django application on Heroku.
Some background - I hadn't used virtual environment while building the application but while deploying it, I had to use it. I'm following this tutorial for deployment.…

Keerthan Bhat
- 314
- 2
- 15
0
votes
0 answers
Unable to run python commands within virtualenv
I am working with a Django project for a while now and at the start of the project, I created a virtualenv. I used the method from this website. And two months later, when I try to run any python related command, I get stuck with this error…

Uzair Vawda
- 37
- 1
- 9
0
votes
1 answer
Installing OpenCV using Virtual Environment (Ubuntu 16)
I want to install OpenCV. First thing I did was creating a virtual environment by following command in Ubuntu 16:
" conda create -n opencv3.4_py3.6 "
Then, I followed the official instruction here (Building OpenCV from…

Mohammad
- 775
- 1
- 14
- 37
0
votes
0 answers
virtual environment can't start python -- "No such file or directory"
I have created a venv using Pycharm. On the PyCharm terminal, everything works fine -- I can activate the venv, and start python normally.
When I exit PyCharm and go to the normal linux terminal, it doesn't work.
First I go to my directory:
$ cd…

user2627308
- 1
- 2
0
votes
1 answer
Moving node_modules location under a Python venv
I have a Python venv to develop a Django application and I use babel to transpile my javascript.
Currently, I install node.js with nodeenv -p whilst working under my Python venv.
Everything works fine if I have the node_modules and package.json…

Jacques Gaudin
- 15,779
- 10
- 54
- 75
0
votes
0 answers
How to quickly switch virtual environments with virtualenvwrapper?
Is there a quicker way to workon virtual environments in virtualenvwrapper (Python) without typing out the entire name each time? For example, switching by unique id number?

konichiwa
- 532
- 1
- 5
- 23
0
votes
1 answer
Sharing Virtual Environments With Other Developers
I have made a virtual environment using python3.
virtualenv -p python3 py36
In a folder named environments within a project folder.
When activated, and I run which python3 the output is:
(py36) ur@comp:~/Desktop/project$ which…

Loc
- 5
- 2
0
votes
0 answers
Virtual Environment Error with Python 3.6.3
I'm not sure why I can't create this virtual environment on my Mac. I get an error on a call to python3 in my environment and when I dig in it seems to be looking for something called ensurepip.
Any idea what I'm doing wrong?
$ python3 -m venv…

Ray Salemi
- 5,247
- 4
- 30
- 63
0
votes
3 answers
Jupyter notebook can not import module installed in the same environment
I have created a virtual environment using conda and then I have installed tensorflow within this environment. I can import it when I run interactive python shell. However, I can not import the tensorflow module within jupyter notebook.

disooqi
- 617
- 10
- 19
0
votes
1 answer
Failure of creating environment with "conda env create" for the same linux-64 OS
I have exported the virtual environment on my work machine which runs Ubuntu 16.04 to an "environment.yaml" file and then tried to use the file to create the same virtual environment on my home machine which also runs Ubuntu 16.04 but I got the…

disooqi
- 617
- 10
- 19
0
votes
0 answers
Virtualenv OSError setuptools pkg_resources pip wheel failed with error code 127
I can't install virtualenv on ubuntu 16.04 /python3.6
I'm running virtualenv -p python3 .
There is some threads about similar errors but I couldn't find the solution.
Can anyone help me?
OSError: Command /home/rony/Dev/trydjango/bin/python3 -…

Rony Lussari
- 1
- 5
0
votes
1 answer
How can I run jupyter notebook from my virtual environment?
I have created a virtual environment with Python3.3 which I need to interface with Siemens NX.
conda create -n nxve python=3.3 anaconda
I wan to run jupyter notebook from this virtual environment. When I try to install it, I'm getting version…

Brian Keats
- 131
- 1
- 11
0
votes
1 answer
Error in psycopg2 install (django)
error in psycopg2 install in venv
Exception:
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File…

Nikhil Kamboj
- 26
- 3
0
votes
1 answer
create an env that points to a specific python installation
I have a python installation with several packages linked to it that I access by calling python2.7. I would like to create a virtual env where I can just type python and access that particular installation without reinstalling everything associated…

Verbal_Kint
- 1,366
- 3
- 19
- 35