2
3

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.

SublimeText3のSublimeREPLでPyenvでインストールしたpythonを使う

Posted at

事前準備

  • SublimeText3をインストール
  • SublimeREPLをインストール
  • Pyenv経由でpythonをインストール

手順

  1. Userディレクトリを作成
cd ~/Library/Application Support/Sublime Text 3/Packages
mkdir -p User/SublimeREPL/config/Python
  1. 設定ファイルをコピー
cp -p SublimeREPL/config/Python/Main.sublime-menu User/SublimeREPL/config/Python/
  1. コピーしたMain.sublime-menuを編集して実行するpythonを変更

cmdで実行されるpythonをpyenv経由に変更する

"cmd": ["~/.pyenv/shims/python", "-i", "-u"],
  1. REPLを起動
Python 3.5.1 |Anaconda 2.5.0 (x86_64)| (default, Dec  7 2015, 11:24:55) 
[GCC 4.2.1 (Apple Inc. build 5577)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> 

みたいに使用されるpythonが切り替わっていれば成功

2
3
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
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?