Python
Python copied to clipboard
it seems lt only applies the system python
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?
@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"]
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
@lufeihaidao @yasirs See the comment by @MortalCatalyst for something to try (that seems much more informed about Python).