标签:module ast edit erro com tags rac trace pack
(env) D:\python_learn\meiduo_project\meiduo_mall>python manage.py shell Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole) >>> from fdfs_client.client import Fdfs_client Traceback (most recent call last): File "<console>", line 1, in <module> File "D:\python_learn\meiduo_project\env\lib\site-packages\fdfs_client\client.py", line 11, in <module> from fdfs_client.tracker_client import * File "D:\python_learn\meiduo_project\env\lib\site-packages\fdfs_client\tracker_client.py", line 17, in <module> from fdfs_client.utils import * File "D:\python_learn\meiduo_project\env\lib\site-packages\fdfs_client\utils.py", line 8, in <module> from mutagen._compat import StringIO ModuleNotFoundError: No module named ‘mutagen._compat‘
安装成功客户端python包后,用shell运行导入客户端模块时出错;
查询到相应py文件内未发现_compat模块
重新专门去导入也无法导入,如下:
>>> from mutagen improt _compat File "<console>", line 1 from mutagen improt _compat ^ SyntaxError: invalid syntax >>> exit()
于是到mutagen的安装包内查找,发现原来_compat文件是在_senf目录下,于是修改导包路径,错误解决.
Fastdfs客户端ModuleNotFoundError: No module named 'mutagen._compat'问题
标签:module ast edit erro com tags rac trace pack
原文地址:https://www.cnblogs.com/sewen-H/p/13362598.html