我重新创建新的conda环境后,开始安装一些包,系统提示:
You are using pip version 9.0.1, however version 23.1.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
但是直接使用 python -m pip install --upgrade pip 是无法更新的,报错:
Could not fetch URL https://mirrors.ustc.edu.cn/pypi/web/simple/scipy/: There was a problem confirming the ssl certificate: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:748) - skipping
Could not find a version that satisfies the requirement scipy (from versions: )
No matching distribution found for scipy
于是要使用镜像源去更新pip:
python -m pip install --upgrade pip -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
结果:You are using pip version 21.3.1