1、先說一下什麼是pippip 是「a tool for installing and managing python packages.」,也就是說pip是python的軟體安裝工具
2、下面介紹怎麼在linux下安裝pip
# cd /usr/local/src
# wget "" --no-check-certificate
那麼安裝wget,執行如下:
# yum -y install wget
解奪安裝pip
# tar -xzvf pip-1.5.4.tar.gz
# cd pip-1.5.4
# python setup.py install
如果安裝報下面的錯:
traceback (most recent call last):
file "setup.py", line 6, in from setuptools import setup, find_packages
importerror: no module named setuptools
那麼就要先安裝setuptools包
# wget
(2)解壓setuptools包
# tar zxvf setuptools-2.0.tar.gz
# cd setuptools-2.0
(3)編譯setuptools
# python setup.py build
(4)開始執行setuptools安裝
# python setup.py install
安裝完成setuptools包後,在重新執行:
# cd /usr/local/src/pip-1.5.4
# python setup.py install
至此pip安裝完成
3、linux下pip使用引數
# pip --help
usage:
pip [options]
commands:
install install packages.
uninstall uninstall packages.
freeze output installed packages in requirements format.
list list installed packages.
show show information about installed packages.
search search pypi for packages.
wheel build wheels from your requirements.
zip deprecated. zip individual packages.
unzip deprecated. unzip individual packages.
bundle deprecated. create pybundles.
help show help for commands.
general options:
-h, --help show help.
-v, --verbose give more output. option is additive, and can be used up to 3 times.
-v, --version show version and exit.
-q, --quiet give less output.
--proxy specify a proxy in the form [user:passwd@]proxy.server:port.
--timeout set the socket timeout (default 15 seconds).
--exists-action default action when a path already exists: (s)witch, (i)gnore, (w)ipe, (b)ackup.
--cert path to alternate ca bundle.
linux伺服器安裝pip
1 先說一下什麼是pip pip 是 a tool for installing and managing python packages.也就是說pip是python的軟體安裝工具 2 下面介紹怎麼在linux下安裝pip cd usr local src wget no check certif...
linux伺服器安裝pip命令
伺服器安裝pip 參考資料 1 先說一下什麼是pip pip 是 a tool for installing and managing python packages.也就是說pip是python的軟體安裝工具 2 下面介紹怎麼在linux下安裝pip cd usr local src wget n...
伺服器安裝Linux伺服器
新辦公需要搭建一台伺服器,之前也沒有怎麼搞過,不過有一些了解,於是和同事一起嘗試安裝一下伺服器。本人使用ultraiso燒錄u盤,系統檔案是centos 6.6 x86 64 bin 1.ios,使用urtraiso開啟iso檔案,然後如下圖 接著就可以寫入,u盤會被格式化的,注意備份,等待寫入就可...