I\'m having an issue where packages installed via setuptools to python anaconda have shebangs rewritten to the wrong location.
I have installed python anaconda and setup
I finally figured out what has been causing all my issues getting python and dependencies properly installed:
Whenever sudo
is invoked before an executable, in Debian the $PATH variable is automatically changed to a secure path lookup. Here is a demonstration:
grant@DevBox2:/opt/content-analysis$ sudo sh
# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
versus
grant@DevBox2:/opt/content-analysis$ sh
$ echo $PATH
/opt/anaconda2/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
So, when sudo is invoked prior to sudo python setup.py
the install is reverting back to the default python.
See this post for discussion