問題描述
所以我最近通過anaconda提示下載了keras(我已經(jīng)成功下載了其他包).它確實有效,因為我能夠在 Jupyter Notebook 中導入 keras.但是,現(xiàn)在我在打開 Anaconda 提示時遇到以下問題:
So I recently downloaded keras through the anaconda prompt (I've downloaded other packages successfully). It actually worked, as I was able to import keras in Jupyter Notebook. However, now I get the following issue when I open the Anaconda Prompt:
C:Users[User Name]>python C:Users[User Name]Anaconda3etckerasload_config.py 1>temp.txt
python: can't open file 'C:Users[User]': [Errno 2] No such file or directory
C:Users[User Name]>set /p KERAS_BACKEND= 0<temp.txt
C:Users[User Name]>del temp.txt
C:Users[User Name]>python -c "import keras" 1>nul 2>&1
注意事項:
- 起初,我根本無法在窗口中鍵入或輸入任何內(nèi)容.
- 關(guān)閉并重新打開后,同樣的消息打開,但后面是一堆我無法閱讀的文本,因為窗口隨即關(guān)閉.
- 在提供的錯誤消息中,第三行有 [User] 而不是 user.那是因為我計算機上的用戶文件夾名稱是 FirstName LastName.我想知道一個空間可能是問題所在.
- 我不想卸載 anaconda,因為我有一個項目在幾天后到期,不希望出現(xiàn)任何安裝/數(shù)據(jù)丟失問題.
那么,我的文件夾名稱中有空格是問題的根源嗎?如果是,我如何在不弄亂我的電腦的情況下更改它?如果不是,你們有什么想法解決這個問題嗎?非常感謝,幾天后我有兩個項目要到期:(
So, is my folder name having a space the root of the issue? If it is, how do I change it without messing up my computer? If it isn't, do you guys have any ideas of what is the solution to this? Thank you so much, I have two projects due in just a few days :(
推薦答案
經(jīng)過幾天的搜索,我找到了另一種解決方案.
After a few days of searching, I found an alternative solution.
打開 Anaconda 導航器
Open Anaconda Navigator
點擊Environments
標簽(如圖)
點擊base(root)
(三角形圖標),然后點擊Open Terminal
Click base(root)
(triangle icon) and then click on Open Terminal
通過使用此解決方案,您將能夠打開 Anaconda Prompt
窗口并使用 Anaconda Prompt
做任何您想做的事情.
By using this solution, you'll be able to open Anaconda Prompt
window and do whatever you want with Anaconda Prompt
.
這篇關(guān)于安裝 Keras 后 Anaconda 提示卡住/關(guān)閉的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!