Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/301.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 使用pip安装程序包时返回错误_Python_Cmd_Pip_Package - Fatal编程技术网

Python 使用pip安装程序包时返回错误

Python 使用pip安装程序包时返回错误,python,cmd,pip,package,Python,Cmd,Pip,Package,不久前,我从 在我意识到我的python版本allready附带了pip之前。我成功地使用它下载了pygame,但现在我正在尝试下载numpy,无论我尝试了什么,它都会返回下面的错误 我尝试重新安装pip和python,但没有任何改变。我想这与我无意中从上面的链接下载了pip并拥有两个版本的pip有关。当我卸载pip时,它并不是被卸载的那个,如果这些都有意义的话。不管怎样,这只是我的理论 这就是我尝试安装任何东西时发生的情况 C:\Users\riley>pip install numpy

不久前,我从 在我意识到我的python版本allready附带了pip之前。我成功地使用它下载了pygame,但现在我正在尝试下载numpy,无论我尝试了什么,它都会返回下面的错误

我尝试重新安装pip和python,但没有任何改变。我想这与我无意中从上面的链接下载了pip并拥有两个版本的pip有关。当我卸载pip时,它并不是被卸载的那个,如果这些都有意义的话。不管怎样,这只是我的理论

这就是我尝试安装任何东西时发生的情况

C:\Users\riley>pip install numpy
Collecting numpy
  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)'))': /simple/numpy/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)'))': /simple/numpy/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)'))': /simple/numpy/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)'))': /simple/numpy/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)'))': /simple/numpy/
  Could not fetch URL https://pypi.org/simple/numpy/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/numpy/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)'))) - skipping
  Could not find a version that satisfies the requirement numpy (from versions: )
No matching distribution found for numpy
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(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)'))) - skipping
这也可能与链接有关,因为它指向出错的页面。请帮助我,如果没有我试图安装的软件包,我将无法执行任何操作。我们将不胜感激

编辑 这篇文章并不是被建议的另一个问题的复制品,这是一个复制品,因为我不相信这个问题的情况或答案与我有关。

试试这个:

C:\Users\riley>pip安装——可信主机pypi.org numpy

更多信息