Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/316.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 无法在PyCharm中安装任何软件包_Python_Pycharm_Anaconda_Package_Pyinstaller - Fatal编程技术网

Python 无法在PyCharm中安装任何软件包

Python 无法在PyCharm中安装任何软件包,python,pycharm,anaconda,package,pyinstaller,Python,Pycharm,Anaconda,Package,Pyinstaller,我试图在PyCharm中安装python包。但我看不到以下任何最新版本: 我使用pip安装了一些软件包,但它不工作,并且显示: (base) C:\>pip install auto-py-to-exe Collecting auto-py-to-exe Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(

我试图在PyCharm中安装python包。但我看不到以下任何最新版本:

我使用pip安装了一些软件包,但它不工作,并且显示:

(base) C:\>pip install auto-py-to-exe
Collecting auto-py-to-exe
  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:1045)'))': /simple/auto-py-to-exe/
  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:1045)'))': /simple/auto-py-to-exe/
  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:1045)'))': /simple/auto-py-to-exe/
  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:1045)'))': /simple/auto-py-to-exe/
  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:1045)'))': /simple/auto-py-to-exe/
  Could not fetch URL https://pypi.org/simple/auto-py-to-exe/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/auto-py-to-exe/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1045)'))) - skipping
然后我尝试使用可信主机cmd:

(基本)C:>pip将自动py安装到exe——可信主机pypi.org——可信主机files.pythonhosted.org

然后显示“找不到满足auto py to exe(从版本:)要求的版本” 找不到自动复制到exe的匹配分发版”

所以我试着给它一个版本命令: (基本)C:>pip从版本2.7.5--可信主机pypi.org--可信主机files.pythonhosted.org安装自动py-to-exe 但是,这里仍然显示了相同的问题:

Collecting auto-py-to-exe
  Could not find a version that satisfies the requirement auto-py-to-exe (from versions: )
No matching distribution found for auto-py-to-exe
那我就出去了。。。因此,如果有人有任何想法,请帮助。非常感谢。

按照以下步骤升级您的pip

您也可以尝试手动安装:()

下载:


Pycharm就是这样令人讨厌。如果只是一个项目,您可以在pycharm中打开python shell并在那里尝试。检查您的pip版本。pip版本为10.0.1,请将您的pip升级到最新版本tank you@anoop,但它不起作用。我检查你的链接,首先我的翻译是Anaconda3.7。然后我仍然尝试使用cmd来升级pip,然后它仍然显示错误:在连接被“SSLError”(SSLCertVerificationError(1),[SSL:CERTIFICATE\u VERIFY\u FAILED]要求破坏后重试(重试(重试(总计=3,connect=None,read=None,redirect=None,status=None)),c:\programdata\anaconda\lib\site包(10.0.1)中的piptwisted 18.7.0要求PyHamcrest>=1.9.0,但未安装。然后我尝试安装PyHamcrest,它显示的错误与我的问题相同…@Alicejinx您可以尝试手动安装我在上面的回答中添加了步骤。
python get-pip.py