Python Anaconda 重新安装

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/51621107/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-19 19:53:16  来源:igfitidea点击:

Python Anaconda reinstall

pythondeep-learninganaconda

提问by HenryHub

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.

我在带有 Anaconda 3.6 的 CPU Linux Mint ubuntu verion 18.3 上有一个有效的深度学习库,但是当我在 Theano 中修修补补时出现了一些问题。

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

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.pyand in an attempt to fix something not working in Theano, I did this command from the theano website

一切都很好,直到我想修改一些 .py 文件KERAS_BACKEND=theano python program.py并尝试修复在 Theano 中不起作用的东西,我从 theano 网站执行了这个命令

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

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

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

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???

不知道我在做什么几乎似乎把所有东西都塞进去了……并安装 Python 2.7 依赖项。谁能给我一个关于如何在 anaconda 3.6 版本中重置我的深度学习库的提示???

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 :)

如果我做一个conda list anaconda$自定义构建 2.7 这不是故意的!是时候开始学习如何进行虚拟会议了 :)

回答by HenryHub

  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
  1. 阅读有关卸载 Anaconda 的文档 https://docs.anaconda.com/anaconda/install/uninstall
  2. 做一个 conda install anaconda-clean
  3. 然后一个 anaconda-clean --yes
  4. 然后重新下载 Anaconda 5.2 For Linux Installer 并按照步骤运行。https://www.anaconda.com/download/#linux

回答by chavezbosquez

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.

这给了我一个全新的 Anaconda 安装,缺点是需要再次安装每个包。但是,所有创建的环境都保持不变。

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

有关 Anaconda 修订的更多信息,请访问:https: //medium.com/@wilpat456/fix-broken-anaconda-environment-due-to-recent-package-download-9094fb0f3a04