我删除了anaconda,现在我的python路径被弄乱了。你知道如何解决它吗? [英] I removed anaconda and now my python path is messed up. Do you know how to fix it?
问题描述
我今天早些时候下载了anaconda,试用一个说我需要的图书馆。我最后删除它,但现在我的旧的python安装不起作用。
I downloaded anaconda earlier today to experiment with a library that said I neede it. I ended up removing it, but now my old python installation does not work.
当我看环境变量时,我会注意到它在路径下说anaconda。有人知道如何使一切恢复正常吗?
When I look at the environment variables I do notice it says anaconda under path. Does anyone know how to make everything go back to normal?
PATH = / Users / spencercooley / anaconda / bin:/ usr / local / share / npm / bin:/ opt / local / bin:/ opt / local / sbin :/Users/spencercooley/.rvm/gems/ruby-1.9.3-p392/bin:/Users/spencercooley/.rvm/gems/ruby-1.9.3-p392@global/bin:/Users/spencercooley/.rvm /rubies/ruby-1.9.3-p392/bin:/Users/spencercooley/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/ImageMagick / bin:/ opt / sm / bin:/ opt / sm / pkg / active / bin:/ opt / sm / pkg / active / sbin
PATH=/Users/spencercooley/anaconda/bin:/usr/local/share/npm/bin:/opt/local/bin:/opt/local/sbin:/Users/spencercooley/.rvm/gems/ruby-1.9.3-p392/bin:/Users/spencercooley/.rvm/gems/ruby-1.9.3-p392@global/bin:/Users/spencercooley/.rvm/rubies/ruby-1.9.3-p392/bin:/Users/spencercooley/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/ImageMagick/bin:/opt/sm/bin:/opt/sm/pkg/active/bin:/opt/sm/pkg/active/sbin
推荐答案
看看 /Users/spencercooley/.bashrc
和/或 /Users/spencercooley/.bash_profile
文件。其中一个可能包含一行,如 export PATH = / Users / spencercooley / anaconda / bin:$ PATH
,可以删除。然后,加载一个新的终端实例,它应该恢复正常。
Take a look at the /Users/spencercooley/.bashrc
and/or /Users/spencercooley/.bash_profile
files. One of them likely contains a line like export PATH=/Users/spencercooley/anaconda/bin:$PATH
, which you can remove. Then, load up a new terminal instance and it should be back to normal.
这篇关于我删除了anaconda,现在我的python路径被弄乱了。你知道如何解决它吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!