Python and its common module library download and installation

Source: Internet
Author: User

One, python download: https://www.python.org/downloads/


Second, the Python module download: http://www.lfd.uci.edu/~gohlke/pythonlibs/#pymssql (common daily packages are available)
Python Module (third party libraries): Https://pypi.python.org/pypi


Third, the Python Library installation (a):
Method 1: Single-file module
Copy the file directly to the $python _dir/lib


Method 2: Multi-file module with setup.py
Download the module package (compressed file zip or tar.gz), unzip, CMD->CD into the module folder, execute:
Python setup.py Install


Method 3:easy_install Way
Download ez_setup.py First, run Python ez_setup to install the Easy_install tool, and then use Easy_install to install the package (file name, resource URL,. egg file (python Egg file) To download the installation file)
Easy_install PackageName
Easy_install Package.egg


Method 4:pip automatic installation of network search
Install the PIP tool First: Easy_install PIP (Pip can be installed via Easy_install and will also be loaded into the Scripts folder D:\Python2.7\Lib\site-packages)
Install: Pip Install PackageName
Pip Common Commands
Lists the installed Packages:pip freeze
Install a specific version of the package: Specify a version number by using = =, >=, <=, <;
$ pip Install ' markdown<2.0 '
$ pip Install ' markdown>2.0,<2.0.3 '
Upgrade the package to the most current version, you can use-U or--upgrade:
Upgrade package PIP Install-u Markdown
Unload Package: Pip Uninstall Markdown
Query package: Pip Search "Markdown"


Method 5:.WHL file pip mode
Download the corresponding module. WHL file, enter the directory where the. whl file is located under the CMD->CD command, if the PIP directory is not added to the environment variable, it is best to place the. whl file in the directory where Pip.exe is located (D:\Python2.7\Scripts\).
Install: Pip install package name. WHL


Method 6:.exe File Custom Installation
Download the corresponding version of EXE installation files, such as Numpy-1.9.2-win32-superpack-python2.7.exe and Mlpy-3.5.0.win32-py2.7.exe
Install: Turn on automatic installation


Iv. Selenium Download: https://pypi.python.org/pypi/selenium#downloads
Five, Selenium Chinese website: http://www.selenium.org.cn/

Python and its common module library download and installation

Related Article

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.