python3.6.7base interpreter,从3.6更新后,无法安装python3.7的pip

我最近尝试按照下面的说明将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'

我怎么解决这个问题?在

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值