Use python installed with Pyenv with Sublime REPL of Sublime Text 3

Advance preparation

procedure

  1. Create a User directory
cd ~/Library/Application Support/Sublime Text 3/Packages
mkdir -p User/SublimeREPL/config/Python
  1. Copy the configuration file
cp -p SublimeREPL/config/Python/Main.sublime-menu User/SublimeREPL/config/Python/
  1. Edit the copied Main.sublime-menu and change the python to execute

Change python executed by cmd via pyenv

"cmd": ["~/.pyenv/shims/python", "-i", "-u"],
  1. Start 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.
>>> 

Success if the python used is switched

Recommended Posts

Use python installed with Pyenv with Sublime REPL of Sublime Text 3
I couldn't use tkinter with python installed by pyenv of anyenv
Use multiple versions of python environment with pyenv
GOTO in Python with Sublime Text 3
Enable Python raw_input with Sublime Text 3
Use Python in pyenv with NeoVim
Use smbus with python3 under pyenv environment
Use Anaconda-Python installed with pyenv from openFrameworks
Create a python3 build environment with Sublime Text3
Make OpenCV3 available from python3 installed with pyenv
python development environment -use of pyenv and virtualenv-
How to use tkinter with python in pyenv
[Python] Use JSON with Python
Use mecab with Python3
Use DynamoDB with Python
Use Python 3.8 with Anaconda
Install python with pyenv
I installed Pygame with Python 3.5.1 in the environment of pyenv on OS X
Challenge principal component analysis of text data with Python
Install the latest Python from pyenv installed with homebrew
Set up a Python development environment with Sublime Text 2
Use Twitter API with Python
Use TUN / TAP with Python
Reinstall python with pyenv with -fPIC
python with pyenv and venv
Use subsonic API with python3
TensorFlow 2.2 can't be installed with Python 3.8!
Python: How to use async with
Use vl53l0x with Raspberry Pi (python)
Text extraction with AWS Textract (Python3.6)
Set python compile options with pyenv
Proper use of Python visualization packages
[Python] Use Basic/Digest authentication with Flask
Use NAIF SPICE TOOLKIT with Python
Sample to use after OAuth authentication of BOX API with Python
Text mining with Python ① Morphological analysis
Getting Started with Python Basics of Python
Use rospy with virtualenv in Python3
[Python Queue] Convenient use of Deque
10 functions of "language with battery" python
Unable to install Python with pyenv
How to use FTP with Python
Use Windows 10 speech synthesis with Python
Speak Japanese text with OpenJTalk + python
Implementation of Dijkstra's algorithm with python
Use OpenCV with Python 3 in Window
Use PostgreSQL with Lambda (Python + psycopg2)
Coexistence of Python2 and 3 with CircleCI (1.0)
Basic study of OpenCV with Python
Use pydoc with Virtualenv / pyenv / venv
Basics of binarized image processing with Python
[Ubuntu 18.04] Python environment construction with pyenv + pipenv
[Examples of improving Python] Learning Python with Codecademy
[Python] Summary of how to use pandas
English speech recognition with python [speech to text]
Install Python as a Framework with pyenv
Use DeepL with python (for dissertation translation)
Execute Python script with cron of TS-220
Check the existence of the file with python
Algorithm learned with Python 8th: Evaluation of algorithm
Use Amazon Simple Notification Service with Python