【Python问题】解决pip install xxx出现Cannot open ...\venv\Scripts\pip-script.py问题

这就是需要更新pip的提示

进入到(或者配置环境变量就无所谓了)python命令安装目录下执行

(venv) D:\python\code>easy_install pip
###出现下面安装更新信息
Searching for pip
Reading https://pypi.org/simple/pip/
Downloading https://files.pythonhosted.org/packages/54/0c/d01aa759fdc501a58f431eb594a17495f15b88da142ce14b5845662c13f3/pip-20.0.2-py2.py3-none-any.whl#sha256=4ae14a42d8adba3205e
beb38aa68cfc0b6c346e1ae2e699a0b3bad4da19cef5c
Best match: pip 20.0.2
Processing pip-20.0.2-py2.py3-none-any.whl
Installing pip-20.0.2-py2.py3-none-any.whl to d:\python\code\venv\lib\site-packages
Adding pip 20.0.2 to easy-install.pth file
Installing pip-script.py script to D:\python\code\venv\Scripts
Installing pip.exe script to D:\python\code\venv\Scripts
Installing pip3-script.py script to D:\python\code\venv\Scripts
Installing pip3.exe script to D:\python\code\venv\Scripts
Installing pip3.8-script.py script to D:\python\code\venv\Scripts
Installing pip3.8.exe script to D:\python\code\venv\Scripts

Installed d:\python\code\venv\lib\site-packages\pip-20.0.2-py3.8.egg
Processing dependencies for pip
Finished processing dependencies for pip
###结束

再次执行即可

(venv) D:\python\code>pip install openpyxl
Requirement already satisfied: openpyxl in d:\python\code\venv\lib\site-packages (3.0.3)
Requirement already satisfied: jdcal in d:\python\code\venv\lib\site-packages (from openpyxl) (1.4.1)
Requirement already satisfied: et_xmlfile in d:\python\code\venv\lib\site-packages (from openpyxl) (1.0.1)

更新了以下文件

【Python问题】解决pip install xxx出现Cannot open ...\venv\Scripts\pip-script.py问题_第1张图片

你可能感兴趣的:(Python学习)