[英]Installing NumPy with pip3 Fails, but installing with pip is ok
I need to install TensorFlow with pip3, when it gets to the installing NumPy step it stops and gives me the error: (When I tried to install NumPy with pip it was fine, but I need it to work with python 3.) Thanks in advance for any help. I need to install TensorFlow with pip3, when it gets to the installing NumPy step it stops and gives me the error: (When I tried to install NumPy with pip it was fine, but I need it to work with python 3.) Thanks in提前寻求任何帮助。
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-v32qiaml/numpy/setup.py", line 68
f"NumPy {VERSION} may not yet support Python "
^
SyntaxError: invalid syntax
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-v32qiaml/numpy/```
F-strings were added to Python at version 3.6. F-strings在 3.6 版本中被添加到 Python 中。 It seems your
pip3
runs under earlier Python, perhaps 3.5.看来您的
pip3
在较早的 Python 下运行,也许是 3.5。
Check your pip
and pip3
(and their interpreters) versions with pip --version
and pip3 --version
.使用
pip --version
和pip3 --version
检查您的pip
和pip3
(及其解释器)版本。 Install more recent Python version if needed.如果需要,安装更新的 Python 版本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.