简体   繁体   English

升级python的正确方法是什么?

[英]What is the correct way to upgrade python?

I have python 2.7.6 and 3.4 on my mac installed currently. 我目前在Mac上安装了python 2.7.6和3.4。 I want to upgrade python2 to python 2.7.8 as I believe it is the more secure. 我想将python2升级到python 2.7.8,因为我认为它更安全。 What is the right way to do this? 什么是正确的方法? Do I simply download the installer from the website and run it? 我是否只是从网站上下载安装程序并运行它? If so, will my system automatically use 2.7.8 over the previously installed 2.7.6? 如果是这样,我的系统会自动使用2.7.8取代以前安装的2.7.6吗?

Note, the python version 2.7.6 came pre-installed. 请注意,python版本2.7.6已预先安装。 And I apologize if the question seems redundant. 如果这个问题看起来很多余,我深表歉意。 I used to develop blindly without any thought of the versions and packages and made a mess of my projects. 我曾经盲目地开发,根本不考虑版本和软件包,并且弄乱了我的项目。 So now I try to careful. 所以现在我要小心。

pyenv is a simple Python version management. pyenv是一个简单的Python版本管理。 You can find more on pyenv . 您可以在pyenv上找到更多信息

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

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