Sublime Forum

Can't get virtualenv working with sublime text builds

#1

Sublime Text 4, virtualenv / python, windows 10. Build command doesn’t seem to do anything, can’t find the “Virtualenv: Install” command in the palette. All the help topics seem to be years old and don’t work. Any help would be appreciated.

0 Likes

#2

vritualenv_install

It was created in 2016, it’s just too old. But it can still be found. If you want to install a package, you need to first enter “package control” and select “install package” to enter the package search and installation.

I am also using Sublime Text 4 like you, but after installation, I cannot find ‘virtualinv: activate’ in the command panel. I have tracked the installation log and found that it is reporting an error. If you have solved this problem, please reply to me. Thank you!

0 Likes

#3

The plugin relies on ST’s Default package, which is loaded only in python 3.8 plugin_host in ST4.

To get Virtualenv working it must opt-in to python 3.8 as well.

This is done by creating a Packages/Virtualenv/.python-version file with 3.8 as content.

See also: https://github.com/AdrianLC/sublime-text-virtualenv/pull/23

0 Likes