进行解压:
tar -zxvf 文件名
解压成功后进入该文件夹
执行python setup.py install
测试pip命令是否可用。《Linux就该这么学》
pip命令安装完成
1、pip下载安装1.1 pip下载
# wget "" --no-check-certificate
1.2 pip安装
代码如下复制代码
# tar -xzvf pip-1.5.4.tar.gz
# cd pip-1.5.4
# python setup.py install
2. pip使用详解
2.1 pip
代码如下复制代码
# pip install SomePackage
[...]
Successfully installed SomePackage
2.2 pip查看已安装的软件
代码如下复制代码
# pip show --files SomePackage
Name: SomePackage
Version: 1.0
Location: /my/env/lib/pythonx.x/site-packages
Files:
../somepackage/__init__.py
[...]
2.3 pip检查哪些软件需要更新
代码如下复制代码
# pip list --outdated
SomePackage (Current: 1.0 Latest: 2.0)
2.4 pip升级软件
代码如下复制代码
# pip install --upgrade SomePackage
[...]
Found existing installation: SomePackage 1.0
Uninstalling SomePackage:
Successfully uninstalled SomePackage
Running setup.py install for SomePackage
Successfully installed SomePackage
2.5 pip卸载软件
代码如下复制代码
$ pip uninstall SomePackage
Uninstalling SomePackage:
/my/env/lib/pythonx.x/site-packages/somepackage
Proceed (y/n)? y
Successfully uninstalled SomePackage
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)