Sen2Three installation problem related to anaconda


Dear fellow steppers,

Today I tried to install the latest sen2three package from the step repository. However, there seems to be an issue with the PREFIX parameter in the installation script. The issue is that it goes to the default python library, instead of the library inside of anaconda.

This is the error:
File “”, line 210, in
copyfile(libOpj2Source, libOpj2Target)
File “/usr/lib/python2.7/”, line 82, in copyfile
with open(src, ‘rb’) as fsrc:
IOError: [Errno 2] No such file or directory: ‘/usr/lib/python2.7/site-packages/sen2three-1.0.1-py2.7.egg/sen2three/build/lib.linux-x86_64-2.7/’

How can I install the script through anaconda from bash script?

PS - which python displays Anaconda correctly!!


After a period of intense struggling I found out that sudo overwrites environmental settings that point to the anaconda bin. Therefore, the python prefix was used instead. Seems trivial, but yeah…