python如何安装pip包_pip安装python 包

python3.6 里边没有Pip module

其他方法都比较复杂,

通过下边这种方法比较简单

https://pip.pypa.io/en/stable/installing/

在这个网站中下载 To install pip, securely download get-pip.py. [2]

然后就可以在 python路径的script路径看到 pip和easy_install 程序了

1160772-20170506204357117-1097437463.png

有了pip程序后,在powershell中打开

##可以采用pip list --outdate 查看有需要更新的package

PS C:\Users\tianwc\AppData\Local\Programs\Python\Python36\Scripts> pip list --outdate

DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a

format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.

beautifulsoup4 (4.3.2) - Latest: 4.5.3 [wheel]

然后 通过pip install --upgrade packagename就可以更新到最新版本

1160772-20170506204726492-960994804.png

其他的pip的一些函数

1# pip --help23 Usage:4pip [options]56 Commands:

7install 安装包.8uninstall 卸载包.9freeze 按着一定格式输出已安装包列表10list 列出已安装包.11show 显示包详细信息.12search 搜索包,类似yum里的search.13wheel Build wheels from your requirements.14zip 不推荐. Zip individual packages.15unzip 不推荐. Unzip individual packages.16bundle 不推荐. Create pybundles.17help 当前帮助.1819 General Options:

20-h, --help 显示帮助.21-v, --verbose 更多的输出,最多可以使用3次22-V, --version 现实版本信息然后退出.23-q, --quiet 最少的输出.24--log-file 覆盖的方式记录verbose错误日志,默认文件:/root/.pip/pip.log25--log 不覆盖记录verbose输出的日志.26 --proxy Specify a proxy in the form [user:passwd@]proxy.server:port.27--timeout 连接超时时间 (默认15秒).28 --exists-action Default action when a path already exists:(s)witch, (i)gnore, (w)ipe, (b)ackup.29 --cert 证书.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值