安装importlib报错问题

如图,环境为Mac BigSur,使用下载的Python2.7 3.6 3.7 3.8 3.9 均出现同样报错(pip&pip3),未解决,在某次巧合下成功过,不可复现。别的Windows环境都可以顺利安装,怀疑OS兼容性问题。

拷到的zip下setup.py安装报同样错误,其readme表示它是某库为Py2.7的实现,且将终止维护,鉴于多次尝试不同版本Python,排除Python版本问题。

 

======================================================================================================

Purpose
========

This package contains the code from importlib as found in Python 2.7. It is
provided so that people who wish to use ``importlib.import_module()`` with a
version of Python prior to 2.7 or in 3.0 have the function readily available.
The code in no way deviates from what can be found in the Python 2.7 standard
library.

For documentation, see the `importlib docs`_ for Python 2.7.

.. _importlib docs: http://docs.python.org/2.7/library/importlib.html


Notice about maintenance
========================

Due to the fact that this project is only applicable to versions of Python that
are no `longer supported <http://cpython-devguide.readthedocs.io/en/latest/#status-of-python-branches>`_,
there will be no further maintenance of this project. Since the code included
in this project is simply copied from Python 2.7 itself, if you need updated
fixes you can copy the files manually on your own.
 

========================================================================================================

 

 

[Unsolved]

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值