赞
踩
家庭版已经内置Python2和Python3.7,适配较好,能不动尽量不动
国内源
中国科技大学 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/
因为我并不是想要修改默认的源,而是每次可能用不同的源,所以操作很简单
pip install xxxxx -i https://xxxxxx
pip3 install xxxxx -i https://xxxxxx
具体是pip还是pip3,要看想安装在哪里,如果刚刚安装好Uos系统,那么默认是没有安装pip(3)的,进行上述操作会显示:未找到命令,这时候操作也很简单
sudo apt install python-pip [pip]
sudo apt install python3-pip [pip3]
如果出现无法定位软件包情况,可以如下尝试
sudo apt-get update
总结:这也是我个人的摸索过程,权当笔记来用,如有不妥之处,欢迎讨论
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。