简体   繁体   中英

Python in command line not switching

Having installed python 2.7, and added python directory to PATH variable. I started windows command line and typed "python" + enter. It neither reports error nor switch to python command line. Instead just pop up python version info and revert to windows command prompt as below

    Microsoft Windows [Version 10.0.14393]
    (c) 2016 Microsoft Corporation. All rights reserved.

    C:\Users\User>python
    Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [MSC v.1500     64 bit (AMD64)] on win32
    Type "help", "copyright", "credits" or "license" for more information.

    C:\Users\User>

Restart computer does not help either. Just cannot find a similar case so post here.

maybe you can use python idle when you download python,idle is downloaded

1.windows command lines is not convenient 2.you can search python idle in your computer,you can find it; 3.or you can download ide,such as pyCharm

this is my first time answer question in english

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM