我最近尝试按照下面的说明将python 3.6升级到pyhon 3.7:
现在,我正在尝试为python3.7安装pip
python3.7 -m pip install pip
我得到一个错误:OFPEPFE
Traceback (most recent call last):
File "/usr/lib/python3.7/runpy.py", line 183, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/usr/lib/python3.7/runpy.py", line 142, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "/usr/lib/python3.7/runpy.py", line 109, in _get_module_details
__import__(pkg_name)
File "/usr/lib/python3/dist-packages/pip/__init__.py", line 22, in
from pip._vendor.requests.packages.urllib3.exceptions import DependencyWarning
File "/usr/lib/python3/dist-packages/pip/_vendor/__init__.py", line 61, in
sys.path[:] = glob.glob(os.path.join(WHEEL_DIR, "*.whl")) + sys.path
AttributeError: module 'glob' has no attribute 'glob'
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook
from apport.fileutils import likely_packaged, get_recent_crashes
File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in
from apport.report import Report
File "/usr/lib/python3/dist-packages/apport/report.py", line 21, in
from urllib.request import urlopen
File "/usr/lib/python3.7/urllib/request.py", line 88, in
import http.client
File "/usr/lib/python3.7/http/client.py", line 71, in
import email.parser
ModuleNotFoundError: No module named 'email.parser'; 'email' is not a package
Original exception was:
Traceback (most recent call last):
File "/usr/lib/python3.7/runpy.py", line 183, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/usr/lib/python3.7/runpy.py", line 142, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "/usr/lib/python3.7/runpy.py", line 109, in _get_module_details
__import__(pkg_name)
File "/usr/lib/python3/dist-packages/pip/__init__.py", line 22, in
from pip._vendor.requests.packages.urllib3.exceptions import DependencyWarning
File "/usr/lib/python3/dist-packages/pip/_vendor/__init__.py", line 61, in
sys.path[:] = glob.glob(os.path.join(WHEEL_DIR, "*.whl")) + sys.path
AttributeError: module 'glob' has no attribute 'glob'
我怎么解决这个问题?在