Study notes: Python3,pip Installing third-party libraries (2017)

Source: Internet
Author: User
Tags sublime text

Pip to Python is like NPM for node. JS, as well as the package control for Sublime Text

Since the version after python3.4 comes with a pip, it needs to be upgraded before it can be used:
c:\python3\scripts\> python-m pip install--upgrade pip

# View the package that is installed c:\python3\scripts\> python pip.exe list#  Viewa package c:\python3\scripts\>  Python pip.exe show bs4# updates to the installed toolkit c:\python3\scripts\> python pip.exe install-U bs4< /c8>#  Install packagec:\python3\scripts\> python pip.exe install packagename#  Uninstallpackage c:\python3\scripts\> python pip.exe uninstall PackageName

C:\Python3\Lib\site-packages installed libraries are saved here.

You can then install the other libraries directly via PIP, such as installing the requests library, the correct posture:

c:\python3\scripts\> Python Pip.exe Install requests (introduction of third-party library requests)
c:\python3\scripts\> python pip.exe Install Pdfkit (introduction of third-party library Pdfkit)--Operation PDF
c:\python3\scripts\> python pip.exe Install Scrapy (introduction of third-party library Scrapy)-error, lack of VC + +
c:\python3\scripts\> python pip.exe Install Pdfkit (introduction of third-party library Django)
c:\python3\scripts\> python pip.exe Install Pymysql (introduction of third-party library Pymysql)-Database connection library, connection to MySQL
c:\python3\scripts\> python pip.exe Install cookies (introducing third-party libraries cookies2.2.1)
c:\python3\scripts\> python pip.exe uninstall Image (delete third-party library Image1.5.5)
c:\python3\scripts\> python Pip.exe Install pillow (introduction of third-party library PIL) since PIL only supports Python 2.7, plus years of disrepair, a group of volunteers created a compatible version on the basis of PIL, Named Pillow, which supports the latest Python 3.x and adds many new features, so we can install it directly using pillow
c:\python3\scripts\> python pip.exe Install XLWT (introduction of third-party library XLWT)--Write Excel
c:\python3\scripts\> python pip.exe Install xlrd (introduction of third-party library XLRD)--Read Excel
c:\python3\scripts\> python pip.exe Install cx_oracle (introduction of third-party library cx_oracle)--oracle database, not installed, there is a problem.
c:\python3\scripts\> python pip.exe Install BS4 (introduction of third-party library BS4)

Study notes: Python3,pip Installing third-party libraries (2017)

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.