Questions tagged [virtual-environment]

544 questions
4
votes
1 answer

The naming rules for your virtual environments in Python

I'm looking for some sort of naming scheme for my virtual environments. How do you usually name them? Is there naming convention for python virtual environments?
4
votes
0 answers

Pipenv install is not adding dependencies to Pipfile.lock

In the process of converting some projects which are currently managed by requirements.txt files to Pipenv. First, I make a Pipenv environment with the following: pipenv --python 3.8 Activate the environment with: pipenv shell Install an editable…
4
votes
1 answer

Anaconda Environment Error - Access denied

I had Anaconda installed before, but it wasn't responding (Python & VS Code acts weird) so i decided to remove and install again. After that I installed and created an environment again. Command prompt recognizes conda/anaconda commands but when I…
merto-dvp
  • 41
  • 4
4
votes
1 answer

How to install python packages in a virtual environment without downloading them again?

It's a great hassle when installing some packages in a VE and conda or pip downloads them again even when I already have it in my base environment. Since I have limited internet bandwidth and I'm assuming I'll work with many different VE's, it will…
Banana Bamboo
  • 59
  • 1
  • 9
4
votes
2 answers

How do I run a python program in a virtual environment from windows command prompt?

I created a virtual environment for a Python program using PyCharm. I can run the program just fine straight from PyCharm terminal but when I try to run it from windows command prompt I get an error because some modules in the program are only…
Tulio Franzini
  • 109
  • 1
  • 2
  • 10
4
votes
1 answer

I installed a package outside virtual environment but cannot use it in the virtual environment

I've installed the package Pillow outside the virtual environment created using pipenv. But when I try to make migrations for my django project in this environment, it says Pillow is not installed and asks to install it. I think I installed pillow…
4
votes
5 answers

how to revert back to default behavior of env_prompt parameter in .condarc?

If you create a python environment in conda with --prefix flag and activate it, post-activation the environment is shown by its entire path. This could be a very long path and hence the conda-documentation suggests a fix as follows. conda config…
CypherX
  • 7,019
  • 3
  • 25
  • 37
4
votes
2 answers

Problems setting up a python 3.7 virtual environment

I am trying to create a new python 3.7 virtual environment on my local computer running Windows 8. I have python versions 3.6, 3.7, and 3.8 installed. Their exe's are named python36, python37, and python, respectively. All three are correctly added…
4
votes
1 answer

Why virtualenv shows all packages installed and do not install modules in virtualenv?

Question I am not sure why when virtualenv active, pip freeze stills showing all modules when it suppose NOT to. What am I doing wrong? On the terminal I tried two ways to create a virtual env: virtualenv my-virtualenv virtualenv…
4
votes
0 answers

How to fix "PermissionError: [WinError 5] Access is denied" in virtual environment and Jupyter notebook caused by n_jobs = -1

I am working within a virtual environment that was setup following https://docs.python.org/3/tutorial/venv.html In addition I am using Jupyter Notebook. In my code I am using sklearn.model_selection.cross_val_score(...). It seems that the parameter…
4
votes
2 answers

Problem with Keras installation in Anaconda

I'm trying to install Keras in anaconda from the instructions given here. I ran the command conda install -c conda-forge keras and then after that, I pressed y when the prompt appeared asking me to press y/n. Then some libraries were downloaded and…
Ashutosh Pathak
  • 1,619
  • 1
  • 8
  • 12
4
votes
2 answers

removing redundant ipython kernels

I have currently 3 environments: root(base), aind-dl, py2env So, for easy working, I've installed the conda extensions: nb_conda, nb_conda_kernels and when I run $: jupyter notebook the nb_conda_kernel detects 5 kernels which are redundant and in…
Y. Aakash
  • 41
  • 1
  • 4
4
votes
2 answers

How can I make venv install a python3.6 binary?

When I run python -m venv, the virtual environment directory that venv creates includes a binary named python and another named python3 which is just a link to python. (In my installation, python is Python 3.6 and python2 is Python 2.7.) My problem…
fonini
  • 2,989
  • 3
  • 21
  • 39
4
votes
1 answer

Two virtual environments for a single Django project?

I have a Django project for which I have created a virtual environment with the packages it requires. Now for development, I was looking for a tool where I could try some code before including it to my project. I had a good experience with Jupyter…
Jacques Gaudin
  • 15,779
  • 10
  • 54
  • 75
4
votes
0 answers

Getting PyCharm to use ipython as the remote interpreter, including virtual environment

I'm attempting to set up PyCharm to work with a remote interpreter. I can get the basic SSH setup to work correctly, and I point it to the python interpreter I have under a Virtual Environment: /remote/file/directory/me/environment/bin/python 1)…
Savage Henry
  • 1,990
  • 3
  • 21
  • 29