所以我最近通过anaconda提示下载了keras(我已经成功下载了其他包).它确实有效,因为我能够在 Jupyter Notebook 中导入 keras.但是,现在我在打开 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
注意事项:
那么,我的文件夹名称中有空格是问题的根源吗?如果是,我如何在不弄乱我的电脑的情况下更改它?如果不是,你们有什么想法解决这个问题吗?非常感谢,几天后我有两个项目要到期:(
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 :(
经过几天的搜索,我找到了另一种解决方案.
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
.
这篇关于安装 Keras 后 Anaconda 提示卡住/关闭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!