python - Pipenv libarchive 错误 : no such file or directory: b'liblibarchive. a'

标签 python pipenv libarchive

使用 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/

相关文章:

c - 使用未声明的标识符 'ENOMEM'

windows - 在 Windows Server 2016 上使用 native tar PowerShell cmdlet

python - 努力理解 Python 需要虚拟环境的原因

python - 如何有效地创建嵌套循环并附加所有循环的输出(作为多维数组)?

python - Pipfile哈希创建

python - 'pipenv install' 失败,TypeError : must be str, not type

python - 目标 WSGI 脚本无法作为 Python 模块加载到 Django 应用程序中

python - 如何从另一个列表创建嵌套列表?

python - 在CMake命令中调用pipenv ModuleNotFoundError