简体   繁体   English

我可以pip安装python3.6吗?

[英]Can I pip install python3.6?

If I have an older version of python (eg python3.4) and pip for this version of python, can I install a newer version of python (eg python3.6) by pip? 如果我有一个旧版本的python(例如python3.4)和pip这个版本的python,我可以通过pip安装更新版本的python(例如python3.6)吗? In other words, can I do this? 换句话说,我可以这样做吗?

pip install python3.6

pip用于安装Python包,而不是Python本身。

One way to answer your own question is to ask pip your question with: 回答你自己的问题的一个方法是问pip与你的问题:

pip search python

It doesn't show up, so the answer is no. 它没有出现,所以答案是否定的。


The most common way to install or upgrade python is using your system package manager or download an installer from its website. 安装或升级python的最常用方法是使用系统包管理器或从其网站下载安装程序。

Edit. 编辑。 For those who think it's entirely impossible to install python via pip, I suggest you run the above command first. 对于那些认为通过pip安装python完全不可能的人,我建议你先运行上面的命令。

No, pip is used for installing python packages, so you need to install python separately. 不, pip用于安装python包,所以你需要单独安装python

1) You can check your python version with: 1)你可以检查你的python版本:

> python -V

2) For windows, you can download and run the installer . 2)对于Windows,您可以下载并运行安装程序

3) Adjust System Variables So You Can Access Both Python Versions From the Command Line. 3)调整系统变量,以便您可以从命令行访问这两个Python版本。

4) Open a new command prompt (the environmental variables refresh with each new command prompt you open), and type 4)打开一个新的命令提示符(使用您打开的每个新命令提示符刷新环境变量),然后键入

> python3 –version

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

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