python-dev
包sudo apt install python-dev # 最好指定 python 版本,比如:python3.6-dev
pylint
包为较新的版本,要求 python>=3.5
,而当前系统 python
为 2.7.15
版本pylint
包pip install pylint==1.9.3.
python
包时依赖该包,由于是其他包指定该包的安装源,所以可能是因为安装源的问题。本人就是因为这个原因:Download error on https://pypi.python.org/simple/pytest-runner/: [Errno 0] Error -- Some packages may not be found!
pip install pytest-runner
如果系统默认源是报错的安装源,则可以考虑 pip -i URL pytest-runner
手动指定其他安装源或直接更换系统源,然后手动安装:
pip install pytest-runner