Home >Backend Development >Python Tutorial >How to open python idle

How to open python idle

(*-*)浩
(*-*)浩Original
2019-05-30 13:53:5710580browse

IDLE is an integrated development environment that comes with the Python software package, which can easily create, run, and debug Python programs.

How to open python idle

Enter your python installation directory. For example, my python is installed on the d drive. You only need to enter the following folder, for example: D:\ProgramFiles \Python33\Lib\idlelib\idle.bat can be run.

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

For example:

##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

After change 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

In addition, you can add D:\Program Files\Python33\Lib\idlelib\ to the system variable, so you only need to open cmd and enter idle and press Enter.

The above is the detailed content of How to open python idle. 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