In MacOS, if Scrapy package is installed using pip, the following warning maybe generated when trying to run scrapy:

Solution 1

This is because cryptography package needs pyOpenSSL. If the openssl is installed using MacPort, the cryptography package need to have correct location flag for openssl library:

Now, reinstall the cryptography package using pip:

Solution 2

Another simple way to solve this problem is to install cryptography package using MacPort as well: