Questions tagged [virtual-environment]
544 questions
1
vote
1 answer
Configuring Python Environment (poetry) in Codespaces
I want to select my project's python interpreter as poetry environment in Codespaces. By the way I connect codespaces with my local VSCode. I can see and select interpreter from poetry via command palette.
However it doesn't seem to work, since the…

Kerem Z
- 13
- 5
1
vote
2 answers
How to export installed packages(using pip in a conda environment) in to requirements.txt?
I installed some Python libraries in the Conda environment using the conda command. Again I installed some other packages/libraries e.g. stable-baselines using pip also in that Conda environment.
After that I exported environments in the…
user17879285
1
vote
1 answer
VSCode and Jupyter Notebooks: Automatic activation of virtual environment from selected kernel
When working on a Python file with VSCode a new integrated terminal automatically activates the virtual environment from which I have chosen the Python interpreter. I find this to be very useful and I wanted to know if it's possible to do the same…

BB3C
- 61
- 6
1
vote
1 answer
Modiyfing conda configuration file does not reflect changes in environment
I am trying to change the default installation location for Conda environments because the system I am using (a supercomputing cluster) has a ~20GB user home quota. Under normal circumstances, this could easily be done by editing ~/.condarc and…

Josh Loecker
- 196
- 2
- 14
1
vote
0 answers
How conda environments can be visible for all users added into jupyterhub?
I am using jupyterhub where i have installed conda and created environments too, from the perspective of the admin. My concern is that i have also added some other users into jupyterhub server but those users cannot see any of what i have installed…

moctarjallo
- 1,479
- 1
- 16
- 33
1
vote
0 answers
An error occured when I wanted to used conda shared virtual environment:CondaValueError: prefix already exists: E:\ano
I want to use the virtual environment that my friend shared with me,which named 'python38_env.yml'.
But when I entered the command below in the command window:
conda env create -f /TuXiangKeShe/License_Plate/python38_env.ym
An error…

ZZzzz
- 11
- 1
1
vote
1 answer
Snakemake with integrated conda env not properly installed
I have a rule in my snakemake pipeline to run multiqc :
rule summaryReport:
input:
fastqc_forward = expand(final_path + "/fastqc/{sample}_R1_fastqc.html", sample = samples),
fastqc_rev = expand(final_path +…

GuillaumeRS
- 35
- 3
1
vote
2 answers
Preinstall conda envs Snakemake
When trying to run snakemake, I always have to install/download conda envs.
(snakemake) (ec2-user)$ bash run_snakemake.sh
Building DAG of jobs...
Creating conda environment ../envs/svg_env.yaml...
Downloading and installing remote packages.
Is…

figogat337
- 11
- 1
1
vote
0 answers
pipenv install: the environment variable LANG is not set
I changed my laptop with window process to macOS and I installed some development tools and virtual environment tools.
Now I get this error message while installing pipenv
the environment variable LANG is not set!
I did googling and many peoples…

Seowoo Jang
- 65
- 13
1
vote
1 answer
cannot create python virtual environment (exit status 101)
When I try to generate a virtual environment, the following error pops up on Windows 11:
PS C:\programming\tmp> python -m venv venv
Error: Command '['C:\\programming\\tmp\\venv\\Scripts\\python.exe', '-Im', 'ensurepip', '--upgrade',…

user7431005
- 3,899
- 4
- 22
- 49
1
vote
0 answers
Unexpected error when trying to install conda environment from .yaml file
I am trying to install a conda environment in WSL2 from a .yaml file, the instructions for the installation saying the first step is to run the following command:
conda env create -f devtools/conda-envs/ael-test.yaml
After the WSL2 terminal…

Gheorghe Rotaru
- 11
- 2
1
vote
2 answers
Enabling Jupyter Notebook with --prefix
I make my environments using --prefix rather than --name. This usually works fine, but I've run into a problem:
I want to use Jupyter Notebook in my environment, but the command doesn't accept both the --user and --prefix as arguments. Surprisingly,…

TheeElm
- 17
- 6
1
vote
1 answer
Mamba can't create env giving 'nothing provides' but pip sees such version of opencv-python
I need to create env with
mamba create --name tf1_12__HDR Tensorflow==1.12.0 Keras==2.2.4 opencv-python==3.4.4.19 anaconda
It provides
mamba (0.7.3) supported by @QuantStack
...
Looking for: ['tensorflow==1.12.0', 'keras==2.2.4',…

MosQuan
- 85
- 1
- 11
1
vote
0 answers
what is the difference between running a script with "python" vs "python3" commands from the terminal in Conda virtual environment
I am pretty new to virtual environments so please bear with me while I talk this out.
I am trying to run a script from the terminal in a conda virtual environment and I am wondering what the difference is between running a script using python…

Zac
- 362
- 1
- 4
- 16
1
vote
0 answers
how to use virtual environment for python2.7 on Mac M1?
My old code project's process environment is python2.7, I bought a new Mac M1 days ago, however, after install conda by miniforge, I found it that only supports python3,and virtualenv is so on, anybody help?

bai
- 21
- 1
- 5