Comments (11)
or downgrade back to sublime text 3, and it works again:
in ubuntu check available versions and install a version 3x (in my case 3211):
apt-cache policy sublime-text
sudo apt-get install sublime-text=3211
from sublime-text-virtualenv.
By default on macOS the package is installed to:
~/Library/Application\ Support/Sublime\ Text\ 3/Installed\
Packages/Virtualenv.sublime-package
But you can also get to where your packages are installed (on any OS) via
ST by going to:
Sublime Text menu --> Preferences --> Browse Packages
Since the package is a zip file (even though it does not have a zip extension) you can just append the package with the new file.
Always beware of copy/pasting code in your terminal but this is what worked
for me:
cd /var/tmp
echo "3.8" > .python-version
zip -u ~/Library/Application\ Support/Sublime\ Text\ 3/Installed\
Packages/Virtualenv.sublime-package .python-version
rm .python-version
You can verify its in the package by running the below command to list the package contents
unzip -l ~/Library/Application\ Support/Sublime\ Text\ 3/Installed\ Packages/Virtualenv.sublime-package
from sublime-text-virtualenv.
or downgrade back to sublime text 3, and it works again:
in ubuntu check available versions and install a version 3x (in my case 3211):apt-cache policy sublime-text sudo apt-get install sublime-text=3211
When I do that, after launching sublime-text i'm getting entirely black window, no menu, or anything.
To get this package working in ST4 I unzipped the package, created a file in the root of this package called .python-version with the contents of 3.8, and zipped it up
That, however, worked. Thank you.
from sublime-text-virtualenv.
sublime-text-virtualenv/commands.py
Line 11 in e05905a
Tried with ST4 and got the following in the console
Packages/Virtualenv.sublime-package/commands.py", line 126, in <module> AttributeError: 'module' object has no attribute 'exec'
To get this package working in ST4 I unzipped the package, created a file in the root of this package called .python-version with the contents of 3.8, and zipped it up. Now working and backwards compatible with ST2 and ST3. Will submit a PR.
Can you be more specific espacially for the paths' of the files.
from sublime-text-virtualenv.
Thanks mcoliver. It might be little bit different things goes in windows iOS. So I uninstalled build 4xxx and installed 3211. It worked for me. Do not forget to rename /Program Files/Sublime text 3/ to something else like Sublime text 3_old after uninstalling process. Niceday
from sublime-text-virtualenv.
In ubuntu the folder is "~/.config/sublime-text-3/Installed Packages/" and the solution from @mcoliver works well! Better than keeping the old version!
from sublime-text-virtualenv.
For those who wants to know which work around actually worked, please try @mcoliver's solution.
from sublime-text-virtualenv.
Doesn't work for me at all, even python3.10
from sublime-text-virtualenv.
Doesn't work for me at all, even python3.10
I tried to write "3.9" in .python-version but it didn't work but "3.8" worked like a charm. Just try it.
from sublime-text-virtualenv.
Doesn't work for me at all, even python3.10
I tried to write "3.9" in .python-version but it didn't work but "3.8" worked like a charm. Just try it.
Thats because only 3.8 is accepted - https://www.sublimetext.com/docs/api_environments.html#selecting-the-python-version
from sublime-text-virtualenv.
Thx everyone,
a .python-version with 3.8
as only content directly in the root of the .sublime-package archive works like a charm.
@mcoliver code to produce that uses quotation marks that would, at least on windows, be piped into the file which will be invalid. You want a plain 3.8. Unnecessary /n/r are fine tho
echo 3.8 > .python-version
from sublime-text-virtualenv.
Related Issues (17)
- Doesn't load correct python on Mac OS X HOT 20
- It seems not working on Mac OS HOT 3
- The reason of calling virtualenv from ipy_repl.py? HOT 1
- Activating a virtual environment in Windows doesn't change the build system
- How to change the default encoding setting "US-ASCII" to "UTF-8" when selecting build system with "Python + Virtualenv" ? HOT 1
- No Virtualenv upon ST3 upgrade build 3176 HOT 1
- how to automatically enter into virtualenv-python2.7 without manually activate?Thanks HOT 1
- UTF-8 Local Issue on Mac
- Does not work with virtualenvs originating in pipenv?
- Can't find egg-linked development module HOT 2
- Run build with Virtualenv build, and with terminus instead of the console
- Support virtualenv inside project directories
- cancel build HOT 10
- ImportError with locally defined modules
- Issue executing postactivate script when using a virtualenv HOT 1
- Lists duplicate or more venvs when activating
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sublime-text-virtualenv.