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 directoryCheck the log at /home/zcx/.cache/pre-commit/pre-commit.log
解决办法:
sudo apt install libpython-2.7
本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!
