I messed up my IDLE shortcut. What is the way to start IDLE from the cmd.exe shell in Windows?
On my system, running C:\\Python26\\lib\\idlelib\\idle.py
launches idle from the command prompt. Obviously you will need to adjust your path if your main Python directory isn't C:\\Python26\\
.
It looks like you could also launch it via idle.pyw
or idle.bat
in that same directory.
You can just add a path in your Environment variables tab in My Computer Properties --> Advanced as c:\\Python27\\Lib\\idlelib
. After adding this path just write idle.pyw
in cmd
whenever you want to run IDLE.
Just make sure you replace the folder name with whatever directory name you have.
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.