Python 3.8.10 Ubuntu 20.04.3 LTS
导入 unasync 时出现错误,提示未找到模块。决定转到 python 并访问 help(),然后访问 modules,它会显示所有可用模块的列表并确认 unasync 可用。
然后我尝试了“modules unasync”并收到以下输出
help> modules unasync
Here is a list of modules whose name or summary contains 'unasync'.
If there are any, enter a module name to get more help.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.8/_sitebuiltins.py", line 103, in __call__
return pydoc.help(*args, **kwds)
File "/usr/lib/python3.8/pydoc.py", line 1918, in __call__
self.interact()
File "/usr/lib/python3.8/pydoc.py", line 1945, in interact
self.help(request)
File "/usr/lib/python3.8/pydoc.py", line 1964, in help
self.listmodules(request.split()[1])
File "/usr/lib/python3.8/pydoc.py", line 2100, in listmodules
apropos(key)
File "/usr/lib/python3.8/pydoc.py", line 2194, in apropos
ModuleScanner().run(callback, key, onerror=onerror)
File "/usr/lib/python3.8/pydoc.py", line 2155, in run
loader = spec.loader
AttributeError: 'NoneType' object has no attribute 'loader'
如有任何建议,我可以解决这一情况,不胜感激。
布赖恩