alibaba / alibaba.alicloud

GNU General Public License v3.0
228 stars 85 forks source link

python 3.6 安装报错 #282

Open ist0ne opened 4 years ago

ist0ne commented 4 years ago

Collecting importlib Downloading https://mirrors.aliyun.com/pypi/packages/31/77/3781f65cafe55480b56914def99022a5d2965a4bb269655c89ef2f1de3cd/importlib-1.0.4.zip (7.1 kB) ERROR: Command errored out with exit status 1: command: /usr/local/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-li_iqyxa/importlib/setup.py'"'"'; file='"'"'/tmp/pip-install-li_iqyxa/importlib/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-op221lle cwd: /tmp/pip-install-li_iqyxa/importlib/ Complete output (11 lines): Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python3.6/site-packages/setuptools/init.py", line 6, in import distutils.core File "/usr/local/lib/python3.6/distutils/core.py", line 16, in from distutils.dist import Distribution File "/usr/local/lib/python3.6/distutils/dist.py", line 19, in from distutils.util import check_environ, strtobool, rfc822_escape File "/usr/local/lib/python3.6/distutils/util.py", line 9, in import importlib.util ModuleNotFoundError: No module named 'importlib.util'

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

importlib从Python 3.1开始被导入到python内置函数中

ist0ne commented 4 years ago

安装新版本已解决。