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

How to check whether python is installed successfully?

青灯夜游
青灯夜游Original
2019-05-21 19:30:3537364browse

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

, 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

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!

Statement:
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