[英]Creating Virtual Environment in Windows
I created a virtual environment using conda create -n venv
inside the project folder and activated the venv
environment.我在项目文件夹中使用
conda create -n venv
创建了一个虚拟环境并激活了venv
环境。 However, I face the following issues:但是,我面临以下问题:
venv
environment is getting created under C:\\Users\\Rajesh\\anaconda3\\envs
folder. venv
环境正在C:\\Users\\Rajesh\\anaconda3\\envs
文件夹下创建。venv
environment, the packages not getting installed in venv
folder.venv
环境中安装软件包时,这些软件包没有安装在venv
文件夹中。 Please advise what is going wrong here$USER/anaconda3/env
, no matter where you execute the create command, the env created will be put in this path. $USER/anaconda3/env
,无论你在哪里执行 create 命令,创建的 env 都会放在这个路径下。 You could change this default path by editing $HOME/.condarc
:$HOME/.condarc
来更改此默认路径:envs_dirs:
- some path you like
pkgs_dirs:
- some path you like
conda activate venv
before installing packages?conda activate venv
吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.