pip报错:Script file ‘D:\anaconda3\Scripts\pip-script.py‘ is not present.

pip执行任何命令的时候,都会有一个报错:Script file 'D:\anaconda3\Scripts\pip-script.py' is not present.

【Solution】

  1. 进入pip-script.py所在的文件夹
cd D:\anaconda3\Scripts
  1. 重新安装pip
easy_install pip
  1. 如果报错easy_install不是内部或外部命令,也不是可运行的程序easy_install : 无法将“easy_install”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。

就是说你没有安装easy_install,所以先重新下载一下:

curl https://bootstrap.pypa.io/get-pip.py

重新安装:

python get-pip.py

猜你喜欢

转载自blog.csdn.net/weixin_43336281/article/details/127025078