pip replaced with Tsinghua source

Pip update, solve Cannot open ...\venv\Scripts\pip-script.py
Recently, the computer was reinstalled, and the pip version was incorrect when installing the library.
Method 1:
Use the pip update command
python -m pip install- -upgrade pip

Method 2:
Download the whl file of pip,
open the path where the pip file is located in the cmd terminal,
and then enter pip uninstall pip
and then easy_install pip

This method has been tried and tested repeatedly in the past, but today there is a bad thing. . . . no module named pip ???
Cannot open F:\Pycharm workspace\Practise\venv\Scripts\pip-script.py appears when entering pycharm

Method 3: Final solution
1, python -m ensurepip
2, easy_install pip

 

pip replaced with Tsinghua source

pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple/

Change back

pip config unset global.index-url

 

Ali can too

pip install -i http://mirrors.aliyun.com/pypi/simple/ mxnet-cu100 --trusted-host mirrors.aliyun.com
 

Guess you like

Origin blog.csdn.net/xkx_07_10/article/details/103871302