码迷,mamicode.com
首页 > 其他好文 > 详细

Fastdfs客户端ModuleNotFoundError: No module named 'mutagen._compat'问题

时间:2020-07-22 20:44:33      阅读:160      评论:0      收藏:0      [点我收藏+]

标签: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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!