Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
303 views
in Technique[技术] by (71.8m points)

python - Why i cant install the numpy package using pip on Ubuntu 16.04?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

You have, mysteriously, a version of pip that is using f-strings, such as f"ERROR: {exc}", even though f-strings were not introduced until Python 3.6. Furthermore, recent versions of NumPy support Python 3.7 and above.

Try installing a more recent version of Python3, activating a virtual environment, and installing with python3 -m pip install numpy.

Python 3.5 is also EOL as of 2020-09-30.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...