Home > Backend Development > Python Tutorial > How to check whether python is installed successfully?

How to check whether python is installed successfully?

青灯夜游
Release: 2019-05-23 18:54:25
Original
37541 people have browsed it

How to check whether python is installed successfully?

Method to determine whether python is installed successfully:

1. Enter pythoncommand## in the cmd command line

#If you successfully enter the python interactive command line, the installation is successful.

If the installation is successful, you can see the version information and enter the programming mode, as shown below (the version I installed is python 2.7.13):

Input:

print 'hello world', press Enter, it can also be printed successfully.

How to check whether python is installed successfully?

If the following error is reported:

command python not found
Copy after login

, the problem may be that the environment variable is not set.

2. Check the version number of python

If the version number of python is successfully displayed, the installation is successful.

Use the following command to check the python version


python --version
Copy after login

How to check whether python is installed successfully?

The above is the detailed content of How to check whether python is installed successfully?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template