Several common module installation methods for Python

Source: Internet
Author: User

1. Online Installation

Run the PIP install package_name command

Note: Package_name refers to the module name that needs to be installed

2. Offline installation

2.1 Download the installation package

Suffix format:. WHL and. GZ Two types

Download Link: https://www.lfd.uci.edu/~gohlke/pythonlibs/or https://pypi.org/

WHL Sample Description:

CPXX:XX represents the Python version, i.e. 2.7, 3.4, etc.

win32:32 bit Python software

win_amd64:64 bit Python software

Note: View your Python software (version number, 32-bit/64-bit), click to download

GZ Sample Description:

2.2 Installation

WHL Installation Tutorial:

2.2.1 Using the CD command at the command line to jump to the directory where the file is located

2.2.2 Running the PIP install file_full_name command

Note: File_full_name refers to the name of the file downloaded above, for example AD3?2.1?CP36?CP36M?WIN_AMD64.WHL

For example, the file is in the C:\Package\python directory

GZ Installation Tutorial:

2.2.3 to unzip the GZ file

2.2.4 using the CD command at the command line to unzip the directory

2.2.5 running the python setup.py install command

For example, the extracted file directory is scikit-surprise-1.0.6, into the Extract directory

Several common module installation methods for Python

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.