Python icon indicating copy to clipboard operation
Python copied to clipboard

it seems lt only applies the system python

Open kenny-evitt opened this issue 9 years ago • 3 comments

Copied from the original comment on LightTable/LightTable#1734:

Hi,

I use pyenv to manage my python, and I found that it seems different between my terminal python and lt python.

lt use /bin/python, is it right? Could I customize the python path?

kenny-evitt avatar Jan 06 '16 20:01 kenny-evitt

@lufeihaidao @yasirs From this entry in a recent thread on the Light Table forum, it was suggested that you specify the Python executable by adding a line similar to the following to your user.behaviors file in Light Table:

[:app :lt.plugins.python/python-exe "c:\\Python27\\python.exe"]

kenny-evitt avatar Jan 06 '16 20:01 kenny-evitt

My question would be did you start LT from the terminal where an active virtualenv was? LT should then open and use those variables.

so if on linux I am ubuntu create an alias to the lighttable folder mine i moved to opt put this in .bashrc

alias light='/opt/lighttable/LightTable'

then start with 'light' from within the virtualenv

MortalCatalyst avatar Jan 08 '16 08:01 MortalCatalyst

@lufeihaidao @yasirs See the comment by @MortalCatalyst for something to try (that seems much more informed about Python).

kenny-evitt avatar Jan 09 '16 19:01 kenny-evitt