如图,环境为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]