ImportError:没有名为PBKDF2的模块

时间:2015-10-14 08:29:55

标签: python google-app-engine

尝试在谷歌应用引擎上的python中实现密码加密和解密。做了一些研究,并从thread我学到了PBKDF2。我已使用pip install pbkdf2安装了该模块,并已按照图例herehere下载了整个软件包。仍然在导入模块为from PBKDF2 import PBKDF2时,我仍然得到ImportError: No module named PBKDF2我有什么遗漏,我该如何解决这个问题?感谢。

1 个答案:

答案 0 :(得分:4)

PBKDF2文档似乎有误,您需要以小写形式引用该模块:

item_cafe_menu_dropdown_option.xml

更一般的提示,如果你正在使用pip,那么记住这个命令很有用:

<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" > <LinearLayout android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1"> <TextView android:layout_width="wrap_content" android:layout_height="22.0dip" android:id="@id/dropdown_option_name" /> </LinearLayout> <LinearLayout android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:orientation="horizontal" android:background="@drawable/layout_corners" android:id="@id/dropdown_option_selection_layout"> <TextView android:layout_width="wrap_content" android:layout_height="22.0dip" android:layout_marginTop="4.0dip" android:layout_weight="1.0" android:gravity="center" android:textSize="15.0dip" android:id="@id/dropdown_option_selected_option" /> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@mipmap/arrow_next_2"/> </LinearLayout> </LinearLayout>

这将列出程序包安装的所有文件及其基本位置。在处理包含命令行工具或编译扩展的包时,它特别有用。