在安装anaconda3之后,我使用Anaconda命令提示符启动了jupyter notebook,它工作得很好。后来,我已经关闭了我的计算机,在启动时,我试图通过Anaconda命令提示符打开jupyter笔记本,但它打开了另一个终端,并显示以下警告消息。
Python 3.8.5 (default, Sep 3 2020, 21:29:08) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32Warning: This Python interpreter is in a conda environment, but the environment has not been activated. Libraries may fail to load. To activate this environment please see https://conda.io/activation
我访问了https://conda.io/activation,它给了我一个在蟒蛇提示符下运行的命令
c:\Anaconda3\Scripts\activate base 此命令返回
C:\Users\Daniel>c:\Anaconda3\Scripts\activateThe system cannot find the path specified.
我在https://docs.conda.io/projects/conda/en/latest/user-guide/troubleshooting.html#path-error Solution image上找到了一个解决方案,但我不知道如何实现它。我还尝试从命令提示符获取python和conda的路径。当'>where python‘返回"INFO:找不到给定模式的文件“时,conda的路径是正确的。
C:\Users\Daniel>where python
INFO: Could not find files for the given pattern(s)发布于 2021-05-31 22:21:26
看起来您在该计算机上的帐户是"Daniel",所以这可能是您需要运行的命令:
C:\Users\Daniel\Anaconda3\Scripts\activate base发布于 2021-03-29 16:10:26
您的Anaconda路径可能有一些问题。您需要将Anaconda和Anadconda脚本添加到PATH环境变量中。这可以在windows power shell或命令提示符中完成。
只需在终端中输入set PATH=%PATH%;C:\Anaconda3;C:\Anaconda3\Scripts\,看看是否能正常工作。
https://stackoverflow.com/questions/66850644
复制相似问题