安装 Keras 后 Anaconda 提示卡住/关闭 [英] Anaconda Prompt Stuck/Closing after Keras installation

查看:21
本文介绍了安装 Keras 后 Anaconda 提示卡住/关闭的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我最近通过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

注意事项:

  • 起初,我根本无法在窗口中键入或输入任何内容.
  • 关闭并重新打开后,同样的消息打开,但后面是一堆我无法阅读的文本,因为窗口随即关闭.
  • 在提供的错误消息中,第三行有 [User] 而不是 user.那是因为我计算机上的用户文件夹名称是 FirstName LastName.我想知道一个空间可能是问题所在.
  • 我不想卸载 anaconda,因为我有一个项目在几天后到期,不希望出现任何安装/数据丢失问题.

那么,我的文件夹名称中有空格是问题的根源吗?如果是,我如何在不弄乱我的电脑的情况下更改它?如果不是,你们有什么想法解决这个问题吗?非常感谢,几天后我有两个项目要到期:(

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.

  1. 打开 Anaconda 导航器

  1. 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 提示卡住/关闭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆