pip和easy_install使用方式
2014-08-25 13:34
330 查看
easy_install 跟 pip 都是Python 的套件管理程式,有了它们,在使用 Python
开发程式的时候会带来不少方便。
easy_install 和pip 有什麼不一样?据 pip
官网的说法,pip 改善了不少 easy_install 的缺点,如此说来pip 应该是略胜一筹,不过它还不能够完全取代对方,因为目前有很多套件还是得用
easy_install 安装。
底下说明如何在 Windows 上安装与使用 easy_install 与pip,我假设你系统上已经安装了Python。
easy_install 的安装与[b]使用[/b]
连到底下的网址下载 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
[b]pip (pip installs packages) 的安装与使用[/b]
pip 的安装方法:
easy_install
pip
有趣的是,pip 可以透过 easy_install 安装,而且也会装到 Scripts 资料夹下。
安装套件:
pip install PackageName
更新套件:
pip install -U PackageName
移除套件:
pip uninstall PackageName
搜寻套件:
pip search PackageName
显示说明:
pip help
sudo -E
pip install requests 使用代码上网
开发程式的时候会带来不少方便。
easy_install 和pip 有什麼不一样?据 pip
官网的说法,pip 改善了不少 easy_install 的缺点,如此说来pip 应该是略胜一筹,不过它还不能够完全取代对方,因为目前有很多套件还是得用
easy_install 安装。
底下说明如何在 Windows 上安装与使用 easy_install 与pip,我假设你系统上已经安装了Python。
easy_install 的安装与[b]使用[/b]
连到底下的网址下载 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
[b]pip (pip installs packages) 的安装与使用[/b]
pip 的安装方法:
easy_install
pip
有趣的是,pip 可以透过 easy_install 安装,而且也会装到 Scripts 资料夹下。
安装套件:
pip install PackageName
更新套件:
pip install -U PackageName
移除套件:
pip uninstall PackageName
搜寻套件:
pip search PackageName
显示说明:
pip help
sudo -E
pip install requests 使用代码上网
相关文章推荐
- pip和easy_install使用方式
- pip和easy_install使用方式及pygal安装方式
- pip和easy_install使用方式
- pip和easy_install使用方式
- (转)pip和easy_install使用方式
- (转)pip和easy_install使用方式
- pip和easy_install使用方式
- pip install opencv-python opencv-contrib-python 不可用时,可使用whl的方式安装
- easy_install 和pip安装软件时使用指定的 源地址
- easy_install,pip使用
- pip&easy_install使用
- pip 和 easy_install 区别,以及使用python 的虚拟环境
- python2.7无法使用pip(安装easy_install)
- pip和easy_install使用国内源
- 【Python错误】windows下使用pip/easy_install提示Fatal error in launcher: Unable to create process using...
- easy_install 和 pip 的安装及使用
- 《Python网络编程》Part3 Win7系统下使用easy_install和pip安装python的包
- easy_install 和 pip使用差别
- pip&easy_install使用
- python2.7无法使用pip的解决方法(安装easy_install)