2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Pythonで世界にご挨拶 with IntelliJ

Last updated at Posted at 2016-06-01

前提

  • macにpythonとIntelliJがインストール済み。

    • インストール方法とかはこれとかを参照。
  • version確認

     $ python --version
     Python 3.5.1
    

プラグインを追加

  • 名前そのまま、「Python」ってプラグインがあったのでインストール。

Pythonプロジェクト作成

  • File > New > Project
  • [ Python ] を選択し、Project SDKにpythonのパスを指定して [ Next ]をクリック
  • [ Next ]をクリック
  • プロジェクト名を入力して[ Next ]をクリック。

Hello World

  • プロジェクト直下にソースファイルを作成(ファイル名:test.py)して編集。

     # -*- coding: UTF-8 -*-
     
     print("Hello world!")
    
  • メニュー [ Run ] > [ Run ]をクリック

  • 実行対象を選択 (ここでは「test」)

     /your/path/to/python /your/path/to/python/project/test.py
     Hello world!!
     
     Process finished with exit code 0
    
  • コンソールでやる場合は、プロジェクト直下へ移動してコマンド「python filename.py」実行

     $  python test.py
     Hello world!
    
  • 無事にご挨拶できました。

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?