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.

Filter by
Sorted by
Tagged with
0
votes
0answers
12 views

I try to install M2Crypto, but i got this error

I try to install M2Crypto, but i got this error pip3 install ./M2Crypto-0.24.0.tar.gz failure screenshot ERROR: Command errored out with exit status 1: command: /home/fgzzi/venv/bin/python -u -c '...
0
votes
1answer
29 views

Using 'sudo' with `virtualenv`

I am working on a virtual environment: sk, which I made this way: $ mkvirtualenv sk -p python3 I use workon sk to activate this environment and work in it. When I try to run some functionality of ...
0
votes
1answer
41 views

Cannot start venv with python3

When trying to start a virtual environment I get: ~$ python3 -m venv homeassistant The virtual environment was not created successfully because ensurepip is not available. On Debian/Ubuntu systems, ...
0
votes
2answers
93 views

How to keep python virtualenvs while updating ubuntu?

A friend of mine told me that every python virtualenv he had in its ubuntu 18 OS become useless when he upgraded to ubuntu 20, and I think it's because of the new python version (3.8). If anyone could ...
0
votes
1answer
120 views

Ubuntu 20.04 “virtualenv -p python3 .” command not working

After upgrading to ubuntu 20.04 virtualenv -p python3 . not working. I shows error Traceback (most recent call last): File "/home/mahmud/.local/bin/virtualenv", line 6, in <module> ...
0
votes
1answer
33 views

Python3.8 venv without activate script

When I try to create a virtual environment, the created folder does not have the venv/bin/activate script. I tried to install and reinstall venv using sudo apt install python3-venv, but it always ...
0
votes
2answers
85 views

pip3 install virtualenv failed

I’m using Ubuntu Mate: Operating System: Ubuntu 16.04.6 LTS Kernel: Linux 3.4.39-BPI-M3-Kernel Architecture: arm I have installed Python 2.7 & 3.5.2 as well as 3.7.7 Wnen I'm trying to ...
0
votes
1answer
1k views

Install Python 3.7 packages in Ubuntu 20.04

I recently upgraded to 20.04 from 19.10. Now i face issues since i need to use a virtual environment with Python 3.7 and cant seem to install the packages: - Python3.7-venv - Python 3.7-dev Seems ...
1
vote
0answers
47 views

conda activate newenv returns “powerline-shell: command not found”

I installed Conda using Anaconda3-2019.10-Linux-x86_64.sh. It works fine until today. I was able to run create new virtual env and activate it and then deactivate it as expected. Basically, conda --...
0
votes
1answer
215 views

Run python script in virtual environment on startup

I would like to start a python script from a virtual environment on startup. I have searched the whole forum and other sources but have not been able to make it work. The script should run at the ...
0
votes
1answer
121 views

Ubuntu 18.04 - how to set up a Python virtual environment for Python 3.7.x or 3.8.x?

Can somebody please provided recommended commands for Ubuntu 18.04 to configure a Python virtual environment that has Python 3.7.x or 3.8.x? Of course I'm aware that upgrading the general Ubuntu 18....
0
votes
0answers
40 views

How to install different package with different version in two different virtual env ubuntu18.04?

I need to install two versions of a package in two different virtual env. Here is what i did. Virtual env1 Create a virtual env for env1 python3 -m venv ./env1 source ./env1/bin/activate pip3 ...
1
vote
1answer
228 views

pip package installation and virtualenv

Good morning! Quick summary: I'm having a problem with pip and virtualenv. Whether or not my virtualenv is activated my pip installs packages into the site-packages of the venv but when outside my ...
3
votes
1answer
139 views

For every Framework new Python Env?

I'm very new to Linux so it could be that I think more in a Windows way. I want to develop something in Python, especially Django and Discord Bot. I have a folder PythonEnvironment where I set up a ...
0
votes
0answers
67 views

Ubuntu 19.04 python virtualenv cant place to right directory

I am new with Ubuntu. I tried to create virtual enviroment for python. First i run: pip install virtualenv which went smoothly but it didint work. So i read you need to put program into right ...
1
vote
1answer
2k 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 ...
0
votes
0answers
65 views

How to pass a variable from terminal to a new terminal?

If I am on terminal A, and open new terminal/new window/new session B; would it be possible to pass a variable, or some value, to new terminal B? For example, if I am in directory ~/foo, and open new ...
1
vote
0answers
93 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
1answer
51 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 ...
0
votes
2answers
627 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 ...
3
votes
1answer
3k 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
2answers
348 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
1answer
279 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
2answers
422 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
0answers
3k 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 ...
0
votes
1answer
2k 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
0answers
144 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: $ ...
2
votes
1answer
1k 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
1answer
81 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 ...
1
vote
2answers
1k 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
1answer
149 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 ...
3
votes
1answer
2k 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
1answer
2k 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
1answer
2k 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
1answer
103 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
1answer
90 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
1answer
639 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
1answer
875 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 ...
2
votes
1answer
7k 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 ...
2
votes
1answer
4k 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
1answer
15k 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
364 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 ...
1
vote
1answer
1k 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
2answers
562 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
106 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
6k 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
314 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/...
3
votes
1answer
4k 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 ...
7
votes
1answer
9k 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 ...