使用 pipelinev 安装 libarchive 时返回文件/目录未找到错误。
pip 文件包含 libarchive==0.4.7
包。显示错误的日志:
...
[pipenv.exceptions.InstallError]: Verifying that the library is accessible.
[pipenv.exceptions.InstallError]: Library can not be loaded: [Errno 2] No such file or directory: b'liblibarchive.a'
[pipenv.exceptions.InstallError]: error: [Errno 2] No such file or directory: b'liblibarchive.a'
[pipenv.exceptions.InstallError]: ----------------------------------------
[pipenv.exceptions.InstallError]: ERROR: Failed building wheel for libarchive
...
我在 Linux 上使用 Python3.8。
最佳答案
该文件可能已重命名。创建指向重命名文件的符号链接(symbolic link)修复了该问题:
cd /usr/lib/x86_64-linux-gnu/
ln -s -f libarchive.a liblibarchive.a
关于python - Pipenv libarchive 错误 : no such file or directory: b'liblibarchive. a',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68910023/