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]\Anaconda3\etc\keras\load_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
Things to Note:
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 :(
Use quotes. This is a cmd.exe
parsing question.
python.exe "%USERPROFILE%\Anaconda3\etc\keras\load_config.py" > temp.txt
delete files in C:\\Users\\your_name\\AppData\\Local\\Continuum\\anaconda3\\etc\\conda\\activate.d
or you can reinstall/remove keras from anaconda navigator: - right click env name - start terminal - ctrl-c to stop any batch job.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.