没有名为Crypto.Cipher Open EdX的模块

问题描述

试图将此代码导入我们的edx网站encrypt data in python,但是它需要一个 pycryptodome 软件包。尝试使用以下方法安装它:

pip install pycryptodome

但是每次我打电话仍然显示错误

from Crypto.Cipher import AES

WARNING:enterprise.utils:Could not import Registry from third_party_auth.provider
WARNING:enterprise.utils:cannot import name EnterpriseCustomerUser
Traceback (most recent call last):
  File "./manage.py",line 120,in <module>
    startup.run()
  File "/openedx/edx-platform/cms/startup.py",line 19,in run
    django.setup()
  File "/openedx/venv/local/lib/python2.7/site-packages/django/__init__.py",line 27,in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/openedx/venv/local/lib/python2.7/site-packages/django/apps/registry.py",line 116,in populate
    app_config.ready()
  File "/openedx/edx-platform/cms/djangoapps/contentstore/apps.py",line 22,in ready
    from .signals import handlers  # pylint: disable=unused-variable
  File "/openedx/edx-platform/cms/djangoapps/contentstore/signals/handlers.py",line 12,in <module>
    from contentstore.proctoring import register_special_exams
  File "/openedx/edx-platform/cms/djangoapps/contentstore/proctoring.py",in <module>
    from contentstore.views.helpers import is_item_in_course_tree
  File "/openedx/edx-platform/cms/djangoapps/contentstore/views/__init__.py",line 9,in <module>
    from .course import *
  File "/openedx/edx-platform/cms/djangoapps/contentstore/views/course.py",line 101,in <module>
    from Crypto.Cipher import AES
ImportError: No module named Crypto.Cipher

很抱歉,我不是一个真正的python / django / open edx开发人员,只是被要求支持该项目,并做了一些沉重的研究,但仍然不轻松。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...