[Python]常用国内pip镜像源合集

以下为Python常用国内pip镜像源

阿里云:

https://mirrors.aliyun.com/pypi/simple/

百度:

 https://mirror.baidu.com/pypi/simple/

清华:

https://pypi.tuna.tsinghua.edu.cn/simple/

中科大:

 https://pypi.mirrors.ustc.edu.cn/simple/

豆瓣:

http://pypi.douban.com/simple/

搜狐:

http://mirrors.sohu.com/Python/

附百度百科pip词条:

pip 是一个现代的,通用的Python包管理工具。提供了对 Python 包的查找、下载、安装、卸载的功能。pip 已内置于 Python 3.4 和 2.7 及以上版本,其他版本需另行安装。

官方提供的pip 示例

$ pip install requests

$ pip search xml

$ pip show beautifulsoup4

$ pip uninstall requests

在windows系统中通cmd直接执行命令。

常见的命令

Usage:

pip [options]

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 【 搜索PyPI查找包 (Search PyPI for packages.)】

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.)】

文章出处登录后可见!

已经登录?立即刷新

共计人评分,平均

到目前为止还没有投票!成为第一位评论此文章。

(0)
社会演员多的头像社会演员多普通用户
上一篇 2023年3月10日
下一篇 2023年3月10日

相关推荐