TaleLin / lin-cms-flask

🎀A simple and practical CMS implememted by Flask
http://doc.cms.talelin.com/
Other
832 stars 216 forks source link

运行python starter.py命令行时报错:ModuleNotFoundError: No module named 'Crypto' #100

Closed qiufeihong2018 closed 3 years ago

qiufeihong2018 commented 4 years ago

请详细描述您对本项目的任何问题,我们会在第一时间查阅和解决。 依赖已安装 D:\lin-cms-flask-master\lin-cms-flask-master> python starter.py Traceback (most recent call last): File "starter.py", line 8, in <module> app = create_app(environment='development') File "D:\lin-cms-flask-master\lin-cms-flask-master\app\app.py", line 79, in create_app Lin(app) File "C:\Users\qiufeihong\AppData\Local\Programs\Python\Python37-32\lib\site-packages\lin\core.py", line 132, in __init__ self.init_app(app, group_model, user_model, auth_model, create_all, mount, handle, json_encoder, logger) File "C:\Users\qiufeihong\AppData\Local\Programs\Python\Python37-32\lib\site-packages\lin\core.py", line 164, in init_app auth_model) File "C:\Users\qiufeihong\AppData\Local\Programs\Python\Python37-32\lib\site-packages\lin\core.py", line 239, in __init__ self.loader: Loader = Loader(plugin_path) File "C:\Users\qiufeihong\AppData\Local\Programs\Python\Python37-32\lib\site-packages\lin\loader.py", line 26, in __init__ self.load_plugins() File "C:\Users\qiufeihong\AppData\Local\Programs\Python\Python37-32\lib\site-packages\lin\loader.py", line 34, in load_plugins path and self._load_plugin(f'{path}.app.__init__', name) File "C:\Users\qiufeihong\AppData\Local\Programs\Python\Python37-32\lib\site-packages\lin\loader.py", line 43, in _load_plugin mod = import_module(path) File "C:\Users\qiufeihong\AppData\Local\Programs\Python\Python37-32\lib\importlib\__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1006, in _gcd_import File "<frozen importlib._bootstrap>", line 983, in _find_and_load File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "<frozen importlib._bootstrap>", line 1006, in _gcd_import File "<frozen importlib._bootstrap>", line 983, in _find_and_load File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 677, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 728, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "D:\lin-cms-flask-master\lin-cms-flask-master\app\plugins\oss\app\__init__.py", line 1, in <module> from .controller import api File "D:\lin-cms-flask-master\lin-cms-flask-master\app\plugins\oss\app\controller.py", line 4, in <module> from .oss import upload_image_bytes File "D:\lin-cms-flask-master\lin-cms-flask-master\app\plugins\oss\app\oss.py", line 1, in <module> import oss2 File "C:\Users\qiufeihong\AppData\Local\Programs\Python\Python37-32\lib\site-packages\oss2\__init__.py", line 3, in <module> from . import models, exceptions File "C:\Users\qiufeihong\AppData\Local\Programs\Python\Python37-32\lib\site-packages\oss2\models.py", line 10, in <module> from .utils import http_to_unixtime, make_progress_adapter, make_crc_adapter File "C:\Users\qiufeihong\AppData\Local\Programs\Python\Python37-32\lib\site-packages\oss2\utils.py", line 30, in <module> from Crypto.Cipher import AES ModuleNotFoundError: No module named 'Crypto'

smoryan commented 4 years ago

ModuleNotFoundError: No module named 'Crypto',提示缺Crypto 尝试一下pip install crypto 或者百度ModuleNotFoundError: No module named 'Crypto',看看还有什么方案解决