简体   繁体   中英

Can't import passlib into python3

Trying to import passlib into python3 and it fails:

$ pip freeze | grep lib
passlib==1.6.5

$ python3
Python 3.4.2 (default, Oct  8 2014, 10:45:20)

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

pip将为python 2安装一个库。如果你也想为python 3安装它,你必须单独安装它:

$ python3 -m pip install passlib

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