pip和easy_install使用方式及pygal安装方式
2014-08-08 21:20
633 查看
pip和easy_install使用方式
分类: Python2013-12-0316:03 3875人阅读 评论(0) 收藏 举报
目录(?)[+]
easy_install 跟 pip 都是 Python 的套件管理程式,有了它們,在使用 Python 開發程式的時候會帶來不少方便。
easy_install 和 pip 有什麼不一樣?據 pip 官網的說法,pip
改善了不少 easy_install 的缺點,如此說來 pip 應該是略勝一籌,不過它還不能夠完全取代對方,因為目前有很多套件還是得用 easy_install 安裝。
底下說明如何在 Windows 上安裝與使用 easy_install 與 pip,我假設你系統上已經安裝了 Python。
easy_install 的安裝與使用
連到底下的網址下載 setuptools,根據你的 Python 環境使用適合的版本 :
http://pypi.python.org/pypi/setuptools
例如我在 Windows 上跑 Python 2.7,所以我下載 setuptools-0.6c11.win32-py2.7.exe 回來安裝。安裝程式會把
easy_install 裝到 Python 的 Scripts 資料夾下 (例如 C:\Python27\Scripts),安裝好之後,建議你把 Scripts 資料夾加到 PATH 環境變數裏。
easy_install 安裝與移除套件的基本使用方式如下:
安裝套件:
easy_install PackageName
更新套件:
easy_install -U PackageName
移除套件:
easy_install -m PackageName
顯示說明:
easy_install --showhelp
pip (pip installs packages) 的安裝與使用
pip 的安裝方法:
easy_install pip
有趣的是,pip 可以透過 easy_install 安裝,而且也會裝到 Scripts 資料夾下。
安裝套件:
pip install PackageName
更新套件:
pip install -U PackageName
移除套件:
pip uninstall PackageName
搜尋套件:
pip search PackageName
顯示說明:
pip help
相关文章推荐
- easy_install 和 pip 的安装及使用
- pip和easy_install的使用对比,python库文件安装方法
- pip和easy_install使用方式
- 《Python网络编程》Part3 Win7系统下使用easy_install和pip安装python的包
- pip和easy_install使用方式
- (转)pip和easy_install使用方式
- pip和easy_install使用方式
- easy_install 和 pip 的安装及使用
- 使用pip install 或者easy_install安装Python的各种包出现cc failed with exit status 1
- easy_install 和pip安装软件时使用指定的 源地址
- pip install opencv-python opencv-contrib-python 不可用时,可使用whl的方式安装
- python2.7无法使用pip(安装easy_install)
- python2.7无法使用pip的解决方法(安装easy_install)
- Python中easy_install 和 pip 的安装及使用
- Windows 下 pip和easy_install 的安装与使用
- pip和easy_install使用方式
- (转)pip和easy_install使用方式
- pip和easy_install使用方式
- python笔记 - 配置Linux环境 easy_install的安装及使用
- python初准备:安装easy_install和pip