Centos7 under Python3 installation pip-9.0.1

Source: Internet
Author: User
Tags install openssl ssl certificate

Pip is similar to Yum in Redhat, which is handy for installing Python packages. This section details the installation of Pip, and how to use it

1. Download PIP installation package

[Email protected] ~]# wget https://pypi.python.org/packages/11/b6/ abcb525026a4be042b486df43905d6893fb04f05aac21c32c638e939e447/pip-9.0.1.tar.gz#md5= 35f01da33009719497f01a4ba69d63c9

2. Extract PIP installation package

3. Install Pip

[[Email protected] ~]# CD Pip-9.0.1[[email protected] pip-9.0.1]# python3 setup.py Install

4,pip use detailed

  • Pip installation module error, warning no SSL module

     [[email protected] ipython-6.1.0]# pip Install TRAITLETSPIP is configured with locations that require TLS/SSL, however the SSL module in Python is not available. Collecting traitletscould not fetch URL https://pypi.python.org/simple/traitlets/: There is a problem confirming the SSL Certificate:can ' t connect to HTTPS URL because the SSL module was not available. -Skippingcould not find a version this satisfies the requirement traitlets (from versions:) No matching distribution Foun D for traitlets# does not have Openssl-devel installed and then recompile installation python3.6[[email protected] pip-9.0.1]# Yum install openssl-devel-y 
    #进入python3.6 Unpack the package directory [[[email protected] Python-3.6.1] #make clean[[email protected] python-3.6.1]#. configure [[email protected] python-3.6.1]# make && make install
  •   After you install Openssl-devel and recompile the installation Python3, test the PIP installation module again
     [[email protected ] ~]# pip install ' traitlets ' collecting traitlets downloading TRAITLETS-4.3.2-PY2.PY3-NONE-ANY.WHL (74kB) 100% |?..?. .?..?..?..?..?..?..?..?..?..?..?..?..?..?..| 81kB 87kb/s collecting six (from traitlets) downloading six-1.10.0-py2.py3-none-any.whlcollecting ipython-genutils (  From traitlets) downloading ipython_genutils-0.2.0-py2.py3-none-any.whlcollecting decorator (from Traitlets) Downloading decorator-4.0.11-py2.py3-none-any.whlinstalling collected Packages:six, Ipython-genutils, decorator, Traitletssuccessfully installed decorator-4.0.11 ipython-genutils-0.2.0 six-1.10.0 traitlets-4.3.2# installation succeeded 

     

  • PIP Uninstall Package: Unload module
    [Email protected] pip-9.0.1]# pip uninstall traitletsuninstalling traitlets-4.3.2:......packages/traitlets/utils/ Tests/test_importstring.pyproceed (y/n)? Y         successfully uninstalled traitlets-4.3.2

  • PIP freeze: Output installed modules in demand format
    [Email protected] pip-9.0.1]# pip freezedecorator==4.0.11ipython==6.1.0ipython-genutils==0.2.0pexpect== 4.2.1ptyprocess==0.5.2pygments==2.2.0six==1.10.0traitlets==4.3.2

  • pip list  --format= (legacy|columns): Installs the specified format to output the installed module, and Pip freeze similar to
     [[email protected] pip-9.0.1]# pip list--format=legacydecorator (4.0.11) Ipython (6.1.0) ipython-genutils ( 0.2.0) Pexpect (4.2.1) pip (9.0.1) ptyprocess (0.5.2) pygments (2.2.0) setuptools (28.8.0) Six (1.10.0) traitlets (4.3.2) [[        Email protected] pip-9.0.1]# pip list--format=columnspackage Version-----------------------Decorator       4.0.11 Ipython 6.1.0 ipython-genutils 0.2.0 pexpect 4.2.1 pip 9.0.1 ptyprocess 0.5.2 pygments 2.2.0 setuptools 28.8.0 six 1.10.0 traitlets 4.3.2 

     

  • PIP Show Package: displaying installed module information
    [[Email protected] pip-9.0.1]# pip show traitletsname:traitletsversion:4.3.2summary:traitlets Python config systemhome -page:http://ipython.orgauthor:ipython Development teamauthor-email: [Email protected]license:bsdlocation:/usr/ Local/lib/python3.6/site-packagesrequires:ipython-genutils, six, decorator

  • Pip-h: The rest of the options can be viewed by-H, not too much to introduce here
    [[email protected] pip-9.0.1]# pip-husage:pip <command> [Options]commands:install I  Nstall packages.  Download Download packages.  Uninstall Uninstall packages.  Freeze Output installed packages in requirements format.  List List installed packages.  Show show information about installed packages.  Check Verify installed packages have compatible dependencies.  Search Search PyPI for packages.  Wheel Build wheels from your requirements.  Hash Compute hashes of the package archives.  Completion A helper command used for command completion. Help Show Help for commands.  General Options:-H,--help Show help. --isolated Run pip in an isolated mode, ignoring environment variables and user ConfigUration. -V,--verbose Give more output.  Option is additive, and can are used up to 3 times.  -V,--version Show version and exit. -Q,--quiet Give less output.  Option is additive, and can being used up to 3 times (corresponding to WARNING, ERROR, and CRITICAL logging levels).  --log <path> Path to a verbose appending log.  --proxy <proxy> Specify a proxy in the form [User:[email protected]]proxy.server:port.  --retries <retries> Maximum Number of retries each connection should attempt (default 5 times).  --timeout <sec> Set The socket timeout (default seconds). --exists-action <action> Default Action when a path already exists: (s) witch, (i) Gnore, (W) Ipe, (b) Ackup, (a) bort  .  --trusted-host Ndex.








    Source: http://www.cnblogs.com/chengd/p/7078588.html

Centos7 under Python3 installation pip-9.0.1

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.