python用pip安装numpy错误_python - 尝试安装numpy时出错-python 3 - 堆栈内存溢出

我刚刚在计算机上安装了PyCharm,我想在WIN7上下载numpy 。 我把pip install numpy放在PaCharm的终端中,但是出现了这个错误:

pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.

Collecting numpy

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 availabl

e.")': /simple/numpy/

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 availabl

e.")': /simple/numpy/

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 availabl

e.")': /simple/numpy/

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 availabl

e.")': /simple/numpy/

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 availabl

e.")': /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("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping

Could not find a version that satisfies the requirement numpy (from versions: )

No matching distribution found for numpy

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: /si

mple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping

我找到了写建议: pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org pip setuptools但是当我说这个时,我得到了:

pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org pip setuptools

pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.

ERROR: To modify pip, please run the following command:

C:\Users\Admin\PycharmProjects\lab05\venv\Scripts\python.exe -m pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org pip setuptools

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: /si

mple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping

我读到我需要在Scripts中找到python.exe,所以我找到了它并在终端上输入了以下代码,但是我得到了:

我该怎么办?

你可能感兴趣的:(python用pip安装numpy错误_python - 尝试安装numpy时出错-python 3 - 堆栈内存溢出)