用conda 安装环境时
pip list 显示如下问题:正在使用pip9.0.1,需要更新pip版本
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning. You are using pip version 9.0.1, however version 22.0.4 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command.
解决方法:按照黄色提示更新pip的版本
python -m pip install --upgrade pip
然而出现如下问题:
解决办法:更改目标源
C:UsersAdministratorAppDataRoamingpip
在此电脑中搜索%APPDATA%,找到pip文件夹下的pip.ini,没有就新建一个一个pip文件夹,文件夹下创建一个pip.ini文件
[global] timeout = 6000(这一行不超时可不要) index-url = http://pypi.douban.com/simple trusted-host = pypi.douban.com
第三行为 目标源
可修改为:
阿里云 http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
豆瓣(douban) http://pypi.douban.com/simple/
清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/
自己尝试看哪个目标源能行
至此问题解决



