pre-commit install 时 CalledProcessError

报错示意:

An unexpected error has occurred: CalledProcessError: command: ('/home/zcx/.cache/pre-commit/reponIuoyY/py_env-python2.7/bin/python', u'/home/zcx/.cache/pre-commit/reponIuoyY/py_env-python2.7/bin/pip', 'install', '.')
return code: 127
expected return code: 0
stdout: (none)
stderr:
    /home/zcx/.cache/pre-commit/reponIuoyY/py_env-python2.7/bin/python: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory
    
Check the log at /home/zcx/.cache/pre-commit/pre-commit.log

解决办法:

sudo apt install libpython-2.7

你可能感兴趣的:(笔记,python,linux)