[英]How to install PIP for IDLE running Python 2.7.5 on Windows 10?
I just downloaded the python 2.7.5 desktop application with Python (command line) and IDLE. 我刚刚下载了带有Python(命令行)和IDLE的python 2.7.5桌面应用程序。 I can run a simple python script directly in IDLE but I cannot access python from the windows command prompt.
我可以直接在IDLE中运行简单的python脚本,但无法从Windows命令提示符下访问python。 I tried downloading get-pip.py but I couldn't find the location of setup.py on my computer and when I try to run get-pip.py from another location using IDLE it shows this error:
我尝试下载get-pip.py,但在计算机上找不到setup.py的位置,当我尝试使用IDLE从另一个位置运行get-pip.py时,显示此错误:
"Could not fetch URL https://pypi.org/simple/pip/ : There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLError(1, '_ssl.c:504: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version'),)) - skipping [31m Could not find a version that satisfies the requirement pip (from versions: )[0m [31mNo matching distribution found for pip[0m" “无法获取URL https://pypi.org/simple/pip/ :确认ssl证书时出现问题:HTTPSConnectionPool(host ='pypi.org',port = 443):url:/ simple超过了最大重试次数/ pip /(由SSLError(SSLError(1,'_ssl.c:504:错误:1407742E:SSL例程:SSL23_GET_SERVER_HELLO:tlsv1警报协议版本')引起,))-跳过[31m找不到满足要求的版本pip(来自版本:)[0m [31m找不到pip [0m“的匹配分布
How can I install PIP? 如何安装PIP?
Thanks in advance. 提前致谢。
Use miniconda2 or minoconda3. 使用miniconda2或minoconda3。 Why?
为什么? Miniconda has a windows installer that if installed correctly, updates the path for you.
Miniconda有一个Windows安装程序,如果正确安装,将为您更新路径。 Miniconda also loads precompiled binaries so you do not need a C++ compiler, which is an annoying problem to run into on windows.
Miniconda还加载预编译的二进制文件,因此您不需要C ++编译器,这是在Windows上遇到的烦人的问题。 Plus miniconda makes virtual enviornment setup a breeze with the command line.
加上miniconda,可通过命令行轻松实现虚拟环境的设置。 Also it comes with PIP if you need to fall back to it.
如果您需要退后,它还会随附PIP。
https://conda.io/miniconda.html https://conda.io/miniconda.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.