【pip安装第三方库】

【pip安装第三方库】,第1张

1、pip安装python包出错:Could not find a version that satisfies the requirement skimage (from versions: )
这是因为网络的问题,需要使用国内的镜像源来加速,比如豆瓣源。命令改为:
pip install scikit-image -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
或者
pip3 install scikit-image -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

2、安装第三方库
osqp
numpy
scipy
matplotlib
命令:
pip install numpy -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip install osqp -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip install scipy -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip install matplotlib -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/langs/868279.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-13
下一篇2022-05-13

发表评论

登录后才能评论

评论列表(0条)

    保存