Dustin
Dustin

Reputation: 6307

Python - Crypto.Cipher/Pycrypto on Mac?

After a bit of googling around, I see this issue is pretty common but has no direct answers. Trying to use Pycrypto on my Mac 10.8.5. Installed it through Pip, Easy_install, and manually with setup.py yet when I try to import it, it says it can't find the module.

Anyone else have an issue like this?

Upvotes: 2

Views: 4671

Answers (2)

Dustin
Dustin

Reputation: 6307

For those having this issue on Mac, for something reason Pip, easy_install, and even doing it manually installs Crypto with a lowercase 'c' in to site-packages. By browsing in to site-packages and renaming 'crypto' to 'Crypto', it solves the issues with other libaries.

Upvotes: 7

Nafiul Islam
Nafiul Islam

Reputation: 82490

I've had this problem before, and this is because you probably have different versions of Python. So, in fact, the package is installed, but for a separate version. What you need to do is see which executable file is linked to when python or pip is called.

Upvotes: 1

Related Questions