使用pip3安装NumPy失败,但使用pip安装可以

2024-09-29 23:18:21 发布

您现在位置:Python中文网/ 问答频道 /正文

我需要用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/```


Tags: pipinpybuildnumpytensorflow错误setup

热门问题