解决python利用pip安装第三方库失败的问题

it2023-03-06  78

解决python利用pip安装第三方库失败的问题

SyntaxError: invalid syntax

前些天用python去写作业,发现PyCharm中无法安装numpy库,所以打算用pip安装工具进行安装,但也失败了,错误类型如下:

解决方法:

在cmd中切换到python安装目录下的Scripts目录下,我这里是D盘

C:\Users\lenovo>d: D:\>cd D:\Python\Scripts D:\Python\Scripts>

接下来就可以正常安装啦

D:\Python\Scripts>pip install numpy
最新回复(0)