Python Forum
Python opening a new command window - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Python opening a new command window (/thread-23562.html)



Python opening a new command window - m_lokeshkumar - Jan-05-2020

Hi All,

I am facing a weird issue in windows python setup. When i enter python in cmd window, a new interactive shell opens.

When i delete the python.exe and try to repair the python using setup file, it was working fine and opening interactive shell in the same cmd window but when i refresh c:\python27 folder or install any new module, python.exe icon changes to a black one and same issue repeats.

Can anyone please help/suggest me any solution for this issue.

Regards,
Lokesh Kumar M.


RE: Python opening a new command window - Larz60+ - Jan-05-2020

once python is installed, you should never mess with anything in the python directory.
installs should be done using pip or other official installation programs only.
also, Python 27 was supposed to die on January 1, 2020, but alas has become a zombie!

You should upgrade to python 3, which is already at version 3.8.1

At this point, I would suggest you totally uninstall python 2.7 which, since messed which can no longer be trusted, and reinstalling (hopefully with 3.8.1), but if not, at least with official version.