如何从 python 3.5 升级到 3.6

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/44062705/
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 23:42:22  来源:igfitidea点击:

how to upgrade from python 3.5 to 3.6

pythonpython-3.5python-3.6

提问by P.hunter

My machine runs on Windows and i tried to find out about it but people only talk about mac and brewon other discussions. I want to ask if there is a command line which i need to write which can upgrade the core or i have to download 3.6 package from the official website and then uninstall the 3.5 and then install 3.6 (and i don't want to do that because it sounds mess to me)

我的机器在 Windows 上运行,我试图了解它,但人们只谈论 mac 和brew其他讨论。请问有没有需要写的命令行可以升级内核,还是得去官网下载3.6的包然后卸载3.5再安装3.6(我不想那样做因为这对我来说听起来很混乱)

i have 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:01:18) [MSC v.1900 32 bit (Intel)]

我有 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:01:18) [MSC v.1900 32 bit (Intel)]

any help?

有什么帮助吗?

采纳答案by berthos

I think you have to download Python 3.6 package, but no need to uninstall the 3.5 Version (you can have both)

我认为你必须下载 Python 3.6 包,但不需要卸载 3.5 版本(你可以同时拥有)

Keep in mind that the custom libraries you where using with python 3.5 have to be installed for 3.6 too, but you can do that with pip easily

请记住,您在 python 3.5 中使用的自定义库也必须为 3.6 安装,但您可以使用 pip 轻松完成

Changing the interpreter from pycharm can be achieved when creating a new project:

创建新项目时可以实现从pycharm更改解释器:

enter image description here

在此处输入图片说明

or from default settings for an already created project:

或从已创建项目的默认设置:

enter image description here

在此处输入图片说明

回答by gonczor

On Unix it would be fair enough to correct softlinks. On Windows as far as I see people resort to playing around with paths. Hereis the most detailed answer.

在 Unix 上,纠正软链接就足够了。据我所知,在 Windows 上,人们会玩弄路径。是最详细的答案。