Questions tagged [virtual-environment]

544 questions
1
vote
0 answers

Multiple version of python but only one works

Sorry I know there many questions like this but for a reason or another (probabily even my ignorance) they don't work. I use windows 10 and I need different version of python 3.x for different projects. This the problem: I install a version of…
fabio
  • 1,210
  • 2
  • 26
  • 55
1
vote
3 answers

Is it necessary to activate Django Virtual Environment every time i restart my vscode Django

Is it necessary to activate the virtual environment? How can we re-enter/re-activate the already existing environment in Django? I shut down my computer and when I reopen the vs code the the '(venv)' mark is not there in the terminal before the…
1
vote
1 answer

Virtual environment shows pip of the main system

After I made a new virtual environment in python python3 -m venv venv, I did pip install gtts and by doing pip freeze I can verify that it was successfully installed. Also, I did activate the virtual environment before installing. On the pip freeze,…
1
vote
1 answer

VScode does not recognize any of the conda environment

I used to be able to choose the appropriate Anaconda environment from Command Palette however when I open the VScode today I should have messed up the configuration somehow that it does not really show any conda environment (even the base). When I…
math
  • 341
  • 4
  • 14
1
vote
0 answers

pipenv virtual environment name disappears everytime the VS Code terminal is refreshed

I was working on a Django project after activating the virtual environment created through pipenv. The virtual environment name given in brackets (lead-manager-full-stack-8btqndKQ) in the vs code terminal disappears everytime i run python manage.py…
Akash p
  • 67
  • 6
1
vote
1 answer

Installing module using Anaconda caused issues on my Virtual Environment

I attempted to update pandas_datareader on my Python 3.5.2 virtual Environment using Anaconda like this: conda activate myenv conda install -c anaconda pandas-datareader But now I can't use the environment in any of the IDEs I use, neither in CMD.…
Aquiles Páez
  • 503
  • 6
  • 18
1
vote
0 answers

Conda environment kernels disappearing when called

EDIT: Problem solved. Turns out Avast was classifying python.exe within the environments as a virus due to fresh conda installs (and being in silent mode I never found out). Solution found from here:…
Huug.
  • 177
  • 12
1
vote
0 answers

Starting Python VEnv in .cmd file on Windows

In a nutshell: I want to start a Python (GUI) app in a venv on windows by double-clicking on a start.cmd file. Everything now works, except: I can't get the CMD terminal window disconnected (running in a separate process) from the Python…
1
vote
0 answers

How can I switch virtual environments with Spyder without going to preferences?

I have been programming in Python using Spyder in combination with virtual environments for a while now. Before I started using virtual envs, I installed Spyder using pip. I am not very familiar with paths and environments, but this seemed the way…
Hendrik777
  • 11
  • 2
1
vote
1 answer

vscode/Python | unable to acess environment variables

So basically my issue is that I have no idea why I can't access the environment variables that I have set in my .env file. I'm pretty sure I have set it up correctly because AERPL produces the correct output, but when I use my terminal (Git-bash) or…
1
vote
0 answers

How to install a package only within a conda environment, without affecting other environments?

I thought that this would simply be done by running pip install within the environment (after source activate). But in my case, pip install affects ALL my environments. For example, I am trying to install an older version of torch only in env1, but…
Simon
  • 5,070
  • 5
  • 33
  • 59
1
vote
0 answers

How to add variables to path on Windows?

On page 13 of Python Automation Cookbook, Then, add the following variables to your sheet startup script, these normally being .bashrc or .bash_profile. The virtual environments will be installed under the WORKON_HOME directory instead of the same…
user8314628
  • 1,952
  • 2
  • 22
  • 46
1
vote
1 answer

jupyter notebook and ipython don't take correct path after activating a conda environment

I have setup anaconda3 for multiple users in a lab workstation at /opt/anaconda3 so that other users don't have to set up a fresh anaconda3 install for themselves. Then I created an environment called zud for my use. So currently, the workstation…
1
vote
1 answer

Can't pip install package from github in virtual environment

I have written a python package package which is hosted on github and I would like to install it in a new virtual environment on my pc. It is the simplest package possible: package ├── README.md ├── pkg │ └── __init__.py │ └── main.py ├──…
Gigioz
  • 367
  • 5
  • 19
1
vote
2 answers

I created a venv and tried to install tensorflow 1.15 but still the same error

Please Help me out. I have installed tensorflow 2.3 globally and am trying to install tensorflow 1.15 but always face this error. I tried uninstalling tensor globally but failed. (Cardiac) C:\venvCardiac>pip install tensorflow==1.15 Collecting…