Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [virtualenv]

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.

0
votes
0answers
39 views

How to install Dlib without root permission?

I installed boost not under the /usr because I do not have root permission. And then I added the bin folder of the installed boost to PATH, but when I tried to pip install dlib it failed because the ...
0
votes
1answer
134 views

Failing to import pandas in Anjuta “module functions cannot set METH_CLASS or METH_STATIC”

I have this boilerplate in a minimal Anjuta app that runs. I do not want to install pandas to the system python path so I am using Virtualenv. When I add import pandas as pd I get the following error ...
4
votes
0answers
164 views

Set virtualenv for file in Visual Studio Code python

I'm playing with Visual Studio Code on Ubuntu. One big problem is I can't figure out how to attach a virtualenv to a file. So, I open the file. On the lower left corner, I see the default path to the ...
0
votes
0answers
21 views

error in setting up Keras with a new virtualenv

I am trying to setup Keras for which creating a new virtualenv is needed. But on running the command: virtualenv --system-site-packages -p python2.7 venv2 I get an error: **Traceback (most recent ...
0
votes
1answer
1k views

Why is “virtualenv venv” not working on Ubuntu 18.04? [duplicate]

I'm having trouble creating a virtual environment for python on my Ubuntu desktop. I have installed virtualenv by: sudo pip3 install virtualenv and verifying it gives the following output: $ pip3 ...
1
vote
1answer
911 views

pip install creates directory in site-packages but not in bin directory

I want to install a python-package (celery) within a virtualenv using pip. My virtualenv is activated, and after executing pip install celery the directory venv/lib/python3.6/site-packages/ has ...
3
votes
1answer
9k views

How to create virtualenv in Ubuntu 18.04

I have installed virtualenv: pip3 install --user virtualenv Then I was trying to create an environment for my folder with the next command: folder_name$ python -m venv ll_env But instead of the ...
0
votes
0answers
17 views

How to save apps from non-booting ubuntu?

The story is: I had a dual-booting OS (Ubuntu 16.04 and Windows 10) I placed an M2 SSD and since then Windows instantly dropped blut-death i couldn't fix it (tried many things). Finally I deleted its ...
0
votes
0answers
25 views

Installed packages outside of virtualenv can I sync those installs instead of reinstalling everything again?

New to ubuntu so I messed up the installation of some packages. I was following a guide and I installed my packages before calling my virtualenv. Can I sync those installs if I make a new virtualenv? ...
0
votes
0answers
163 views

How to install a package in the root directory using virtual environment?

I have created a virtual environment in the root directory and trying to install numpy using the command: pip install numpy It gives the following error: OSError: [Errno 13] Permission denied: If ...
0
votes
1answer
320 views

Launching script containing virtual env through desktop icon

I want to launch Spyder with tensorflow environment activated directly through a desktop icon. For this purpose, I created a desktop icon launching a virtualenv and then my application. Many posts ...
0
votes
0answers
173 views

How can i switch my freenect library to virtual environment

I am new to Linux so please bear with me. I was trying to access Kinect with my 32-bit laptop Ubuntu 16.04 in it and I have installed OpenCV in virtual environment using this blog and I had also ...
0
votes
2answers
329 views

source command not working in Bash on Ubuntu 17.10

I am use Ubuntu 17.04 and the following code is not working, although it worked for me in the past. #!/bin/bash APP=personalBlog USER=root cd /opt/src/personalblog/conf/ source /opt/venv/ecomex/...
0
votes
1answer
25 views

System doesn't find virtualenv even though it is installed

gaute@UPG-UBUNTU:~/grr$ sudo apt install virtualenv Reading package lists... Done Building dependency tree Reading state information... Done virtualenv is already the newest version (15.0.1+ds-...
1
vote
3answers
3k views

Installing Kivy ubuntu 16.04 64-bit

os : linux(ubuntu 16.04 LTS, 64-bit) python_version : 3.6.3 Using virtualenv. I tried to install many version of kivy with many different versions of cython but always i got ...
1
vote
0answers
250 views

Two python versions in my virtualenv

So far I installed my virtualenv with mkvirtualenv --python=python2.7 venv. (venv) ┌─╼ [~/Projects/Work_Projects] └────╼ pip --version pip 9.0.1 from /home/infinity/.virtualenvs/p38/local/lib/...
1
vote
1answer
1k views

Open a new terminal and source scripts

I want to write a script to activate a virtual environment and run my server for Django project in a new terminal. My startProject.sh is: #!/bin/bash source virtualenv/bin/activate python manage.py ...
4
votes
1answer
3k views

Cannot activate virtual environment with a shell script [duplicate]

I read similar questions and have tried their suggestions but I still cannot activate my virtual environment. The hierarchy of directories is: myproject -- virtualenv -- startvenv.sh startvenv.sh is:...
2
votes
1answer
2k views

“Python could not import the module virtualenvwrapper.hook_loader”

Hey guys been trying to use OpenCV and following the tutorial, they decided to use virtualenvs but this isn't working out and other similars questions aren't really changing a thing. Using 16.04 LTS ...
5
votes
2answers
5k views

Unable to create virtual environment with python 3.6

I'm installed python 3.6 on my Ubuntu 17.04. Now, I'm trying to create virtual environment with command: python3.6 -m venv env but I'm getting the following message: The virtual environment was not ...
0
votes
1answer
1k views

Pgadmin4 wheel installation does not install pgadmin4.py

I am following these instructions to install pgadmin4 in my local machine: sudo apt-get install build-essential libssl-dev libffi-dev libgmp3-dev virtualenv python-pip libpq-dev python-dev cd /opt/ ...
0
votes
0answers
67 views

Executable not searched in order of $PATH

When I created a virtualenv for python it inserts a path at the front of $PATH so that I can run project-specific binaries. However when I need to run a program called pip instead of running from the ...
0
votes
0answers
381 views

pip2 insists on using local python path

Earlier I installed pyenv and installed python2.7 and python3.4 but I deactivated it from .bashrc I tried to install virtualenv in the following way # Install virtual environment sudo pip2 install ...
0
votes
1answer
866 views

Can't uninstall virtualenv and virtualenvwrapper

So I installed virtualenv and virtualenvwrapper with sudo pip, and I have problems. At first I was getting correct behavior, with packages from the virtual environment being separate from packages ...
1
vote
1answer
2k views

How to install python packages with virtualenv without installing them globally?

I have installed virtualenv with sudo apt-get install virtualenv. It stands in this tutorial that you need to use your env/bin/ folder's own pip or pip3 command to install modules in the virtual ...
1
vote
0answers
467 views

Pip Error while installing: virtualenv, django and upgrading pip

I'm trying to start a Django project, don't know what I'm doing to be honest. I started following the tutorial. Installed python 3.6 (altough this shows 2.7, probably came with ubuntu). And then ...
2
votes
1answer
10k views

How to install Python 3.6 in virtual environment? [duplicate]

I am using Ubuntu 16.04 which comes with python 2.7 and python 3.5 pre-installed. I am currently working on a project where it requires to install python 3.6 and some additional packages. I have ...
0
votes
1answer
2k views

Why can't I access 'virtualenv'?

I've just created a new user account called deployer in my 16.04 VPS and I'd like to create a virtualenv inside directory Env. However: deployer@server:~$ cd Env/ deployer@server:~/Env$ virtualenv ...
3
votes
1answer
768 views

python virtualenv: pip not working

I am running a python project into a virtualenv on Ubuntu 16.04. Until now everything was working as it should, i.e. I could install libraries through pip and listing the installed packages. I am not ...
0
votes
0answers
848 views

How to fix python + virtualenv on latest Ubuntu 14.04 update?

Since latest apt-get upgrade on a 14.04 machine, all python scripts fail miserably. The one-liner below triggers the problem: $ python -c 'from pkg_resources import load_entry_point' A more ...
1
vote
2answers
3k views

What can I do when a Python virtual environment doesn't find modules?

On Ubuntu 16.04 I created a virtual environment called venv and inside the venv/lib/python2.7/site-packages I have nltk and nltk-3.2.2.dist-info as normal. However, when I activate the virtual ...
1
vote
0answers
559 views

Python 2 Ubuntu default, pip, and virtualenv

https://packaging.python.org/installing/#install-pip-setuptools-and-wheel “If you have Python 2 >=2.7.9 or Python 3 >=3.4 installed from python.org, you will already have pip and setuptools, “ Maybe,...
1
vote
0answers
469 views

Creating docker image that executes commands in python virtualenv

I have the following problem ... I want to create a docker image on which a python virtual environment is created. Then I want to be able to do the following two things: Run docker run -it <image&...
6
votes
1answer
1k views

pkg-resources==0.0.0 in pip freeze bug

I am using Ubuntu 16.10, and I only installed virtualenv using aptitude. After creating a new environment, and listed installed packages using pip freeze I am always getting the output of pkg-...
2
votes
3answers
4k views

Python 3.4 on Ubuntu 16.04

I have just installed Python 3.4 on Ubuntu 16.04 using the ./configure, make, make install process. I am trying to install Flask, and am having issues using pip in virtualenv created with 3.4. Using ...
0
votes
0answers
258 views

How do I get Ubuntu to use Anaconda's python instead of previous Python installation?

I know that a very similar question has been asked there, but I think my issue is different. I have just installed Anaconda2 following the Anaconda documentation steps (downloading and executing the ...
2
votes
0answers
523 views

Development environment similar to virtualenv for C++

I am looking for a tool that lets me switch between different versions of the packages/builds I use for development purpose something similar to virtualenv for python. I am using install prefix at the ...
2
votes
1answer
71 views

Does a virtual environment clone the folders under Home?

I'm trying to wrap my head around how to effectively use virtualenv. I made a test environment called "quandl". In this environment I imported the Quandl package and am playing around with some ...
0
votes
0answers
432 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: ...
2
votes
1answer
2k 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
328 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@...
7
votes
3answers
9k 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: /...
4
votes
1answer
3k 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 python3-matplotlib and then printing the matplotlib backend gives TKAgg, which is expected because Ubuntu has 16.04 has python3-tk installed....
0
votes
1answer
431 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 ...
1
vote
0answers
1k 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 :...
1
vote
1answer
1k 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 ...
5
votes
2answers
15k 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
66 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 ...
1
vote
1answer
2k 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
9k 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 # ...