pip无法获取最新的包
笔者在wsl2的docker容器使用 pip install --upgrade open3d
这个命令的时候,希望能够帮我把open3D
包升级到0.18.0
最新版本,但是却始终没有效果。猜测可能是网络原因无法获取最新的资源包。于是尝试换源:
pip install --upgrade open3d -i https://pypi.tuna.tsinghua.edu.cn/simple
获取最新的资源包成功:
为了保证后面更新包不会出现同样的错误,我们可以配置一个默认的源,下面的代码选择使用清华源
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple