Questions tagged [virtual-environment]
358 questions
573
votes
17 answers
How do I remove/delete a virtualenv?
I created an environment with the following command: virtualenv venv --distribute
I cannot remove it with the following command: rmvirtualenv venv -
This is part of virtualenvwrapper as mentioned in answer below for virtualenvwrapper
I do an lson my…
![](../../users/profiles/797292.webp)
wulymammoth
- 5,981
- 3
- 15
- 19
66
votes
5 answers
jupyter notebook running kernel in different env
I've gotten myself into some kind of horrible virtualenv mess. Help?!
I manage environments with conda. Until recently, I only had a python2 jupyter notebook kernel, but I decided to drag myself kicking and screaming into the 21st century and…
![](../../users/profiles/4386239.webp)
Paul Gowder
- 2,079
- 1
- 17
- 30
52
votes
7 answers
How to freeze packages installed only in the virtual environment?
How to freeze packages installed only in the virtual environment, that is, without the global ones?
![](../../users/profiles/907060.webp)
saul.shanabrook
- 2,716
- 2
- 28
- 44
42
votes
6 answers
Deactivate a pipenv environment
How can I deactivate my pipenv environment?
With other tools I've been able to do something like source deactivate, but that has no affect here.
Create an environment:
pipenv --three
Activate the environment:
source $(pipenv…
![](../../users/profiles/4909076.webp)
tim_xyz
- 7,219
- 13
- 40
- 77
38
votes
2 answers
How to change Python version of existing conda virtual environment?
I created conda environment with Python version 3.8, but it doesn't support matplotlib... So I am looking for something like this to change Python version: conda env my_env update to python=3.6. Is it possible ore I need to recreate environment
I…
![](../../users/profiles/11391968.webp)
elixirtrip
- 483
- 1
- 4
- 5
38
votes
5 answers
How to use virtualenv with python3.6 on ubuntu 16.04?
I'm using Ubuntu 16.04, which comes with Python 2.7 and Python 3.5. I've installed Python 3.6 on it and symlink python3 to python3.6 through alias python3=python3.6.
Then, I've installed virtualenv using sudo -H pip3 install virtualenv. When I…
![](../../users/profiles/6609613.webp)
wgetDJ
- 989
- 1
- 7
- 10
36
votes
7 answers
ResolvePackageNotFound: Create env using conda and yml file on MacOS
I want to create a virtual environment using conda and yml file.
Command:
conda env create -n ex3 -f env.yml
Type ENTER it gives following message:
ResolvePackageNotFound:
- gst-plugins-base==1.8.0=0
- dbus==1.10.20=0
-…
![](../../users/profiles/7722305.webp)
waschbaerYOYO
- 481
- 1
- 4
- 8
34
votes
2 answers
Installing Anaconda into a Virtual Environment
I've currently got a working installation of the Enthought Python Distribution on my machine that I don't want to necessarily disrupt, but I'd like to look at moving over to Anaconda from Continuum.
I can easily install Anaconda into the virtualenv…
![](../../users/profiles/868908.webp)
Fomite
- 1,983
- 5
- 28
- 45
31
votes
2 answers
What is the difference between PyCharm Virtual Environment and Anaconda Environment?
When I create a new project in PyCharm, it creates a new Virtual Environment. I have read that when I execute Python scripts, they are executed using the interpreter in this environment instead of System Environment. So, if I need to install some…
![](../../users/profiles/3337089.webp)
Nagabhushan S N
- 4,063
- 5
- 26
- 54
23
votes
1 answer
How to list all python virtual environments in Linux?
I have more than one Python environment configured in my Debian OS. Is there a way to list all configured environments in Linux?
This is different from the possible duplicate as indicated in the comment below. I mean virtual environments created…
![](../../users/profiles/4796963.webp)
AhmedWas
- 924
- 3
- 14
- 35
21
votes
5 answers
There is no activate when I am trying to run my virtual env
1) I installed virtualenv using pip.
2) I ran the command virtualenv venv
3) Then I ran source venv/bin/activate but it says that there is no such file or directory.
When I cd into venv/bin I find 3 things - python, python 2.7, and python 3.5. …
![](../../users/profiles/6797201.webp)
Aaron Cheung
- 221
- 1
- 2
- 5
18
votes
2 answers
How to use the latest version of python (3.6) on Amazon's Elastic Bean Stalk Via virtual env
I can use use the latest versions of Python in a Virtual Environment in an Elastic Beanstalk instance (answer). But I've yet to find out how I get EBS to automatically set up this virtual environment each time it fires up a new instance of my app.…
![](../../users/profiles/960471.webp)
andyw
- 2,309
- 1
- 24
- 38
13
votes
4 answers
Why conda cannot create environment with python=3.4 installed in it
I have miniconda 3 installation and want to create conda environment with Python 3.4. I used the command: conda create -n myenv python=3.4 and get the error:
PackagesNotFoundError: The following packages are not available from current channels:
-…
![](../../users/profiles/5423259.webp)
ABC
- 175
- 1
- 1
- 8
12
votes
2 answers
Activating Python Virtual Environment in Atom
Don't have much expertise in programming. Only picked up Python last summer.
I have installed both Atom and Conda on my computer. Recently, I've used Atom to edit my scripts in Python, then run the scripts via Command Line. As per standard practice,…
![](../../users/profiles/6681911.webp)
m_cheah
- 131
- 1
- 7
11
votes
5 answers
Python is in conda env, but has not been activated in Windows virtual env
I created a Windows (10) Python virtual environment (env3.7.3). When I open a cmd window activated in the virtual env, I get the following warning message when starting Python in the virtual env:
(env3.7.3)…
![](../../users/profiles/9447938.webp)
Bill
- 473
- 1
- 5
- 12