我的编程空间,编程开发者的网络收藏夹
学习永远不晚

安装python的easy_instal

短信预约 -IT技能 免费直播动态提醒
省份

北京

  • 北京
  • 上海
  • 天津
  • 重庆
  • 河北
  • 山东
  • 辽宁
  • 黑龙江
  • 吉林
  • 甘肃
  • 青海
  • 河南
  • 江苏
  • 湖北
  • 湖南
  • 江西
  • 浙江
  • 广东
  • 云南
  • 福建
  • 海南
  • 山西
  • 四川
  • 陕西
  • 贵州
  • 安徽
  • 广西
  • 内蒙
  • 西藏
  • 新疆
  • 宁夏
  • 兵团
手机号立即预约

请填写图片验证码后获取短信验证码

看不清楚,换张图片

免费获取短信验证码

安装python的easy_instal

安装地址: https://pypi.python.org/pypi/setuptools#id9

Installation Instructions

The recommended way to bootstrap setuptools on any system is to download ez_setup.py and run it using the target Python environment. Different operating systems have different recommended techniques to accomplish this basic routine, so below are some examples to get you started.

Setuptools requires Python 2.6 or later. To install setuptools on Python 2.4 or Python 2.5, use the bootstrap script for Setuptools 1.x.

The link provided to ez_setup.py is a bookmark to bootstrap script for the latest known stable release.

window安装:

Windows (Powershell 3 or later)

For best results, uninstall previous versions FIRST (see Uninstalling).

Using Windows 8 (which includes PowerShell 3) or earlier versions of Windows with PowerShell 3 installed, it’s possible to install with one simple Powershell command. Start up Powershell and paste this command:

> (Invoke-WebRequest https://bootstrap.pypa.io/ez_setup.py).Content | python -

You must start the Powershell with Administrative privileges or you may choose to install a user-local installation:

> (Invoke-WebRequest https://bootstrap.pypa.io/ez_setup.py).Content | python - --user

If you have Python 3.3 or later, you can use the py command to install to different Python versions. For example, to install to Python 3.3 if you have Python 2.7 installed:

> (Invoke-WebRequest https://bootstrap.pypa.io/ez_setup.py).Content | py -3 -

The recommended way to install setuptools on Windows is to download ez_setup.py and run it. The script will download the appropriate distribution file and install it for you.

Once installation is complete, you will find an easy_install program in your Python Scripts subdirectory. For simple invocation and best results, add this directory to your PATH environment variable, if it is not already present. If you did a user-local install, the Scripts subdirectory is $env:APPDATA\Python\Scripts.

Windows (simplified)

For Windows without PowerShell 3 or for installation without a command-line, download ez_setup.py using your preferred web browser or other technique and “run” that file.

linux安装:

Unix (wget)

Most Linux distributions come with wget.

Download ez_setup.py and run it using the target Python version. The script will download the appropriate version and install it for you:

> wget https://bootstrap.pypa.io/ez_setup.py -O - | python

Note that you will may need to invoke the command with superuser privileges to install to the system Python:

> wget https://bootstrap.pypa.io/ez_setup.py -O - | sudo python

Alternatively, Setuptools may be installed to a user-local path:

> wget https://bootstrap.pypa.io/ez_setup.py -O - | python - --user

Note that on some older systems (noted on Debian 6 and CentOS 5 installations),wgetmay refuse to downloadez_setup.py, complaining that the certificate common name*.c.ssl.fastly.netdoes not match the host namebootstrap.pypa.io. In addition, theez_setup.pyscript may then encounter similar problems usingwgetinternally to downloadsetuptools-x.y.zip, complaining that the certificate common name ofwww.python.orgdoes not match the host namepypi.python.org. Those are known issues, related to a bug in the older versions ofwget(see Issue 59). If you happen to encounter them, install Setuptools as follows:

> wget --no-check-certificate https://bootstrap.pypa.io/ez_setup.py
> python ez_setup.py --insecure

mac安装:

Unix including Mac OS X (curl)

If your system has curl installed, follow the wget instructions but replace wget with curl and -O with -o. For example:

> curl https://bootstrap.pypa.io/ez_setup.py -o - | python

自定义安装:

Advanced Installation

For more advanced installation options, such as installing to custom locations or prefixes, download and extract the source tarball from Setuptools on PyPIand run setup.py with any supported distutils and Setuptools options. For example:

setuptools-x.x$ python setup.py install --prefix=/opt/setuptools

Use --help to get a full options list, but we recommend consulting the EasyInstall manual for detailed instructions, especially the section on custom installation locations.

主机版本:

[root@master progressbar-2.3]# cat /etc/centos-release
CentOS release 6.7 (Final)

安装:

[root@master progressbar-2.3]#  wget https://bootstrap.pypa.io/ez_setup.py -O - | python
--2016-01-11 07:15:01--  https://bootstrap.pypa.io/ez_setup.py  
Resolving bootstrap.pypa.io... 185.31.18.175  
Connecting to bootstrap.pypa.io|185.31.18.175|:443... connected.  
HTTP request sent, awaiting response... 200 OK  
Length: 12059 (12K) [text/x-python]  
Saving to: “STDOUT”

100%[===========================================>] 12,059      --.-K/s   in 0s     

2016-01-11 07:15:09 (432 MB/s) - written to stdout [12059/12059]

Downloading https://pypi.python.org/packages/source/s/setuptools/setuptools-19.2.zip  
Extracting in /tmp/tmpQGjSJl  
Now working in /tmp/tmpQGjSJl/setuptools-19.2  
Installing Setuptools  
running install  
running bdist_egg  
running egg_info  
writing requirements to setuptools.egg-info/requires.txt  
writing setuptools.egg-info/PKG-INFO  
writing top-level names to setuptools.egg-info/top_level.txt  
writing dependency_links to setuptools.egg-info/dependency_links.txt  
writing entry points to setuptools.egg-info/entry_points.txt  
reading manifest file 'setuptools.egg-info/SOURCES.txt'  
reading manifest template 'MANIFEST.in'  
writing manifest file 'setuptools.egg-info/SOURCES.txt'  
installing library code to build/bdist.linux-i686/egg  
running install_lib  
running build_py  
creating build  
creating build/lib  
copying easy_install.py -> build/lib  
creating build/lib/setuptools  
copying setuptools/site-patch.py -> build/lib/setuptools  
copying setuptools/utils.py -> build/lib/setuptools  
copying setuptools/__init__.py -> build/lib/setuptools  
copying setuptools/package_index.py -> build/lib/setuptools  
copying setuptools/ssl_support.py -> build/lib/setuptools  
copying setuptools/version.py -> build/lib/setuptools  
copying setuptools/msvc9_support.py -> build/lib/setuptools  
copying setuptools/py27compat.py -> build/lib/setuptools  
copying setuptools/compat.py -> build/lib/setuptools  
copying setuptools/extension.py -> build/lib/setuptools  
copying setuptools/windows_support.py -> build/lib/setuptools  
copying setuptools/unicode_utils.py -> build/lib/setuptools  
copying setuptools/py31compat.py -> build/lib/setuptools  
copying setuptools/py26compat.py -> build/lib/setuptools  
copying setuptools/archive_util.py -> build/lib/setuptools  
copying setuptools/dist.py -> build/lib/setuptools  
copying setuptools/sandbox.py -> build/lib/setuptools  
copying setuptools/lib2to3_ex.py -> build/lib/setuptools  
copying setuptools/depends.py -> build/lib/setuptools  
creating build/lib/_markerlib  
copying _markerlib/__init__.py -> build/lib/_markerlib  
copying _markerlib/markers.py -> build/lib/_markerlib  
creating build/lib/pkg_resources  
copying pkg_resources/__init__.py -> build/lib/pkg_resources  
creating build/lib/setuptools/command  
copying setuptools/command/rotate.py -> build/lib/setuptools/command  
copying setuptools/command/easy_install.py -> build/lib/setuptools/command  
copying setuptools/command/__init__.py -> build/lib/setuptools/command  
copying setuptools/command/setopt.py -> build/lib/setuptools/command  
copying setuptools/command/build_py.py -> build/lib/setuptools/command  
copying setuptools/command/build_ext.py -> build/lib/setuptools/command  
copying setuptools/command/install_egg_info.py -> build/lib/setuptools/command  
copying setuptools/command/install_scripts.py -> build/lib/setuptools/command  
copying setuptools/command/sdist.py -> build/lib/setuptools/command  
copying setuptools/command/bdist_wininst.py -> build/lib/setuptools/command  
copying setuptools/command/bdist_rpm.py -> build/lib/setuptools/command  
copying setuptools/command/test.py -> build/lib/setuptools/command  
copying setuptools/command/install.py -> build/lib/setuptools/command  
copying setuptools/command/saveopts.py -> build/lib/setuptools/command  
copying setuptools/command/egg_info.py -> build/lib/setuptools/command  
copying setuptools/command/register.py -> build/lib/setuptools/command  
copying setuptools/command/bdist_egg.py -> build/lib/setuptools/command  
copying setuptools/command/develop.py -> build/lib/setuptools/command  
copying setuptools/command/install_lib.py -> build/lib/setuptools/command  
copying setuptools/command/alias.py -> build/lib/setuptools/command  
copying setuptools/command/upload_docs.py -> build/lib/setuptools/command  
creating build/lib/pkg_resources/_vendor  
copying pkg_resources/_vendor/__init__.py -> build/lib/pkg_resources/_vendor  
creating build/lib/pkg_resources/_vendor/packaging  
copying pkg_resources/_vendor/packaging/specifiers.py -> build/lib/pkg_resources/_vendor/packaging  
copying pkg_resources/_vendor/packaging/__init__.py -> build/lib/pkg_resources/_vendor/packaging  
copying pkg_resources/_vendor/packaging/version.py -> build/lib/pkg_resources/_vendor/packaging  
copying pkg_resources/_vendor/packaging/_compat.py -> build/lib/pkg_resources/_vendor/packaging  
copying pkg_resources/_vendor/packaging/_structures.py -> build/lib/pkg_resources/_vendor/packaging  
copying pkg_resources/_vendor/packaging/__about__.py -> build/lib/pkg_resources/_vendor/packaging  
copying setuptools/script (dev).tmpl -> build/lib/setuptools  
copying setuptools/script.tmpl -> build/lib/setuptools  
creating build/bdist.linux-i686  
creating build/bdist.linux-i686/egg  
copying build/lib/easy_install.py -> build/bdist.linux-i686/egg  
creating build/bdist.linux-i686/egg/setuptools  
copying build/lib/setuptools/site-patch.py -> build/bdist.linux-i686/egg/setuptools  
copying build/lib/setuptools/utils.py -> build/bdist.linux-i686/egg/setuptools  
copying build/lib/setuptools/__init__.py -> build/bdist.linux-i686/egg/setuptools  
copying build/lib/setuptools/script (dev).tmpl -> build/bdist.linux-i686/egg/setuptools  
copying build/lib/setuptools/package_index.py -> build/bdist.linux-i686/egg/setuptools  
copying build/lib/setuptools/ssl_support.py -> build/bdist.linux-i686/egg/setuptools  
copying build/lib/setuptools/version.py -> build/bdist.linux-i686/egg/setuptools  
copying build/lib/setuptools/msvc9_support.py -> build/bdist.linux-i686/egg/setuptools  
copying build/lib/setuptools/py27compat.py -> build/bdist.linux-i686/egg/setuptools  
copying build/lib/setuptools/compat.py -> build/bdist.linux-i686/egg/setuptools  
copying build/lib/setuptools/extension.py -> build/bdist.linux-i686/egg/setuptools  
copying build/lib/setuptools/windows_support.py -> build/bdist.linux-i686/egg/setuptools  
copying build/lib/setuptools/unicode_utils.py -> build/bdist.linux-i686/egg/setuptools  
creating build/bdist.linux-i686/egg/setuptools/command  
copying build/lib/setuptools/command/rotate.py -> build/bdist.linux-i686/egg/setuptools/command  
copying build/lib/setuptools/command/easy_install.py -> build/bdist.linux-i686/egg/setuptools/command  
copying build/lib/setuptools/command/__init__.py -> build/bdist.linux-i686/egg/setuptools/command  
copying build/lib/setuptools/command/setopt.py -> build/bdist.linux-i686/egg/setuptools/command  
copying build/lib/setuptools/command/build_py.py -> build/bdist.linux-i686/egg/setuptools/command  
copying build/lib/setuptools/command/build_ext.py -> build/bdist.linux-i686/egg/setuptools/command  
copying build/lib/setuptools/command/install_egg_info.py -> build/bdist.linux-i686/egg/setuptools/command  
copying build/lib/setuptools/command/install_scripts.py -> build/bdist.linux-i686/egg/setuptools/command  
copying build/lib/setuptools/command/sdist.py -> build/bdist.linux-i686/egg/setuptools/command  
copying build/lib/setuptools/command/bdist_wininst.py -> build/bdist.linux-i686/egg/setuptools/command  
copying build/lib/setuptools/command/bdist_rpm.py -> build/bdist.linux-i686/egg/setuptools/command  
copying build/lib/setuptools/command/test.py -> build/bdist.linux-i686/egg/setuptools/command  
copying build/lib/setuptools/command/install.py -> build/bdist.linux-i686/egg/setuptools/command  
copying build/lib/setuptools/command/saveopts.py -> build/bdist.linux-i686/egg/setuptools/command  
copying build/lib/setuptools/command/egg_info.py -> build/bdist.linux-i686/egg/setuptools/command  
copying build/lib/setuptools/command/register.py -> build/bdist.linux-i686/egg/setuptools/command  
copying build/lib/setuptools/command/bdist_egg.py -> build/bdist.linux-i686/egg/setuptools/command  
copying build/lib/setuptools/command/develop.py -> build/bdist.linux-i686/egg/setuptools/command  
copying build/lib/setuptools/command/install_lib.py -> build/bdist.linux-i686/egg/setuptools/command  
copying build/lib/setuptools/command/alias.py -> build/bdist.linux-i686/egg/setuptools/command  
copying build/lib/setuptools/command/upload_docs.py -> build/bdist.linux-i686/egg/setuptools/command  
copying build/lib/setuptools/script.tmpl -> build/bdist.linux-i686/egg/setuptools  
copying build/lib/setuptools/py31compat.py -> build/bdist.linux-i686/egg/setuptools  
copying build/lib/setuptools/py26compat.py -> build/bdist.linux-i686/egg/setuptools  
copying build/lib/setuptools/archive_util.py -> build/bdist.linux-i686/egg/setuptools  
copying build/lib/setuptools/dist.py -> build/bdist.linux-i686/egg/setuptools  
copying build/lib/setuptools/sandbox.py -> build/bdist.linux-i686/egg/setuptools  
copying build/lib/setuptools/lib2to3_ex.py -> build/bdist.linux-i686/egg/setuptools  
copying build/lib/setuptools/depends.py -> build/bdist.linux-i686/egg/setuptools  
creating build/bdist.linux-i686/egg/_markerlib  
copying build/lib/_markerlib/__init__.py -> build/bdist.linux-i686/egg/_markerlib  
copying build/lib/_markerlib/markers.py -> build/bdist.linux-i686/egg/_markerlib  
creating build/bdist.linux-i686/egg/pkg_resources  
copying build/lib/pkg_resources/__init__.py -> build/bdist.linux-i686/egg/pkg_resources  
creating build/bdist.linux-i686/egg/pkg_resources/_vendor  
copying build/lib/pkg_resources/_vendor/__init__.py -> build/bdist.linux-i686/egg/pkg_resources/_vendor  
creating build/bdist.linux-i686/egg/pkg_resources/_vendor/packaging  
copying build/lib/pkg_resources/_vendor/packaging/specifiers.py -> build/bdist.linux-i686/egg/pkg_resources/_vendor/packaging  
copying build/lib/pkg_resources/_vendor/packaging/__init__.py -> build/bdist.linux-i686/egg/pkg_resources/_vendor/packaging  
copying build/lib/pkg_resources/_vendor/packaging/version.py -> build/bdist.linux-i686/egg/pkg_resources/_vendor/packaging  
copying build/lib/pkg_resources/_vendor/packaging/_compat.py -> build/bdist.linux-i686/egg/pkg_resources/_vendor/packaging  
copying build/lib/pkg_resources/_vendor/packaging/_structures.py -> build/bdist.linux-i686/egg/pkg_resources/_vendor/packaging  
copying build/lib/pkg_resources/_vendor/packaging/__about__.py -> build/bdist.linux-i686/egg/pkg_resources/_vendor/packaging  
byte-compiling build/bdist.linux-i686/egg/easy_install.py to easy_install.pyc  
byte-compiling build/bdist.linux-i686/egg/setuptools/site-patch.py to site-patch.pyc  
byte-compiling build/bdist.linux-i686/egg/setuptools/utils.py to utils.pyc  
byte-compiling build/bdist.linux-i686/egg/setuptools/__init__.py to __init__.pyc  
byte-compiling build/bdist.linux-i686/egg/setuptools/package_index.py to package_index.pyc  
byte-compiling build/bdist.linux-i686/egg/setuptools/ssl_support.py to ssl_support.pyc  
byte-compiling build/bdist.linux-i686/egg/setuptools/version.py to version.pyc  
byte-compiling build/bdist.linux-i686/egg/setuptools/msvc9_support.py to msvc9_support.pyc  
byte-compiling build/bdist.linux-i686/egg/setuptools/py27compat.py to py27compat.pyc  
byte-compiling build/bdist.linux-i686/egg/setuptools/compat.py to compat.pyc  
byte-compiling build/bdist.linux-i686/egg/setuptools/extension.py to extension.pyc  
byte-compiling build/bdist.linux-i686/egg/setuptools/windows_support.py to windows_support.pyc  
byte-compiling build/bdist.linux-i686/egg/setuptools/unicode_utils.py to unicode_utils.pyc  
byte-compiling build/bdist.linux-i686/egg/setuptools/command/rotate.py to rotate.pyc  
byte-compiling build/bdist.linux-i686/egg/setuptools/command/easy_install.py to easy_install.pyc  
byte-compiling build/bdist.linux-i686/egg/setuptools/command/__init__.py to __init__.pyc  
byte-compiling build/bdist.linux-i686/egg/setuptools/command/setopt.py to setopt.pyc  
byte-compiling build/bdist.linux-i686/egg/setuptools/command/build_py.py to build_py.pyc  
byte-compiling build/bdist.linux-i686/egg/setuptools/command/build_ext.py to build_ext.pyc  
byte-compiling build/bdist.linux-i686/egg/setuptools/command/install_egg_info.py to install_egg_info.pyc  
byte-compiling build/bdist.linux-i686/egg/setuptools/command/install_scripts.py to install_scripts.pyc  
byte-compiling build/bdist.linux-i686/egg/setuptools/command/sdist.py to sdist.pyc  
byte-compiling build/bdist.linux-i686/egg/setuptools/command/bdist_wininst.py to bdist_wininst.pyc  
byte-compiling build/bdist.linux-i686/egg/setuptools/command/bdist_rpm.py to bdist_rpm.pyc  
byte-compiling build/bdist.linux-i686/egg/setuptools/command/test.py to test.pyc  
byte-compiling build/bdist.linux-i686/egg/setuptools/command/install.py to install.pyc  
byte-compiling build/bdist.linux-i686/egg/setuptools/command/saveopts.py to saveopts.pyc  
byte-compiling build/bdist.linux-i686/egg/setuptools/command/egg_info.py to egg_info.pyc  
byte-compiling build/bdist.linux-i686/egg/setuptools/command/register.py to register.pyc  
byte-compiling build/bdist.linux-i686/egg/setuptools/command/bdist_egg.py to bdist_egg.pyc  
byte-compiling build/bdist.linux-i686/egg/setuptools/command/develop.py to develop.pyc  
byte-compiling build/bdist.linux-i686/egg/setuptools/command/install_lib.py to install_lib.pyc  
byte-compiling build/bdist.linux-i686/egg/setuptools/command/alias.py to alias.pyc  
byte-compiling build/bdist.linux-i686/egg/setuptools/command/upload_docs.py to upload_docs.pyc  
byte-compiling build/bdist.linux-i686/egg/setuptools/py31compat.py to py31compat.pyc  
byte-compiling build/bdist.linux-i686/egg/setuptools/py26compat.py to py26compat.pyc  
byte-compiling build/bdist.linux-i686/egg/setuptools/archive_util.py to archive_util.pyc  
byte-compiling build/bdist.linux-i686/egg/setuptools/dist.py to dist.pyc  
byte-compiling build/bdist.linux-i686/egg/setuptools/sandbox.py to sandbox.pyc  
byte-compiling build/bdist.linux-i686/egg/setuptools/lib2to3_ex.py to lib2to3_ex.pyc  
byte-compiling build/bdist.linux-i686/egg/setuptools/depends.py to depends.pyc  
byte-compiling build/bdist.linux-i686/egg/_markerlib/__init__.py to __init__.pyc  
byte-compiling build/bdist.linux-i686/egg/_markerlib/markers.py to markers.pyc  
byte-compiling build/bdist.linux-i686/egg/pkg_resources/__init__.py to __init__.pyc  
byte-compiling build/bdist.linux-i686/egg/pkg_resources/_vendor/__init__.py to __init__.pyc  
byte-compiling build/bdist.linux-i686/egg/pkg_resources/_vendor/packaging/specifiers.py to specifiers.pyc  
byte-compiling build/bdist.linux-i686/egg/pkg_resources/_vendor/packaging/__init__.py to __init__.pyc  
byte-compiling build/bdist.linux-i686/egg/pkg_resources/_vendor/packaging/version.py to version.pyc  
byte-compiling build/bdist.linux-i686/egg/pkg_resources/_vendor/packaging/_compat.py to _compat.pyc  
byte-compiling build/bdist.linux-i686/egg/pkg_resources/_vendor/packaging/_structures.py to _structures.pyc  
byte-compiling build/bdist.linux-i686/egg/pkg_resources/_vendor/packaging/__about__.py to __about__.pyc  
creating build/bdist.linux-i686/egg/EGG-INFO  
copying setuptools.egg-info/PKG-INFO -> build/bdist.linux-i686/egg/EGG-INFO  
copying setuptools.egg-info/SOURCES.txt -> build/bdist.linux-i686/egg/EGG-INFO  
copying setuptools.egg-info/dependency_links.txt -> build/bdist.linux-i686/egg/EGG-INFO  
copying setuptools.egg-info/entry_points.txt -> build/bdist.linux-i686/egg/EGG-INFO  
copying setuptools.egg-info/requires.txt -> build/bdist.linux-i686/egg/EGG-INFO  
copying setuptools.egg-info/top_level.txt -> build/bdist.linux-i686/egg/EGG-INFO  
copying setuptools.egg-info/zip-safe -> build/bdist.linux-i686/egg/EGG-INFO  
creating dist  
creating 'dist/setuptools-19.2-py2.6.egg' and adding 'build/bdist.linux-i686/egg' to it  
removing 'build/bdist.linux-i686/egg' (and everything under it)  
Processing setuptools-19.2-py2.6.egg  
Copying setuptools-19.2-py2.6.egg to /usr/lib/python2.6/site-packages  
Adding setuptools 19.2 to easy-install.pth file  
Installing easy_install script to /usr/bin  
Installing easy_install-2.6 script to /usr/bin

Installed /usr/lib/python2.6/site-packages/setuptools-19.2-py2.6.egg  
Processing dependencies for setuptools==19.2  
Finished processing dependencies for setuptools==19.2

验证:

[root@master progressbar-2.3]# easy_install pip  
Searching for pip  
Reading https://pypi.python.org/simple/pip/  
Best match: pip 7.1.2  
Downloading https://pypi.python.org/packages/source/p/pip/pip-7.1.2.tar.gz#md5=3823d2343d9f3aaab21cf9c917710196  
Processing pip-7.1.2.tar.gz  
Writing /tmp/easy_install-dAri8v/pip-7.1.2/setup.cfg  
Running pip-7.1.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-dAri8v/pip-7.1.2/egg-dist-tmp-PwaE1u  
warning: no previously-included files found matching '.coveragerc'  
warning: no previously-included files found matching '.mailmap'  
warning: no previously-included files found matching '.travis.yml'  
warning: no previously-included files found matching 'pip/_vendor/Makefile'  
warning: no previously-included files found matching 'tox.ini'  
warning: no previously-included files found matching 'dev-requirements.txt'  
no previously-included directories found matching '.travis'  
no previously-included directories found matching 'docs/_build'  
no previously-included directories found matching 'contrib'  
no previously-included directories found matching 'tasks'  
no previously-included directories found matching 'tests'  
creating /usr/lib/python2.6/site-packages/pip-7.1.2-py2.6.egg  
Extracting pip-7.1.2-py2.6.egg to /usr/lib/python2.6/site-packages  
Adding pip 7.1.2 to easy-install.pth file  
Installing pip script to /usr/bin  
Installing pip2.6 script to /usr/bin  
Installing pip2 script to /usr/bin

Installed /usr/lib/python2.6/site-packages/pip-7.1.2-py2.6.egg  
Processing dependencies for pip  
Finished processing dependencies for pip  
[root@master progressbar-2.3]# echo $?  
0

easy_install 安裝與移除套件的基本使用方式如下:

安裝套件:

easy_install PackageName

更新套件:

easy_install -U PackageName

移除套件:

easy_install -m PackageName

顯示說明:

easy_install --showhelp

pip  安裝與移除套件的基本使用方式如下:

安裝套件:

pip install PackageName

更新套件:

pip install -U PackageName

移除套件:

pip uninstall PackageName

搜尋套件:

pip search PackageName

顯示說明:

pip help

免责声明:

① 本站未注明“稿件来源”的信息均来自网络整理。其文字、图片和音视频稿件的所属权归原作者所有。本站收集整理出于非商业性的教育和科研之目的,并不意味着本站赞同其观点或证实其内容的真实性。仅作为临时的测试数据,供内部测试之用。本站并未授权任何人以任何方式主动获取本站任何信息。

② 本站未注明“稿件来源”的临时测试数据将在测试完成后最终做删除处理。有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341

安装python的easy_instal

下载Word文档到电脑,方便收藏和打印~

下载Word文档

猜你喜欢

安装python的easy_instal

安装地址: https://pypi.python.org/pypi/setuptools#id9Installation InstructionsThe recommended way to bootstrap setuptools on
2023-01-31

python 安装easy_instal

easy_install和pip都是用来下载安装Python一个公共资源库PyPI的相关资源包的首先安装easy_install下载地址:https://pypi.python.org/pypi/ez_setupwget https://p
2023-01-31

Python的安装、pycharm的安装

1. Python的安装    Python最流行的版本Python 2.71.linux2.windows修改环境变量:3.Mac OS2 pycharm安装3 pycharm快捷键alt + shift +f10   执行ctrl +
2023-01-31

python的安装

python 支持在多平台上安装与运行,我们一般从 python 的官方网站下载其安装包,比如 Windows 下是 exe 文件,Linux 下则是二进制文件。这里我们安装的是python3.6 版本的,安装完如下图所示:1、Window
2023-01-31

安装Python 后安装Python-d

安装可能会失败用以下命令就ok了。1.sudo apt-get install aptitude2.sudo aptitude install python-dev
2023-01-31

python+django的安装

找来找去,终于找到一种适合自己的web开发了!不过是否真的适合自己,那就不大清楚了!但是不做永远就不知道什么是web开发了。废话少说,开始不知道什么是尽头的web之旅吧。首先就是安装了,python的安装很简单,上官网下载安装包,然后双击就
2023-01-31

1-python的安装

最近发现python确实是方便又好用啊,甚是喜欢,所以打算研究下 第一步当然是环境的搭建 1.下载python 目前python有3.X版本和2.X版本的,据说3.X版本的是2.X的进化加强变态版,改动还是比较大的关键,主要需要注
2023-01-31

Python库的安装

一、在线安装安装好python、设置好环境变量后,在python安装目录下Script文件夹内会存在pip.exe和easy_install.exe两种在线安装工具。只需要在cmd输入pip,可以查看pip是否可用没有报错表示可用,在cmd
2023-01-31

python virtualevn的安装

你很可能想在开发中用上 virtualenv,如果你有生产环境的 shell 权限,你同样会乐于在生产环境中使用它。virtualenv 解决了什么问题?如果你像我一样喜欢 Python,不仅会在采用 Flask 的Web 应用中用上 vi
2023-01-31

Python的pip安装

我安装的是Python3,在安装目录下有一个libexec目录,里面有一个pip包进入pip目录cd libexec/pip/安装pippython3 setup.py install查看pip版本pip --version pip常用命令
2023-01-31

python安装numpy&安装matplotlib& scipy的教程

numpy安装 下载地址:https://pypi.python.org/pypi/numpy(各取所需) copy安装目录。eg:鄙人的D:python3.6.1Scripts pip install :eg: win+R ----->
2022-06-04

Python -- 安装

小Q 等闲变却故人心却道故人心易变。                                                          --- 纳兰容若------------------------------------
2023-01-31

python安装

本章节我们将向大家介绍如何在本地搭建Python开发环境。Python可应用于多平台包括 Linux 和 Mac OS X。你可以通过终端窗口输入 "python" 命令来查看本地是否已经安装Python以及Python的安装版本。Unix
2023-01-31

Python 安装

1、Python依赖readline-devel,先yum -y install readline-devel 2、下载:python-2.7.6.tar.gz 和 ipython-1.2.1.tar.gz    https://www.p
2023-01-31

python在Linux的安装

1)查看是否已经安装which pythonwhereis pythonpython -V 2)yum或apt来安装在Redhat系Linux上安装python, 执行: sudo yum install python 3)源码安装下载 :
2023-01-31

python Lxml库的安装

python Lxml库的安装遇到的问题    用python安装lxml库的时候一直显示错误,在安装别的库的时候,直接下载包、解压、python setup.py install 安装就成功了,而这个库安装的时候却一直显示错误,在网上搜了
2023-01-31

python安装需要安装paramiko

一、介绍1.最近手头有个脚本用于远程批量传输文件的。由于系统本身环境兼容不是很好,所以开始升级配置环境。2.paramiko是用python语言写的一个模块,遵循SSH2协议,支持以加密和认证的方式,进行远程服务器的连接。由于使用的是pyt
2023-01-31

编程热搜

  • Python 学习之路 - Python
    一、安装Python34Windows在Python官网(https://www.python.org/downloads/)下载安装包并安装。Python的默认安装路径是:C:\Python34配置环境变量:【右键计算机】--》【属性】-
    Python 学习之路 - Python
  • chatgpt的中文全称是什么
    chatgpt的中文全称是生成型预训练变换模型。ChatGPT是什么ChatGPT是美国人工智能研究实验室OpenAI开发的一种全新聊天机器人模型,它能够通过学习和理解人类的语言来进行对话,还能根据聊天的上下文进行互动,并协助人类完成一系列
    chatgpt的中文全称是什么
  • C/C++中extern函数使用详解
  • C/C++可变参数的使用
    可变参数的使用方法远远不止以下几种,不过在C,C++中使用可变参数时要小心,在使用printf()等函数时传入的参数个数一定不能比前面的格式化字符串中的’%’符号个数少,否则会产生访问越界,运气不好的话还会导致程序崩溃
    C/C++可变参数的使用
  • css样式文件该放在哪里
  • php中数组下标必须是连续的吗
  • Python 3 教程
    Python 3 教程 Python 的 3.0 版本,常被称为 Python 3000,或简称 Py3k。相对于 Python 的早期版本,这是一个较大的升级。为了不带入过多的累赘,Python 3.0 在设计的时候没有考虑向下兼容。 Python
    Python 3 教程
  • Python pip包管理
    一、前言    在Python中, 安装第三方模块是通过 setuptools 这个工具完成的。 Python有两个封装了 setuptools的包管理工具: easy_install  和  pip , 目前官方推荐使用 pip。    
    Python pip包管理
  • ubuntu如何重新编译内核
  • 改善Java代码之慎用java动态编译

目录