Questions tagged [virtual-environment]
544 questions
2
votes
1 answer
Importing modules from a virtual environment in Python
I've recently become interested in virtual environments in Python, in order to keep my code more organized and more portable. For this reason, I did a factory reset on my Raspberry Pi and started from scratch, with only the default Python modules.…

MillerTime
- 317
- 2
- 11
2
votes
1 answer
Running script in Conda environment from within script in another Conda environment
I have two scripts, let's call them master.py and subject.py. master.py is supposed to run in Python3, while subject.py, in Python2, therefore I created two separate Conda environments for them which we'll call env-master and env-subject. However,…

Mutoh
- 358
- 3
- 18
2
votes
1 answer
How do you install an optional package when using Python Poetry?
Given the following pyproject.toml file, how do I install the optional package ipdb?
[tool.poetry]
name = "yolo"
version = "1.0.0"
description = ""
authors = []
[tool.poetry.dependencies]
python = "^3.8"
Django = "^4.0.4"
ipdb = {version =…

Steven C. Howell
- 16,902
- 15
- 72
- 97
2
votes
0 answers
Failed to start the Kernel on Jupyter in VS code
I am trying to use a Jupyter notebook in VS Code. I made a virtual environment but keep this error occurred and I don't know how to solve it.
I have tried several ways from other question posts.
What I have done
pip uninstall pyzmq
pip install…

QpaQpa
- 21
- 1
2
votes
1 answer
Pip installs packages in pyenv root even when virtual environment is activated
I try to install a package with pip in a virtual environement previously created with venv. The Python version is managed through pyenv. I don't want to use pyenv to create the virtual environment.
The project is set up this way. To the project…

runningwild
- 129
- 12
2
votes
0 answers
How do I solve: You're using Python 0.0. Some features might not work as expected since Visual Studio no longer supports this version?
I am trying to create a virtual environment in Visual Studio. I created Python Project and have installed Python 3.10. I selected "Add Environment...", named it and selected a requirements.txt file. It takes about 20 minutes to create the…

Bende
- 91
- 8
2
votes
1 answer
Can I use conda to handle a virtual environment created by virtualenv
I ran a provided shell file and a requirements.txt file and that shell file created the virtual environment using virtualenv. However, I do most of my coding work using Anaconda. Is that possible to use conda to activate and manage my virtual…

royal grasshopper
- 27
- 5
2
votes
1 answer
pyenv global command doesn't set the correct python version
So I activated this virutal environment:
pyenv install 3.7.4
pyenv virtualenv 3.7.4 apps3
pyenv local apps3
pyenv activate apps3
and also set this:
pyenv global 3.7.4
I already have these in my .zshrc profile as suggested here:
$ export…

x89
- 2,798
- 5
- 46
- 110
2
votes
1 answer
Pip config settings not working for virtual environment
Studying https://pip.pypa.io/en/stable/topics/configuration/ I understand that I can have multiple pip.conf files (on a UNIX-based system) which are loaded in the described order.
My task is to write a bash script that automatically creates a…

kerfuffle
- 168
- 1
- 10
2
votes
0 answers
How to run virtual environment in Spyder without Anconda?
I want to run virtual environment in Spyder without Anconda or miniconda.
When I change the interpreter for default to my virtual environment,there is a error like this:
Your Python environment or installation doesn't have the spyder‑kernels module…

disney82231
- 189
- 1
- 3
- 11
2
votes
1 answer
Solving conda environment stuck
I'm trying to install conda environment using the command:
conda env create -f devenv.yaml
My .yaml file is
name: myname
channels:
- conda-forge
- bioconda
dependencies:
# Package creation and environment management
- conda-build
#…

Ildar
- 33
- 6
2
votes
0 answers
How to install Android Studio on Windows 10 Home Edition running AMD Processor?
I am runnning AMD processor on windows machine and I get the following error when trying to install Android Emulator Hypervisor Driver for Android Stuido:
However, Mircrosoft's official docs tells me that my Operating System - Windows 10 Home…

Awshaf Ishtiaque
- 441
- 5
- 11
2
votes
1 answer
Does installing packages in googleColab acts like virtual environment?
I was wondering when you install packages such as tesseract in google colab, is it going to install it just for that notebook or folder and creates something like a virtual environment or its global to my gmail account ?

BZ2021
- 55
- 5
2
votes
1 answer
Best way to copy python environment of Google colab
I have a code which was developed on Google colab and now I want to run it on local machine or on a server. The problem is my code has got a lot of dependencies and its getting difficult to prepare an virtual / conda environment. The code is working…

coolpd007
- 21
- 2
2
votes
0 answers
Why isn't Pip working inside Python 3.6.9 Virtual Environment?
Specs:
I am running a Ubuntu Server 20.04.1 LTS Virtual Machine in HyperV (with a GUI installed).
I run this, and see it came with Python 3.8.5:
$ python3 --version
Python 3.8.5
Goal:
I need to:
Install Python 3.6.9 in my VM.
Go to an existing…

antoniopgs
- 59
- 2