无法在Windows上安装python lxml(和libxml2)
发布时间:2020-12-14 04:21:08 所属栏目:Windows 来源:网络整理
导读:我正在尝试在 Windows上安装lxml(pip install lxml)但我一直收到以下错误: *****Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?****************************************************************************Comman
我正在尝试在
Windows上安装lxml(pip install lxml)但我一直收到以下错误:
***** Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed? **************************************************************************** Command "C:Python34python.exe -c "import setuptools,tokenize;__file__='C:Us ersmemeAppDataLocalTemppip-build-m_doxfajlxmlsetup.py';exec(comp ile(getattr(tokenize,'open',open)(__file__).read().replace('rn','n'),__fi le__,'exec'))" install --record C:UsersmemeAppDataLocalTemppip-ekkhc0id -recordinstall-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:UsersmemeAppDataLocalTemppip-build-m_doxfajlxml 我试图从这里(ftp://ftp.zlatkovic.com/libxml/)下载Windows的二进制文件并将它们添加到路径但它似乎没有帮助. 尝试使用以下错误日志安装时,手动下载lxml wheel(http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml for cp34)文件也会失败: Exception: Traceback (most recent call last): File "C:Python34libsite-packagespipbasecommand.py",line 211,in main status = self.run(options,args) File "C:Python34libsite-packagespipcommandsinstall.py",line 311,in run root=options.root_path,File "C:Python34libsite-packagespipreqreq_set.py",line 646,in install **kwargs File "C:Python34libsite-packagespipreqreq_install.py",line 803,in install self.move_wheel_files(self.source_dir,root=root) File "C:Python34libsite-packagespipreqreq_install.py",line 998,in move_wheel_files isolated=self.isolated,File "C:Python34libsite-packagespipwheel.py",line 242,in move_wheel_files name,user=user,home=home,root=root,isolated=isolated File "C:Python34libsite-packagespiplocations.py",line 182,in distutils_scheme d.parse_config_files() File "C:Python34libdistutilsdist.py",line 394,in parse_config_files parser.read(filename) File "C:Python34libconfigparser.py",line 672,in read self._read(fp,filename) File "C:Python34libconfigparser.py",line 993,in _read for lineno,line in enumerate(fp,start=1): File "C:Python34libencodingscp1250.py",line 23,in decode return codecs.charmap_decode(input,self.errors,decoding_table)[0] UnicodeDecodeError: 'charmap' codec can't decode byte 0x88 in position 2193: character maps to <undefined> 我在x64 win7机器上使用python34 32bit.
您可以尝试从
here开始的二进制文件. 首先做pip安装轮然后pip install< filename.whl>安装下载的二进制文件.
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |