Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I open Python IDLE (Shell WIndow) in WIndows 10?

Tags:

python

shell

I am just starting to learn Python and I am using Windows 10. I downloaded and installed Python 3.4.3. But everytime I open Python from my Desktop or from C:\Python\python.exe it just opens a black command prompt without any Menu options like File menu, Edit Menu, Format Menu etc. I can't see any colors of the code, it's just black screen with white text. I searched about it on internet and came to know that what I am opening is the Editor winodws and I need to open Shell Window in order to have access to all of those options and features. I can't figure out where is the .exe of Shell Window and with what name is it? Please help me.

P.S. I also tried to open pythonw.exe that was present in the Python folder where it was installed, but nothing opened.

like image 252
Khubaib Khawar Avatar asked Apr 01 '17 16:04

Khubaib Khawar


People also ask

How do I run a Python program in Python shell?

To run Python scripts with the python command, you need to open a command-line and type in the word python , or python3 if you have both versions, followed by the path to your script, just like this: $ python3 hello.py Hello World! If everything works okay, after you press Enter , you'll see the phrase Hello World!

What is Python IDLE shell?

IDLE is the standard Python development environment. Its name is an acronym of "Integrated DeveLopment Environment". It works well on both Unix and Windows platforms. It has a Python shell window, which gives you access to the Python interactive mode.


2 Answers

In Windows you will need to right click a .py, and press Edit to edit the file using IDLE. Since the default action of double clicking a .py is executing the file with python on a shell prompt.

To open just IDLE:

Click on that. C:\Python36\Lib\idlelib\idle.bat

like image 136
Taku Avatar answered Sep 28 '22 06:09

Taku


If your using Windows 10 just type in idle where it says: "Type here for search"

like image 33
K p Avatar answered Sep 28 '22 06:09

K p