LoginSignup
1
2

More than 5 years have passed since last update.

Python 開発環境構築 on macOS

Last updated at Posted at 2017-07-08

すいません、ほぼ自分向けのメモになります。

参考

手順

Homebrew

bash
brew doctor
brew update

Xcode

bash
xcode-select --install

pyenv

インストール

bash
brew install pyenv
pyenv install 3.6.1
pyenv global 3.6.1

パス設定

bash
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"

pipインストール

easy_install pip

Visual Studio Code

環境設定に以下を追加

json
"python.venvPath": "~/.pyenv"
1
2
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
1
2