简体   繁体   English

Python安装问题

[英]Python installation issue

When I type the command which -a python to locate what versions of Python that it is. 当我键入命令which -a python来查找它是哪个Python版本时。 I get the following message: 我收到以下消息:

$ which -a python
/Applications/MAMP/Library/bin//python
/usr/bin/python

Now I am not sure where the "/Applications/MAMP/Library/bin//python" is being read from. 现在我不确定从哪里读取“ / Applications / MAMP / Library / bin // python”。

I really like to remove this reference but I can't find out where to change this. 我真的很想删除此引用,但是我找不到在哪里更改它。

I have tried checking the bash_profile but don't see any reference to the /Applications/MAMP/Library/bin//python 我尝试检查bash_profile但是看不到对/Applications/MAMP/Library/bin//python任何引用

I am using mac OS 10.9.5 我正在使用Mac OS 10.9.5

I ran into the same problem, and finally fixed it. 我遇到了同样的问题,终于解决了。

In my .zshrc, I have this: 在我的.zshrc中,我有这个:

export PATH=/Applications/MAMP/Library/bin:$PATH

change it to: 更改为:

export PATH=$PATH:/Applications/MAMP/Library/bin

fixed! 固定!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM