简体   繁体   中英

ImportError: No module named PBKDF2

Trying to implement password encryption and decryption in python on google app engine. Made some research and from this thread i learned of PBKDF2 . i have installed the module using pip install pbkdf2 and have downloaded the entire package as illustrated here and here . Still when importing the module as from PBKDF2 import PBKDF2 , i still get ImportError: No module named PBKDF2 is there anything i am missing and how do i fix this? Thanks.

The PBKDF2 documentation seems to be wrong, you need to refer to the module in lowercase:

from pbkdf2 import PBKDF2

A more general tip, if you're working with pip it's useful to remember this command:

pip show -f <package>

This will list all the files installed by a package and their base location. It's specially useful when dealing with packages that include command line tools or compiled extensions.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM