python中pip的使用和修改下载源的方法
作者:lemon 时间:2023-08-04 21:33:41
基本命令
显示版本信息
pip -V
安装指定包
pip install <packages>
pip install -i 'host' <packages> 指定下载源
卸载指定包
pip uninstall <packages>
列出已安装的包
pip list
显示有关已安装包的信息
pip show <packages>
查找指定包
pip search
修改下载源
Linux
vim ~/.pip/pip.conf #编辑用户目录下隐藏的配置文件,没有的话生成一个
格式如下:
[global]
index-url = http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com
window的修改方法同Linux类似,在用户目录编辑pip.conf即可,如C:\Users\用户名\AppData\Local\pip
国内源
清华:https://pypi.tuna.tsinghua.edu.cn/simple
阿里云:http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
华中理工大学:http://pypi.hustunique.com/
山东理工大学:http://pypi.sdutlinux.org/
豆瓣:http://pypi.douban.com/simple/
来源:https://segmentfault.com/a/1190000019690603
标签:python,pip,下载源
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
pandas函数isnull的具体使用
2022-08-04 18:43:02
![](https://img.aspxhome.com/file/2023/9/69469_0s.png)
自动完成JS类(纯JS, Ajax模式)
2024-05-11 09:41:59
![](https://img.aspxhome.com/file/2023/9/125949_0s.jpg)
Python绘制正二十面体图形示例
2022-01-10 18:27:08
![](https://img.aspxhome.com/file/2023/4/124814_0s.jpg)
MySQL实现清空分区表单个分区数据
2024-01-14 03:45:34
![](https://img.aspxhome.com/file/2023/3/117833_0s.jpg)
pygame学习笔记(5):游戏精灵
2021-10-13 18:29:56
![](https://img.aspxhome.com/file/2023/2/86492_0s.jpg)
Mysql5.7.14安装配置方法操作图文教程(密码问题解决办法)
2024-01-28 03:04:36
![](https://img.aspxhome.com/file/2023/6/74796_0s.png)
sql server 临时表 查找并删除的实现代码
2024-01-17 18:49:56
通过作业调度建立SQL Server的自动备份
2008-12-09 14:58:00
MySQL运行报错:“Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggre”解决方法
2024-01-15 17:25:21
![](https://img.aspxhome.com/file/2023/5/118165_0s.png)
python爬取网易云音乐排行榜实例代码
2023-07-24 09:26:52
![](https://img.aspxhome.com/file/2023/4/133204_0s.png)
mysqldump备份还原和mysqldump导入导出语句大全详解
2024-01-14 07:35:14
Typora自动编号的具体操作
2022-01-21 03:20:18
![](https://img.aspxhome.com/file/2023/8/114688_0s.png)
Python基础教程之if判断,while循环,循环嵌套
2023-11-05 12:56:07
Pycharm在指定目录下生成文件和删除文件的实现
2022-04-12 20:00:28
BootStrap学习系列之Bootstrap Typeahead 组件实现百度下拉效果(续)
2024-04-10 11:02:48
![](https://img.aspxhome.com/file/2023/6/136806_0s.png)
浅谈vue中数据双向绑定的实现原理
2023-07-02 16:52:51
![](https://img.aspxhome.com/file/2023/2/139812_0s.png)
一篇文章讲解清楚MySQL索引
2024-01-28 11:59:24
![](https://img.aspxhome.com/file/2023/3/69253_0s.png)
写给喜欢用DW编写CSS人的一些建议
2008-05-19 12:09:00
Dlib+OpenCV深度学习人脸识别的方法示例
2022-11-08 06:34:42
![](https://img.aspxhome.com/file/2023/3/72063_0s.png)
JavaScript获取GridView中用户点击控件的行号,列号
2024-04-23 09:30:04