簡體   English   中英

conda環境激活報錯:“系統找不到指定的路徑。” (窗戶 10)

[英]Conda environment activation error: “The system cannot find the path specified.” (windows 10)

安裝 anaconda3 后,我使用 Anaconda 命令提示符啟動了 jupyter notebook,它運行良好。 后來已經關閉了我的計算機,在啟動時我嘗試通過 Anaconda 命令提示符打開 jupyter notebook,它打開另一個終端並顯示以下警告消息。

Python 3.8.5 (default, Sep  3 2020, 21:29:08) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32

Warning: 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它給了我一個在 Anaconda 提示符下運行的命令

c:\Anaconda3\Scripts\activate base 

該命令返回

C:\Users\Daniel>c:\Anaconda3\Scripts\activate

The system cannot find the path specified.

我在https://docs.conda.io/projects/conda/en/latest/user-guide/troubleshooting.html#path-error解決方案圖像上找到了一個解決方案,但我不知道如何實現它。 我還嘗試從命令提示符獲取 python 和 conda 的路徑。 conda 的路徑是正確的,而 '> where python' 返回“INFO:找不到給定模式的文件。”

C:\Users\Daniel>where python
INFO: Could not find files for the given pattern(s)

看起來您在該計算機上的帳戶是“Daniel”,因此這可能是您需要運行的命令:

C:\Users\Daniel\Anaconda3\Scripts\activate base

您的 Anaconda 路徑可能存在一些問題。 您需要將 Anaconda 和 Anadconda 腳本添加到 PATH 環境變量中。 這可以在 windows 電源 shell 或命令提示符中完成。

只需在終端中輸入set PATH=%PATH%;C:\Anaconda3;C:\Anaconda3\Scripts\看看是否有效。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM