无法加载在windows库中加载libarchive时出错:[WinError 126]找不到指定的模块

2024-09-30 12:29:13 发布

您现在位置:Python中文网/ 问答频道 /正文

我是python的初学者,尝试在windows1064位笔记本电脑上安装Libarchive,使用python3.7时出现以下错误

$ pip install libarchive
Collecting libarchive
Using cached https://files.pythonhosted.org/packages/bf/d4/26f5c9835d4d648e4f22b5fb91288457698e928aaf9d4ab7eff405b7ef03/libarchive-0.4.7.tar.gz

Requirement already satisfied: nose in c:\users\jyo27\appdata\local\programs\python\python37\lib\site-packages (from libarchive) (1.3.7)

Installing collected packages: libarchive

Running setup.py install for libarchive: started

Running setup.py install for libarchive: finished with status 'error'

ERROR: Command errored out with exit status 1:
command: 'c:\users\jyo27\appdata\local\programs\python\python37\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\jyo27\AppData\Local\Temp\pip-install-9ria1jtc\libarchive\setup.py'"'"'; file='"'"'C:\Users\jyo27\AppData\Local\Temp\pip-install-9ria1jtc\libarchive\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\jyo27\AppData\Local\Temp\pip-record-qcjbgrm0\install-record.txt' --single-version-externally-managed --compile
cwd: C:\Users\jyo27\AppData\Local\Temp\pip-install-9ria1jtc\libarchive

Complete output (4 lines):

running install

error: [WinError 126] The specified module could not be found
Verifying that the library is accessible.
Library can not be loaded: [WinError 126] The specified module could not be found
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\jyo27\appdata\local\programs\python\python37\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\jyo27\AppData\Local\Temp\pip-install-9ria1jtc\libarchive\setup.py'"'"'; file='"'"'C:\Users\jyo27\AppData\Local\Temp\pip-install-9ria1jtc\libarchive\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\jyo27\AppData\Local\Temp\pip-record-qcjbgrm0\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.

Tags: installpippylocalsyssetupopenrecord

热门问题