Anaconda Prompt Corrupts after Installation

风格不统一 提交于 2019-12-07 03:32:20

问题


I just installed Tensorflow-gpu after creating a separate environment following the instructions from here. However post installation when I close the Prompt window and open a new terminal the following error pops up. I have set the Anaconda/Scripts and Anaconda path to the Environment Variable too still this doesn't seem to get resolved. Any solution is appreciated.

usage: conda [-h] {keygen,sign,unsign,verify,unpack,install,install- scripts,convert,version,help} ... conda: error: invalid choice: '..checkenv' (choose from 'keygen', 'sign', 'unsign', 'verify', 'unpack', 'install', 'install-scripts', 'convert', 'version', 'help')

C:\Users\sashw>activate keras
'activate' is not recognized as an internal or external command,
operable program or batch file.

回答1:


I had the same problem. The only way to fix the issue that I found was to re-install Conda from scratch and replace the tensorflow installation by this command (removed '--ignore-installed --upgrade'):

pip install tensorflow-gpu 



回答2:


It looks like the problem is that you are not inheriting the previous system wide path when you define a new "PATH" environment variable. Your changes to the path seem to be wiping out conda from the path. Make sure any PATH environment variable you define in the variable editor has %PATH% in it (the instructions linked above do not seem to elucidate that detail). I.e. if you echo %PATH% on a new shell after you set your environment, it should have not just the thing you added it. It should also have conda (and probably other stuff) in it.



来源:https://stackoverflow.com/questions/46356732/anaconda-prompt-corrupts-after-installation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!