簡體   English   中英

如何解決 Windows 10(Python 64 位)中的 Numpy 安裝錯誤?

[英]How to solve Numpy installing error in windows 10, (Python 64 bit)?

安裝 python 后,我在 python 最新版本 3.10.4(64 位)中安裝了 numpy,我在 cmd 窗口中執行了以下操作。

C:\Users\Administrator>mkdir pyver

C:\Users\Administrator>mkdir pyproj


C:\Users\Administrator>cd pyproj

C:\Users\Administrator\pyproj>c:\Users\Administrator\pyver\py383\python -m venv my_env

C:\Users\Administrator\pyproj>my_env\Scripts\activate

(my_env) C:\Users\Administrator\pyproj>python
Python 3.10.4 (tags/v3.10.4:9d38120, Mar 23 2022, 23:13:41) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> print('Hello world')
Hello world
>>> import numpy as np

>>> exit()

(my_env) C:\Users\Administrator\pyproj>pip install numpy

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:997)'))': /simple/numpy/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:997)'))': /simple/numpy/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:997)'))': /simple/numpy/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:997)'))': /simple/numpy/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:997)'))': /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(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:997)'))) - skipping
ERROR: Could not find a version that satisfies the requirement numpy (from versions: none)
ERROR: No matching distribution found for numpy

我不明白有什么問題。

我能夠使用以下命令在 Windows VM 上安裝 numpy -

pip install numpy --index-url=http://pypi.python.org/simple/ --trusted-host pypi.python.org

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM