1,打开cmd,跳转到python的安装目录Python\Python38\Scripts下,有pip,才可启用pip
2,pip安装指令:
2.1 pip install -i 镜像地址 包名 比如:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple matplotlib
2.2 pip install 包名 (比较慢)
3,pip更新:
python安装目录\python.exe -m pip install --upgrade pip
比如:
PATH\python\python38\python.exe -m pip install --upgrade pip
或者python -m pip install --upgrade pip