如何用pip install从豆瓣源安装包

使用默认的pip install指令安装python的包,有时候因为服务器在国外,所以安装速度比较慢,所以我们可以在使用指令的时候指定安装的镜像源(image)来进行提速,比如我们可以使用以下指令从豆瓣源镜像来安装pyinstall这个打包python程序成为exe可执行文件的包。

pip install pyinstaller -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
发布了126 篇原创文章 · 获赞 5 · 访问量 3435

猜你喜欢

转载自blog.csdn.net/weixin_41855010/article/details/104345659