An easy way to add python environment variables

Source: Internet
Author: User
If the add Python.exe to Path is not selected when installing
Causes the Python prompt to be executed at the command prompt ' Python ' is not an internal or external command, nor is it a running program or batch file.
There are two ways to do this:
Method One: Use the cmd command to add the PATH environment variable

              在cmd下输入: path=%path%;D:\Python27  接着按"Enter"回车键。                 其中: D:\Python27  是Python的安装目录。

Method Two: Add the Python directory to the environment variable

              (1) 右键点击"计算机",然后点击"属性"              (2) 然后点击"高级系统设置"              (3) 选择"系统变量"窗口下面的"Path",双击即可!              (4) 然后在"Path"行,添加python安装路径即可(我的D:\Python27)。 ps:记住,路径直接用分号";"隔开!

An easy way to add python environment variables

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.