import pygame
pip install pygame
in terminal, I get: python --version
in the command shell and read the message you've got, like:python
will start Python 3.x and on others will start Python 2.x and python3
will start Python 3.x. Similar can happen with pip/pip3
also. If you have a pip3
command or simlink it will handle packages for Python 3.x and so on (See my note below).Then you will know, which environment you're trying to install the given package.Sublime Jedi Plugin | Branch | Jedi version | Python 2.6.x | Python 2.7.x | Python >3.3 | Python 3.3 | Sublime Text 2 | Sublime Text 3 |
---|---|---|---|---|---|---|---|---|
>= 0.14.0 | master | >=0.13.2 | ||||||
>= 0.12.0 | master | >=0.12.0 | ||||||
< 0.12.0 | st2 | 0.11.1 |
ctrl+shift+p
)package control install
and select command Package Control: Install Package
Jedi
and select Jedi - Python autocompletion
PATH
.Also you can set different interpreter for each Sublime Project.<project name>.sublime-project
python_interpreter
and python_virtualen
at the same time, no problem with that. If you configure python_interpreter
alone, the python_virtualen
will be inferred so it will be 2 directories above python_interpreter
. If you configure python_virtualen
alone, the python_interpreter
will be always where ever python_virtualen
plus 'bin/python'
. If you don't configure any of this then the default Python environment of your system will be used.'python_package_paths'
to search for modules and files. In other words, each item in 'python_package_paths'
list is a directory with extra packages and modules, not a direct path to package or module.enable_in_sublime_repl: true
in User/sublime_jedi.sublime-setting
or in your project setting.only_complete_after_regex
setting..
character but don't want to affect auto-completion from other packages, insert the following into User/sublime_jedi.sublime-settings
:'auto_complete_selector': '-',
from User/Python.sublime-settings
, so that the rest of your packages still trigger auto-completion after every keystroke.CTRL+SHIFT+G
CTRL + LeftMouseButton
by themself in this way:follow_imports
. If this setting is True
(default behavior) you will travel directly to where the term was defined or declared. If you want to travel back step by step the import path of the term then set this to False
.ALT+SHIFT+F
.highlight_usages_on_select
: highlights usages of symbol in file when symbol is selected (default false
)highlight_usages_color
: color for highlighted symbols (default 'region.bluish'
)'region.redish', 'region.orangish', 'region.yellowish', 'region.greenish', 'region.bluish', 'region.purplish', 'region.pinkish', 'region.blackish'
CTRL+ALT+D
.Packages/User/mdpopups.css
is required to define your own style..jedi
selector as displayed in the following example.sublime_jedi_signature
.print()
-ing to sublime console.To make logging more usefull I'd suggest ST Plugin Logging Control, it allows stream logs into file/console/etc.On github page you can find great documenation how you can use it.'Logging: Enable logging'
command to enable logging.import XXXX
does not works.Completion Rules.tmPreferences
file where defined that completion should be cancelled after a keyword (def, class, import & etc.).Completion Rules.tmPreferences
file for ST2, but ST3 ignores it.Cache/Python/Completion Rules.tmPreferences.cache
User/Packages/Python/
PackageResourceViewer: Open Resource
python
and select Python packageCompletion Rules.tmPreferences
import
from the regexp.