修改Python版本后pip安装的包找不到的问题

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u012605477/article/details/87874962

智障了,这个问题反复出现,反复解决,反复记不住。

还是写个博客记录一下吧,省的老是百度。。。。

在当前python环境下安装pip包使用如下命令:

python -m pip install xxxxx

如果pip版本过低,需要升级pip则使用:

pip install --upgrade pip

pip切换下载源的命令:

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

猜你喜欢

转载自blog.csdn.net/u012605477/article/details/87874962