sublimetext3 - Manage python packages in Sublime text 3 -


working ubuntu 14.04

how tell sublime text 3 , sublimerepl python packages?

from terminal, pip list returns list many python packages that:

numexpr (2.2.2) numpy (1.8.2) oauthlib (0.6.1) oneconf (0.3.7) openpyxl (2.2.5) pam (0.4.2) pandas (0.16.2) 

however, inside sublime text 3, on console:

>>> import openpyxl traceback (most recent call last):   file "<string>", line 1, in <module> importerror: no module named 'openpyxl'  >>> import pandas traceback (most recent call last):   file "<string>", line 1, in <module> importerror: no module named 'pandas'  >>> import numpy traceback (most recent call last):   file "<string>", line 1, in <module> importerror: no module named 'numpy' 

from sulbimerepl console:

python 3.3.6 (default, jan 28 2015, 17:27:09)  [gcc 4.8.2] on linux type "help", "copyright", "credits" or "license" more information. >>> import numpy traceback (most recent call last):   file "<stdin>", line 1, in <module> importerror: no module named 'numpy' >>> import pandas traceback (most recent call last):   file "<stdin>", line 1, in <module> importerror: no module named 'pandas' >>> import openpyxl traceback (most recent call last):   file "<stdin>", line 1, in <module> importerror: no module named 'openpyxl' 

so, assume needs set up.

you need point sublimerepl right interpreter.

add settings -> package settings -> sublimerepl -> settings - user

{     "default_extend_env": {"path": "{path}:/usr/lib/python2.7"} } 

Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -