Python and IntelliJ installed on mac.
See this for the installation method.
Version confirmation
$ python --version
Python 3.5.1
Hello World
Create a source file directly under the project (file name: test.py) and edit it.
# -*- coding: UTF-8 -*-
print("Hello world!")
Click the menu [Run]> [Run]
Select the execution target (here, "test")
/your/path/to/python /your/path/to/python/project/test.py
Hello world!!
Process finished with exit code 0
If you want to do it on the console, go directly under the project and execute the command "python filename.py"
$ python test.py
Hello world!
I was able to say hello safely.
Recommended Posts