我正在尝试安装需要odoo的xml安全软件包,即XMLSEC,在安装时会出现以下错误:
----------------------------------------
Failed building wheel for xmlsec
Running setup.py clean for xmlsec
Failed to build xmlsec
Installing collected packages: xmlsec
Running setup.py install for xmlsec ... error
Complete output from command c:\users\rafaelc\documents\test\scripts\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\rafaelc\\appdata\\local\\
temp\\pip-install-edbj6y\\xmlsec\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'e
xec'))" install --record c:\users\rafaelc\appdata\local\temp\pip-record-jw3dvz\install-record.txt --single-version-externally-managed --compile --install-headers c:\
users\rafaelc\documents\test\include\site\python2.7\xmlsec:
running install
running build
running build_ext
Retrieving "https://ci.appveyor.com/api/buildjobs/7q4nvmkdnu05dul6/artifacts/iconv-1.14.vs2008.win64.zip" to "build/extra\iconv-1.14.vs2008.win64.zip"
Unpacking iconv-1.14.vs2008.win64.zip into build/extra
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\users\rafaelc\appdata\local\temp\pip-install-edbj6y\xmlsec\setup.py", line 60, in <module>
'Topic :: Text Processing :: Markup :: XML'
File "c:\users\rafaelc\documents\test\lib\site-packages\setuptools\__init__.py", line 131, in setup
return distutils.core.setup(**attrs)
File "c:\python27\Lib\distutils\core.py", line 151, in setup
dist.run_commands()
File "c:\python27\Lib\distutils\dist.py", line 953, in run_commands
self.run_command(cmd)
File "c:\python27\Lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "c:\users\rafaelc\documents\test\lib\site-packages\setuptools\command\install.py", line 61, in run
return orig.install.run(self)
File "c:\python27\Lib\distutils\command\install.py", line 563, in run
self.run_command('build')
File "c:\python27\Lib\distutils\cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "c:\python27\Lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "c:\python27\Lib\distutils\command\build.py", line 127, in run
self.run_command(cmd_name)
File "c:\python27\Lib\distutils\cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "c:\python27\Lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "c:\users\rafaelc\appdata\local\temp\pip-install-edbj6y\xmlsec\setup.py", line 11, in run
self.patch_options()
File "c:\users\rafaelc\appdata\local\temp\pip-install-edbj6y\xmlsec\setup.py", line 16, in patch_options
ext.define_macros.extend(xmlsec_setupinfo.define_macros())
File "xmlsec_setupinfo.py", line 48, in define_macros
macros.extend(xmlsec_config()['define_macros'])
File "xmlsec_setupinfo.py", line 111, in xmlsec_config
__XMLSEC_CONFIG = load_xmlsec1_config()
File "xmlsec_setupinfo.py", line 158, in load_xmlsec1_config
OPTION_DOWNLOAD_DIR, config['include_dirs'], config['library_dirs']
File "xmlsec_extra.py", line 15, in get_prebuilt_libs
libs = download_and_extract_windows_binaries(download_dir)
File "xmlsec_extra.py", line 67, in download_and_extract_windows_binaries
libs[ln] = unpack_zipfile(destfile, destdir)
File "xmlsec_extra.py", line 94, in unpack_zipfile
f = zipfile.ZipFile(zipfn)
File "c:\python27\Lib\zipfile.py", line 770, in __init__
self._RealGetContents()
File "c:\python27\Lib\zipfile.py", line 811, in _RealGetContents
raise BadZipfile, "File is not a zip file"
zipfile.BadZipfile: File is not a zip file
----------------------------------------
Command "c:\users\rafaelc\documents\test\scripts\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\rafaelc\\appdata\\local\\temp\\pip-install-edbj6y
\\xmlsec\\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\rafaelc\appdata\local\temp\pip-record-jw3dvz\install-record.txt --single-version-externally-managed --compile --install-headers c:\users\rafaelc\documents\
test\include\site\python2.7\xmlsec" failed with error code 1 in c:\users\rafaelc\appdata\local\temp\pip-install-edbj6y\xmlsec\
据我所知,出于安全原因,需要在xml文件中使用一个软件包,我将安装一个需要此库的模块并给出错误消息