Skip to content Skip to sidebar Skip to footer

Cannot Create A Virtual Environment

I've recently changed my OS to windows 10 and setup anaconda 3. The problem is that in Anaconda Navigator (in the Environment tab) when clicking on the create button to make a new

Solution 1:

python -m venv ./venv

you are mixng conda virtual environments with virtualenv virtual environments, hence all the confusion:

(venv) (base) C:\Users\shima\projects\drdr>

does look strange, because it is. You are in the baseenvironment of conda, but have activated a virtualenv environment called venv

Could not find conda environment: venv

there is no conda enviroment venv, you have never created one.

In short:

When using conda, don't use virtualenv, insted use

 conda create -n venv

to create a virtual environment and

conda activate venv

to activate it

Post a Comment for "Cannot Create A Virtual Environment"