Python download, environment variable configuration, module installation method

Source: Internet
Author: User

Download

Windows version: https://www.python.org/downloads/windows/

Similar to installer end of the file that we need to download, the number of bits according to their own computer to choose (x86:32 bit, x86-64:64 bit)

Download the installation tutorial Here I will not say, there are too many online. Installation Tutorial: https://jingyan.baidu.com/article/e73e26c0bad76224acb6a766.html (from Baidu Experience)

Environment variable Configuration

I'm Win7 here, win10, just need to find the path of the environment variable (Control Panel > System > Advanced system Settings)

  

Just add a file path like this in the diagram.

If there is a different Python version in your computer, you can rename the. exe file in the installation file

Module installation

  First, execute the easy_install.exe pip Command install PIP tool in cmd in the Scripts folder in the installation directory

  

  You can now install additional modules in this directory using the PIP Install module name .

For example, installing the Pymysql module:

  

  

If there is an error installing in CMD, you can use another installation method:

Go to https://www.lfd.uci.edu/~gohlke/pythonlibs/, download the desired module

You can find your desired module by ctrl+f according to the keyword, Scikit-learn is the module I want to install

  Click to select the corresponding version of the download, it is important to note that: it is best to download the WHL file directly into the Python installation directory of the Scripts folder (because the installation is done in the scripts directory, you do not have to write absolute path), so as to facilitate the installation later.

  

  Install: Still use pip install WHL file name (file name is too long, you can directly rename and then copy the file name and then paste)

  

Hope this article is useful to you, if you have any other questions please contact me! Thank you!

Python download, environment variable configuration, module installation method

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.