Fastdfs客户端ModuleNotFoundError: No module named 'mutagen._compat'问题
Posted sewen-h
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Fastdfs客户端ModuleNotFoundError: No module named 'mutagen._compat'问题相关的知识,希望对你有一定的参考价值。
(env) D:python_learnmeiduo_projectmeiduo_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_learnmeiduo_projectenvlibsite-packagesfdfs_clientclient.py", line 11, in <module> from fdfs_client.tracker_client import * File "D:python_learnmeiduo_projectenvlibsite-packagesfdfs_client racker_client.py", line 17, in <module> from fdfs_client.utils import * File "D:python_learnmeiduo_projectenvlibsite-packagesfdfs_clientutils.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'问题的主要内容,如果未能解决你的问题,请参考以下文章