问题
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:
- Read the docs for uninstalling Anaconda https://docs.anaconda.com/anaconda/install/uninstall
- Do a
conda install anaconda-clean
- Then a
anaconda-clean --yes
- 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