ModuleNotFoundError:没有名为“ email._encoded_words”的模块

时间:2020-10-21 15:46:52

标签: python error-handling pygame

我无法安装pygame,这给我一个错误,我试图在VSC(MacOS)终端中使用“ python3 -m pip install -U pygame --user”。你们有什么主意吗?

 Traceback (most recent call last):
 File "/Users/sam/anaconda3/bin/pip", line 7, in <module>
 from pip._internal import main
 File "/Users/sam/anaconda3/lib/python3.7/site- 
 packages/pip/_internal/__init__.py", line 19, in 
 <module>
 from pip._vendor.urllib3.exceptions import 
 DependencyWarning
 File "/Users/sam/anaconda3/lib/python3.7/site- 
 packages/pip/_vendor/urllib3/__init__.py", line 8, in 
 <module>
 from .connectionpool import (
 File "/Users/sam/anaconda3/lib/python3.7/site- 
 packages/pip/_vendor/urllib3/connectionpool.py", line 
 11, in <module>
 from .exceptions import (
 File "/Users/sam/anaconda3/lib/python3.7/site- 
 packages/pip/_vendor/urllib3/exceptions.py", line 2, in 
 <module>
from .packages.six.moves.http_client import (
File "/Users/sam/anaconda3/lib/python3.7/site- 
packages/pip/_vendor/urllib3/packages/six.py", line 203, 
in load_module
mod = mod._resolve()
File "/Users/sam/anaconda3/lib/python3.7/site- 
packages/pip/_vendor/urllib3/packages/six.py", line 115, 
in _resolve
return _import_module(self.mod)
File "/Users/sam/anaconda3/lib/python3.7/site- 
packages/pip/_vendor/urllib3/packages/six.py", line 82, 
in _import_module
__import__(name)
File "/Users/sam/anaconda3/lib/python3.7/http/client.py", 
line 72, in <module>
import email.message
File 
"/Users/sam/anaconda3/lib/python3.7/email/message.py", 
line 19, in <module>
from email._encoded_words import decode_b

ModuleNotFoundError: No module named 
'email._encoded_words'

0 个答案:

没有答案