LoginSignup
0
1

More than 3 years have passed since last update.

mac vscodeでpythonをインストール

Last updated at Posted at 2020-05-07

VSコードの拡張機能からインストールする。

拡張機能でpythonと検索すると表示される。

スクリーンショット 2020-05-06 9.51.17.png

コードチェッカーのpylintのインストール

>$ /usr/local/opt/python/bin/python3.7 -m pip install -U pylint --user

結果
Collecting pylint
  Downloading pylint-2.5.2-py3-none-any.whl (324 kB)
     |████████████████████████████████| 324 kB 1.3 MB/s 
Collecting astroid<=2.5,>=2.4.0
  Downloading astroid-2.4.1-py3-none-any.whl (214 kB)
     |████████████████████████████████| 214 kB 4.6 MB/s 
Collecting mccabe<0.7,>=0.6
  Downloading mccabe-0.6.1-py2.py3-none-any.whl (8.6 kB)
Collecting isort<5,>=4.2.5
  Downloading isort-4.3.21-py2.py3-none-any.whl (42 kB)
     |████████████████████████████████| 42 kB 1.4 MB/s 
Collecting toml>=0.7.1
  Downloading toml-0.10.0-py2.py3-none-any.whl (25 kB)
Collecting six~=1.12
  Downloading six-1.14.0-py2.py3-none-any.whl (10 kB)
Collecting lazy-object-proxy==1.4.*
  Downloading lazy_object_proxy-1.4.3-cp37-cp37m-macosx_10_13_x86_64.whl (19 kB)
Collecting typed-ast<1.5,>=1.4.0; implementation_name == "cpython" and python_version < "3.8"
  Downloading typed_ast-1.4.1-cp37-cp37m-macosx_10_9_x86_64.whl (223 kB)
     |████████████████████████████████| 223 kB 1.4 MB/s 
Collecting wrapt~=1.11
  Downloading wrapt-1.12.1.tar.gz (27 kB)
Building wheels for collected packages: wrapt
  Building wheel for wrapt (setup.py) ... done
  Created wheel for wrapt: filename=wrapt-1.12.1-cp37-cp37m-macosx_10_15_x86_64.whl size=32489 sha256=0a297079160037e04b26df3cbb8b03dbcee72c24a5bf70e57c0378900d80b4e9
  Stored in directory: /Users/Nagate/Library/Caches/pip/wheels/62/76/4c/aa25851149f3f6d9785f6c869387ad82b3fd37582fa8147ac6
Successfully built wrapt
Installing collected packages: six, lazy-object-proxy, typed-ast, wrapt, astroid, mccabe, isort, toml, pylint
  WARNING: The script isort is installed in '/Users/nagate/Library/Python/3.7/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  WARNING: The scripts epylint, pylint, pyreverse and symilar are installed in '/Users/nagate/Library/Python/3.7/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed astroid-2.4.1 isort-4.3.21 lazy-object-proxy-1.4.3 mccabe-0.6.1 pylint-2.5.2 six-1.14.0 toml-0.10.0 typed-ast-1.4.1 wrapt-1.12.1

参考

VSCodeでPython開発構築の備忘録
Visual Studio Code で Mac に Python 開発環境を整える
Pythonの開発環境を用意しよう!(Mac)

VS codeでpython3の実行(windows10)

0
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
0
1