Sublime Python 3 virtual environment configuration

Time:2021-9-15

Create a soft link to sublime

$ ln /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/

start

Create a project folder and enter the directory

Sublime Python 3 virtual environment configuration

Create a test2 project and open it with sublime

Sublime Python 3 virtual environment configuration

$ python3 -m venv env

Sublime Python 3 virtual environment configuration

Activate virtual Python environment

$ source ./env/bin/activate

Sublime Python 3 virtual environment configuration

Exit virtual Python environment

$ deactivate

This work adoptsCC agreement, reprint must indicate the author and the link to this article