Install PyCharm and make sure python works.
Windows7 64bit
https://www.jetbrains.com/pycharm/download/#section=windows Download PyCharm. Download the Community version because the purpose is to run python.
After the download is complete, start the installer shown below.
Startup screen
You will be asked where to put the configuration file. There is no problem if you proceed as it is.
You need to check Create associations. PyCharm will read the extension ".py".
You will be asked where to put the launch icon. There is no problem if you proceed as it is.
Finish completes the installation.
Since the icon is not created on the desktop, search for the start icon with "JetBrains PyCharm Community Edition" from the Windows key and start it.
Startup screen. If you have an existing package that handles python files, select the package from "Open". This time, select "Create New Project" to create a new one.
You will be asked where to create the python file and which python to use. This time, I created it as "untitled".
After selecting Create, the folder you just created is displayed.
To create a python file, right click on the folder "untitled" in the creation location Select "New"-> "Python File".
Decide a file name and create a file. (This time test.py)
After selecting OK, test.py was created under the folder and can be written on the right side of the screen.
Traditional Hello World syntax
print ('Hello World!')
.
To run python, select the file you want to start from "Run"-> "Run ..." at the top of the screen. Choice.
"Hello World!" Is displayed at the bottom of the screen, and you can confirm that it is moving.
Recommended Posts