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.
152
questions
3
votes
1
answer
5k
views
How do I create a Python virtual environment in the Ubuntu on Windows App using 'venv' rather than 'virtualenv'?
I am using the Ubuntu on Windows App running on Windows Subsystem for Linux. So an initial question is if Python virtual environments is supported. Given my as yet limited understanding of Python ...
1
vote
0
answers
391
views
Open terminal in XFCE from script and activate python virtualenv
I try to open a new terminal window in XFCE and activate python3 virtualenv in there using the following line in a bash script:
xfce4-terminal --working-directory=$HOME/path/to/project --maximize \
-...
1
vote
1
answer
110
views
What exactly is virtualenv.py?
I know of virtualenv and virtualenvwrapper and .py stands for python.
When I run virtualenv in PyCharm IDE this comes up:
Usage: virtualenv.py
I just recently came across this and tried search for ...
1
vote
2
answers
4k
views
Always use a python virtual environment everywhere
I am new to Ubuntu and Python virtualenv. Since I realized the importance of virtualenv, I'd like to use it by default whenever I run python(from installing packages) so that I don't need to run ...
18
votes
1
answer
62k
views
Configure error: could not find the zlib library
I am trying to install lalsuite on ubuntu according to the instructions here:
https://pycbc.org/pycbc/latest/html/install_lalsuite.html
Everything went smoothly until I ran
./00boot
./configure --...
0
votes
2
answers
815
views
File ignored PyCharm Pro IDE and this the correct sys.path for PYTHONPATH?
My PyCharm IDE doesn't automatically create a venv directory so I have to manually create my own.
My venv directory comes up as ignored. This is normal.
A possible solution is found the comment ...
0
votes
2
answers
507
views
Disco Dingo PyCharm 'Running virtualenv with interpreter /usr/bin/python2' while everything else runs Python 3
I uninstalled Virtualenv 16.6.0. I'm using PyCharm with virtualenv version 15.1.0. Update: Tried the creating /venv in create projects but the message is this there and now the venv directory is ...
0
votes
2
answers
3k
views
Virtualenv Python version
I have Python3.5.2 by default on my Ubuntu System. I recently installed Python3.5.4. When I run python3 --version it outputs 3.5.2 and when I run python3.5 it shows 3.5.4.
I want my project to use ...
1
vote
0
answers
4k
views
UnsatisfiableError: The following specifications were found to be incompatible with each other
How to Install opencv using conda with python3.7 on ubuntu 18.04?
I am following this link and others, but getting the following error:
UnsatisfiableError: The following specifications were found ...
1
vote
1
answer
5k
views
installing Anaconda in virtual environment!
I know anaconda is itself being used to set environment for different python versions, but i am trying to install the anaconda in virtual environment, so that my normal python setup, along with other ...
0
votes
0
answers
774
views
Problem with running venv
Attempting to create a new environment using venv, installed Ubuntu for WSL, updated, and installed venv without issue.
My problem is when I try to run venv, to create the new environment I used:
$ ...
1
vote
0
answers
371
views
turbodbc installation error in Ubuntu 18.04 [duplicate]
I tried to install turbodbc with pip install turbodbc inside a Python virtual environment in Ubuntu 18.04, but it's showing this error.
DEPRECATION: Python 2.7 will reach the end of its life on ...
2
votes
1
answer
3k
views
How do I execute a python script through crontab with the virtual environment of the project?
I have seen that a couple of replies in different posts are close to my problem, but the considered solutions don't really work for me - lacking some final link.
I want to use the venv of a specific ...
0
votes
1
answer
252
views
Synaptic Package manager not showing installed package virtualenv
This is sort of confusing. I have synaptic package manager version 0.84.3(latest). It is showing virtualenv as 'not installed' although it has been installed. When i do the following in CLI
virtualenv ...
1
vote
2
answers
2k
views
Pip broken after upgrading to 19.04
What is going on with pip:
$ pip
Traceback (most recent call last):
File "/usr/local/bin/pip", line 7, in <module>
from pip import main
ImportError: cannot import name 'main' from 'pip' (/...
1
vote
1
answer
2k
views
Specific modules not Importing after cloning Git repository
So recently I cloned a repository SymPy by doing the following steps:
Created Python3 virtual environment
Activated it (from Terminal)
Then ran git clone _sample_URL_
After that I ran the following ...
5
votes
1
answer
10k
views
Make virtualenv and activate it with shell script
I want to make shell script that makes virtualenv, activates it, install some libraries and run python script with it.
But I have problem that I can't activate virtualenv in shell script unless i do "...
2
votes
1
answer
5k
views
Editting Bash Profile Ubuntu 18.04 LTS [duplicate]
I've been trying to work out how to edit the bash profile for the login shell in Ubuntu 18.04. Being new to linux and the forum being my friend, i found that it is located in .profile as oppose to ...
0
votes
2
answers
7k
views
Can't run pip from virtualenv - Segmentation fault (core dumped)
I'm trying to use pip to install various requirements in my virtualenv, but I can't get around the error Segementation fault (core dumped). That error seems to indicate memory access problems, but I ...
4
votes
1
answer
278
views
How do I set PYTHONASYNCIODEBUG value in pipenv python?
I am running python 3.6 in a pipenv shell. I want to set the value of this python environment variable PYTHONASYNCIODEBUG to 1 without affecting my user environment variables that are outside of the ...
0
votes
1
answer
409
views
does pip3 install only in my environment?
If i created a virtual environment using the command virtualenv venv then i activate it source venv/bin/activate, my terminal now looks like this
(venv) haziq@vita-workstation2:~$
does installing ...
0
votes
1
answer
1k
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 ...
5
votes
1
answer
2k
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 ...
3
votes
1
answer
14k
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 show ...
2
votes
1
answer
6k
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 ...
4
votes
1
answer
16k
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
0
answers
1k
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 ...
2
votes
2
answers
3k
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
2
answers
1k
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
1
answer
255
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-...
0
votes
2
answers
3k
views
Python3 -m venv returns error
I have Ubuntu 14.04 lts and python3.6.4 installed and when I enter like it's said here:
https://docs.python.org/3/library/venv.html
python3 -m venv env
to create my virtual environment I get the ...
1
vote
3
answers
8k
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
0
answers
387
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/...
4
votes
1
answer
9k
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 ...
12
votes
1
answer
15k
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
2
answers
3k
views
"Python could not import the module virtualenvwrapper.hook_loader"
I've been trying to use OpenCV and following this tutorial where they decided to use virtualenvs but this isn't working out for me, and other similar questions aren't helping. Using 16.04 LTS
I ...
13
votes
2
answers
31k
views
Unable to create venv with a different Python verison
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
1
answer
3k
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/
...
1
vote
0
answers
360
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
0
answers
764
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
1
answer
2k
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 ...
0
votes
1
answer
1k
views
Where to put virtual environments?
There will be many virtual environments on my computer and I'd like to have a place where they are all stored. Somehow $HOME and subdirs don't seem to be good; too exposed. Any suggestions, or ...
1
vote
1
answer
7k
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
0
answers
588
views
Pip Error while installing: virtualenv, django and upgrading pip [duplicate]
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
1
answer
18k
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
2
answers
10k
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 ...
2
votes
1
answer
2k
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 ...
1
vote
0
answers
1k
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 ...
4
votes
3
answers
25k
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
0
answers
739
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,...