信息
python:3.4.2
问题遇到的现象和发生背景
我想安装pylint,于是运行了python -m pip install pylint==2.0.0 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
谁知道,报了很多错误,网上一直找不到答案
用代码块功能插入代码,请勿粘贴截图
python -m pip install pylint==2.0.0 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
运行结果及报错内容
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... error
ERROR: Complete output from command 'D:\Python3.4\python.exe' 'D:\Python3.4\lib\site-packages\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel '\Temp\tmpawumvonc':
ERROR: Error in sitecustomize; set PYTHONVERBOSE for traceback:
SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xd3 in position 2: invalid continuation byte (sitecustomize.py, line 21)
DEPRECATION: Python 3.4 support has been deprecated. pip 19.1 will be the last one supporting it. Please upgrade your Python as Python 3.4 won't be maintained after March 2019 (cf PEP 429).
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)'),)': /simple/setuptools-scm/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)'),)': /simple/setuptools-scm/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)'),)': /simple/setuptools-scm/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)'),)': /simple/setuptools-scm/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)'),)': /simple/setuptools-scm/
ERROR: Could not find a version that satisfies the requirement setuptools_scm>=3.3.1 (from versions: none)
ERROR: No matching distribution found for setuptools_scm>=3.3.1
Error in sitecustomize; set PYTHONVERBOSE for traceback:
SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xd3 in position 2: invalid continuation byte (sitecustomize.py, line 21)
Traceback (most recent call last):
File "D:\Python3.4\lib\site-packages\setuptools\installer.py", line 128, in fetch_build_egg
subprocess.check_call(cmd)
File "D:\Python3.4\lib\subprocess.py", line 561, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['D:\\Python3.4\\python.exe', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '\\Temp\\tmpr3tmj0af', '--quiet', 'setuptools_scm>=3.3.1']' returned non-zero exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Python3.4\lib\site-packages\pip\_vendor\pep517\_in_process.py", line 207, in <module>
main()
File "D:\Python3.4\lib\site-packages\pip\_vendor\pep517\_in_process.py", line 197, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "D:\Python3.4\lib\site-packages\pip\_vendor\pep517\_in_process.py", line 69, in prepare_metadata_for_build_wheel
return hook(metadata_directory, config_settings)
File "D:\Python3.4\lib\site-packages\setuptools\build_meta.py", line 156, in prepare_metadata_for_build_wheel
self.run_setup()
File "D:\Python3.4\lib\site-packages\setuptools\build_meta.py", line 237, in run_setup
self).run_setup(setup_script=setup_script)
File "D:\Python3.4\lib\site-packages\setuptools\build_meta.py", line 142, in run_setup
exec(compile(code, __file__, 'exec'), locals())
File "setup.py", line 136, in <module>
for root, _, _ in os.walk('src')
File "D:\Python3.4\lib\site-packages\setuptools\__init__.py", line 144, in setup
_install_setup_requires(attrs)
File "D:\Python3.4\lib\site-packages\setuptools\__init__.py", line 139, in _install_setup_requires
dist.fetch_build_eggs(dist.setup_requires)
File "D:\Python3.4\lib\site-packages\setuptools\dist.py", line 721, in fetch_build_eggs
replace_conflicting=True,
File "D:\Python3.4\lib\site-packages\pkg_resources\__init__.py", line 782, in resolve
replace_conflicting=replace_conflicting
File "D:\Python3.4\lib\site-packages\pkg_resources\__init__.py", line 1065, in best_match
return self.obtain(req, installer)
File "D:\Python3.4\lib\site-packages\pkg_resources\__init__.py", line 1077, in obtain
return installer(requirement)
File "D:\Python3.4\lib\site-packages\setuptools\dist.py", line 777, in fetch_build_egg
return fetch_build_egg(self, req)
File "D:\Python3.4\lib\site-packages\setuptools\installer.py", line 130, in fetch_build_egg
raise DistutilsError(str(e))
distutils.errors.DistutilsError: Command '['D:\\Python3.4\\python.exe', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', 'Temp\\tmpr3tmj0af', '--quiet', 'setuptools_scm>=3.3.1']' returned non-zero exit status 1
----------------------------------------
ERROR: Command "'D:\Python3.4\python.exe' 'D:\Python3.4\lib\site-packages\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel '\Temp\tmpawumvonc'" failed with error code 1 in Temp\pip-install-y865cw5j\lazy-object-proxy
我的解答思路和尝试过的方法
尝试安装重新wheel,还是有这个错误
我想要达到的结果
成功安装pylint