可能是一个非常微不足道的问题。我在 conda 中创建了一个环境,现在想在 pycharm 中运行一个脚本。激活所述 conda 环境以便我可以在 pycharm 中使用它的命令行是什么?
2 回答

芜湖不芜
TA贡献1796条经验 获得超7个赞
默认情况下,命令是 source activate your_env_name
在Windows上,它应该是conda activate your_env_name
代替

一只名叫tom的猫
TA贡献1906条经验 获得超3个赞
Step1:首先知道你要使用的python和conda的路径。如果您不知道,您可以通过以下方式在 Windows 命令提示符下获取路径:
>where conda >where python
Step2:按Ctrl+Alt+S打开项目设置/首选项,进入项目| Python 解释器。然后单击齿轮图标并选择添加。在 Add Python Interpreter 对话框的左侧窗格中,选择 Conda Environment。选择现有环境 单击选择解释器并指定 python 和 Conda 可执行文件的路径(您在 Step1 中获得的路径)。
添加回答
举报
0/150
提交
取消