python包管理pip常用

python包管理pip常用

 

1、pip 安装包指定源

pip install [package] -i https://pypi.douban.com/simple

 

2、pip常用命令 Commands

pip常用Commands
 install   Install packages
 download   Download packages
uninstall  Uninstall packages
freeze  Output installed packages in requirements format
list  List installed packages
show  Show information about installed packages
check  Verify installed packages have compatible dependencies
config  Manage local and global configuration.
search Search PyPI for packages.
cache Inspect and manage pip's wheel cache.
index Inspect information available from package indexes.
wheel Build wheels from your requirements.
hash Compute hashes of package archives.
completion A helper command used for command completion.
debug Show information useful for debugging.
help Show help for commands.

 

3、pip清理缓存

pip cache purge

安装pyqt6,- i表示指定安装源,表示国内源

pip install pyqt6 -i https://pypi.douban.com/simple
pip install qt6-tools -i https://pypi.douban.com/simple

 

 4、常用的python包镜像源地址:

1、清华大学(完全度和速度都很好,是一个优秀的pip镜像源)
https://pypi.tuna.tsinghua.edu.cn/simple
2、阿里云(完全度和速度也很好,是一个不错的选择)
https://mirrors.aliyun.com/pypi/simple/
3、网易(速度比较快,但是完全度有限)
https://mirrors.163.com/pypi/simple/
4、豆瓣(速度较快,但是完全度也有限)
https://pypi.douban.com/simple/
5、百度云(速度较快,但是完全度也有限)
https://mirror.baidu.com/pypi/simple/
6、 中科大(速度较快,但完全度不如前面几个镜像源)
https://pypi.mirrors.ustc.edu.cn/simple/
7、华为云(完全度和速度均中等)
https://mirrors.huaweicloud.com/repository/pypi/simple/
8、腾讯云(速度一般,完全度也一般)
https://mirrors.cloud.tencent.com/pypi/simple/



posted @ 2023-11-17 17:00  fieldtianye  阅读(72)  评论(0编辑  收藏  举报