Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to import lib tiff after installing Anaconda on Mac OS X 10.9.2

I have developed some software using Python under Windows 7.

I have given it to a colleague to run on a Mac (OS X 10.9.2). I have never used a Mac and am having trouble helping them to get started. I have downloaded and installed Anaconda 1.9.2 on the Mac. According to the continuum documentation, libtiff is included, but when I run my python file using the Spyder IDE I get the following error when it tries to import libtiff:

ImportError: No module named libtiff.

Following one of the answers on Stack Ooverflow, I tried:

conda install libtiff

This runs and returns:

All requested packages already installed.

However on Windows 7 I can see a libtiff folder under \python27\lib\site-packages. On the Mac there is no libtiff folder under /lib/python2.7/site-packages.

Can anyone tell me what I am missing?

like image 577
user3674400 Avatar asked Dec 31 '25 05:12

user3674400


1 Answers

This question is answered here:

Installing Python modules with Anaconda or Canopy

If pip install libtiff does not work, you can download the source for PyLibTiff as directed at https://code.google.com/p/pylibtiff/source/checkout and run setup.py with whichever interpreter you would like for PyLibTiff to be installed to.

Also, you do not have to have the the C libraries that Anaconda installs installed for PyLibTiff to work if you have libtiff libraries installed elsewhere.

like image 79
forty_two Avatar answered Jan 05 '26 04:01

forty_two



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!