Python Anaconda reinstall

那年仲夏 提交于 2021-02-04 15:57:06

问题


I had a working deep learning library on CPU Linux Mint ubuntu verion 18.3 with Anaconda 3.6 but something got hosed when I was tinkering around in Theano.

https://machinelearningmastery.com/setup-python-environment-machine-learning-deep-learning-anaconda/

Everything was working just fine until I wanted to tinker around with a few .py files with KERAS_BACKEND=theano python program.py and in an attempt to fix something not working in Theano, I did this command from the theano website

http://deeplearning.net/software/theano_versions/dev/requirements.html

conda install numpy scipy mkl <nose> <sphinx> <pydot-ng>

Not knowing what I am doing it almost seemed to pooch everything... And install Python 2.7 dependencies. Would anyone be able to give me a tip on how reset my deep learning library in anaconda 3.6 build???

If I do a conda list anaconda$ its a custom build 2.7 which was not intentional! Time to start learning how to do virtual sessions :)


回答1:


  1. Read the docs for uninstalling Anaconda https://docs.anaconda.com/anaconda/install/uninstall
  2. Do a conda install anaconda-clean
  3. Then a anaconda-clean --yes
  4. Then re-download the Anaconda 5.2 For Linux Installer and run thru the steps. https://www.anaconda.com/download/#linux



回答2:


I had a similar problem and just did:

conda install --revision 0

this gives me a fresh Anaconda installation, with the drawback of needing to install every package again. Hovewer, all environments created remain intact.

More on Anaconda revisions here: https://medium.com/@wilpat456/fix-broken-anaconda-environment-due-to-recent-package-download-9094fb0f3a04



来源:https://stackoverflow.com/questions/51621107/python-anaconda-reinstall

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