Search code examples
pythonparsingpsd

How to use psd-tools with python


I am trying to parse psd files and I found these tool Psd-Tools. Just so you know, I am new into the python environment.

I have followed the following steps and everything went well:

pip install psd-tools
pip install docopt
pip install Pillow
pip install packbits

I can see them when I write pip freeze. But I can't see any of these modules in python with this command:

>>> help('modules')

Obviously, when I try to use it, I get this error:

>>> from psd_tools import PSDImage
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named psd_tools

I have python-2.7.3 and python3-3.3.0 installed on my mac. Whether I launch python or python3, none of them find the psd_tools module.

So my guess was that the module has a different name, but none of these seems to work "psd-tools" 'psd-tools' psd\-tools.

Maybe I missed a step with pip? Or the module name has changed, then how can I see it ? Did anyone already use Psd-Tools?


Solution

  • Try to use install it from the source, from the GitHub repository of the project.