简体   繁体   English

如何将Conda Env切换为与Jupyther Notebook(Win10)一起使用

[英]How to switch conda env to use with jupyther notebook (win10)

I am trying to work with the package RDkit, I installed it with conda fallowing the documentation command: 我正在尝试使用RDkit软件包,我在conda的基础上使用了documentation命令来安装它:

conda create -c rdkit -n my-rdkit-env rdkit
activate my-rdkit-env

the prompt is telling me it is using the new env, I then launch jupyter notebook from this prompt but I can't import rdkit, it seems to be using the regular env. 提示告诉我它正在使用新的环境,然后我从该提示启动jupyter notebook,但我无法导入rdkit,它似乎正在使用常规环境。 Also for some reason python is not recognize in cmd nor powershell after installing conda (anaconda is in PATH) 同样由于某种原因,在安装conda之后,cmd或powershell中都无法识别python(anaconda位于PATH中)

Try conda install jupyter from the terminal in your new environment before launching a new jupyter notebook. 在启动新的jupyter笔记本电脑之前,请尝试在新环境中从终端conda install jupyter

I had this same problem with Spyder, a code editor which would launch in Python2 when launched from a Python3 environment, unless I installed Spyder in that specific Python3 environment first. 我对Spyder遇到了同样的问题,Spyder是从Python3环境启动时会在Python2中启动的代码编辑器,除非我先在特定的Python3环境中安装了Spyder。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM