简体   繁体   English

更新python mac安装

[英]Update python mac installation

I mistakenly deleted the old python installion on my system, i then downloaded the new python 3 release however when i type python into the terminal it still looks for it in the 2.7 directory. 我错误地删除了我的系统上的旧python安装,然后我下载了新的python 3版本,但是当我在终端中键入python时,它仍然在2.7目录中查找它。 I looked through a few questions that said something about updating the path variable however ive had no luck, as to me it seems that python is only 4 files installed in the applications folder. 我查看了一些关于更新路径变量的问题,但是我没有运气,对我而言,似乎python只是在应用程序文件夹中安装了4个文件。 I really would appreciate some help. 我真的很感激一些帮助。 Thank you 谢谢

It is better if you reinstall your system from recovery mode. 如果从恢复模式重新安装系统,则会更好。 A lot of OSX software can rely on system python, even if it is not python projects. 很多OSX软件都可以依赖系统python,即使它不是python项目。 Then recomended way is use homebrew . 然后推荐的方式是使用自制软件 You can have different python (2.7, 3.3, pypy) versions the same time. 您可以同时拥有不同的python(2.7,3.3,pypy)版本。

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

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