简体   繁体   中英

Running .py file from cmd opens the python modify setup

I have a python file located at myFile.py that works perfectly fine when I run it from visual studio code or any python file launcher.

The problem is that whenever I run it using the python myFile.py command in the windows command prompt it just opens the Python Modify Setup (image below) instead of running the file. Repairing or modifying python isn't the solution.

在此处输入图像描述

Here's a video showing the problem .

This problem is due to the python installation file python.exe being in the same directory as myFile.exe . It should be removed from that working directory.

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