我需要用pip3安装TensorFlow,当它进入安装NumPy步骤时,它停止并给出错误: (当我尝试用pip安装NumPy时,它还可以,但我需要它来与python 3一起工作。) 提前感谢您的帮助
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被添加到3.6版的Python中。您的
pip3
似乎是在早期的Python(可能是3.5)下运行的用
pip version
和pip3 version
检查你的pip
和pip3
(及其解释器)版本。如果需要,请安装更新的Python版本相关问题 更多 >
编程相关推荐