Questions tagged [virtual-environment]
544 questions
22
votes
1 answer
Is there a GO equivalent to python's virtualenv?
The question is in the title: Is there a GO equivalent to python's virtualenv? What is the prefered work flow to start a new project?

will.mendil
- 752
- 2
- 6
- 21
22
votes
8 answers
Python is in a Conda environment, but it has not been activated in a Windows virtual environment
I created a Windows (10) Python virtual environment (env3.7.3). When I open a cmd window activated in the virtual environment, I get the following warning message when starting Python in the virtual environment:
(env3.7.3)…

Bill
- 653
- 2
- 7
- 20
19
votes
5 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:
-…

ABC
- 336
- 1
- 2
- 9
18
votes
10 answers
Python venv not creating virtual environment
I'm trying to create a virtual environment for my current Django project using
python3 -m venv env
however the command doesn't create any directory with bin/include/lib folders.
What exactly am I missing here?

Shury
- 468
- 3
- 15
- 49
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.…

andyw
- 3,505
- 2
- 30
- 44
16
votes
3 answers
Do I need to install Jupyter notebook in every virtual environment?
I isolate my data science projects into virtual environments using pipenv. However, running a Jupyter notebok does not access the local environment and uses the default IPyKernel. I've seen that you can register virtual environments from within the…

user126350
- 505
- 5
- 11
16
votes
2 answers
Why is the `bin` directory named differently (`Scripts`) on Windows?
The venv module (shipped with Python 3.3 or later), and virtualenv, still widely in use, allow to install a project's dependencies not to the system-wide Python installation, but to a directory specific to that project.
One of the subdirectories of…

tiwo
- 3,238
- 1
- 20
- 33
12
votes
4 answers
Is it possible to update Pipfile after installing packages using pip install?
I just created a pipenv environment using pipenv --python 3.9. I then did pipenv shell and started installing packages with pip install. It turns out this doesn't seem to be the usual way of doing things with pipenv. Is there any command I can run…

Ariel
- 3,383
- 4
- 43
- 58
12
votes
2 answers
Setting Up a Python Virtual Environment with Hydrogen in Atom
I'm in the middle of switching from VS Code to Atom and I'm trying to set up a virtual environment for my python project.
It was pretty easy to do in VS Code, I'd run the following script and it would automagically start using the new env (with all…

Tim Estes
- 377
- 2
- 19
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,…

m_cheah
- 131
- 1
- 1
- 8
11
votes
1 answer
Can renv be used to create a virtual environment with a specific version of R?
I recently installed R 4.0, after previously using relying R 3.6.3. To manage R repositories, I use Rstudio (currently 1.2.5042 on a Windows 10 machine). After upgrading to R 4.0, I opened a project from a few months ago, and realized that Rstudio…

Matt
- 238
- 1
- 8
11
votes
2 answers
Consequences for virtual env when system's Python is removed and/or updated
EDIT FOR CLARITY: This question is in reference to venv, which is often confused with virtualenv.
What are the consequences of removing the system's Python installation which was the source used to create virtual environments on the system using…

Joshua Schlichting
- 3,110
- 6
- 28
- 54
11
votes
2 answers
Ubuntu terminal starts with the Anaconda base environment (how to correct that?)
I have downloaded and installed the Anaconda distribution for Ubuntu (18.04) from [https://www.anaconda.com/distribution/#download-section] conform instructions some weeks ago. Everything worked fine.
Today I updated the packages in the Gnome…

René
- 4,594
- 5
- 23
- 52
11
votes
4 answers
failed to create anaconda environment ResolvePackageNotFound
I've been trying to use this yml file to create an environment (I created the yml):
name: testenv
channels:
- esri
- scitools
- obspy
- conda-forge
- defaults
dependencies:
- appnope=0.1.0=py36_0
- libgfortran=3.0.0=0
- pip=9.0.1=py36_0
-…

mnky9800n
- 1,113
- 2
- 15
- 33
10
votes
3 answers
Install Python 3.10.5 using pyenv
I want to install Python 3.10.5 (or at least Python >= 3.7.). I followed these instructions:
# Step 1. Install pyenv
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
echo 'export…

zest16
- 455
- 3
- 7
- 20