Windows 10中无法在命令提示符/ PowerShell中更新或使用pip

时间:2019-10-10 18:02:53

标签: ssl pip

总是在尝试使用pip时出现此问题:

C:\Users\myname\OneDrive\Documents\GitHub\NeuralNetworks>pip install --upgrade pip
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/
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("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
Requirement already up-to-date: pip in c:\users\eriku\anaconda3\lib\site-packages (19.2.3)
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
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("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping

因此,在这里,我只是轻松键入升级/更新点的命令,但是不知何故“没有连接”和SSL / HTML错误,有人遇到过类似的问题吗?我尝试安装TensorFlow,但特别是它不起作用。我跑

-Windows 10
-16GB RAM
-2 Graphics Cards (One internal graphics [UHD Graphics 620] card and a normal card [GTX1050] )
-A quad-core CPU (Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz)

我知道这是软件问题,但我仍在发布硬件,可能会有帮助。

刚刚安装了Linux,并且我正在两次启动,但是此问题仅在此处的Windows上发生,Git Bash似乎在两个OS上均可工作。 Docker Toolbox已成功安装,已启用虚拟化,已安装Python ...我能够/曾经能够运行python命令/我能够键入“ python”,然后在python中的提示符下进行编码,但不能制作任何其他python命令,非常令人困惑。

C:\Users\myname\OneDrive\Documents\GitHub\NeuralNetworks>python
Python 3.7.3 (default, Mar 27 2019, 17:13:21) [MSC v.1915 64 bit (AMD64)]

不用担心日期,它实际上是2019年10月10日上午11:02,但是....我正在双重启动,所以你知道!

很高兴获得帮助。

0 个答案:

没有答案