Home  >  Article  >  Backend Development  >  Where is idle in the python installation package?

Where is idle in the python installation package?

anonymity
anonymityOriginal
2019-06-20 10:01:175638browse

Enter the python installation directory. For example, if python is installed on the d drive, you only need to go to the following folder and run D:\Program Files\Python33\Lib\idlelib\idle.bat.

Where is idle in the python installation package?

As for the solution to the appearance of a black blank cmd command prompt window, just open the idle.bat file with Notepad and add exit at the end of the file, such as :

idle.bat Original code:

@echo off
rem Start IDLE using the appropriate Python interpreter
set CURRDIR=%~dp0
start "IDLE" "%CURRDIR%..\..\pythonw.exe" "%CURRDIR%idle.pyw" %1 %2 %3 %4 %5 %6 %7 %8 %9

Changed code:

@echo off
rem Start IDLE using the appropriate Python interpreter
set CURRDIR=%~dp0
start "IDLE" "%CURRDIR%..\..\pythonw.exe" "%CURRDIR%idle.pyw" %1 %2 %3 %4 %5 %6 %7 %8 %9
exit

Supplement: You can add D:\Program Files\Python33\Lib\idlelib\ to system variables , so just open cmd and enter idle and press Enter.

The above is the detailed content of Where is idle in the python installation package?. 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