我已经读过,和的问题了。基本上,我使用的是conda环境,我想安装lxml。当我运行pip install lxml时,会收到一条包含Failed building wheel for lxml和error minimum required version of libxslt is 1.1.23的长错误消息。这使我相信,我需要将libxml2和libxslt安装到虚拟环境中(它们已经安装在外部环境的系统上)。
因此,对于Linux,我阅读了其中一个应该运行的链接答案:
apt-get install libxml2-dev libxslt-dev
我试着让它适应OSX和自制。在conda环境
使用Pycharm和PIP在python 3.6 64位中安装lxml 3.6.4有一些问题。
pip install lxml==3.6.4
ERROR: b"'xslt-config' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n"
** make sure the development packages of libxml2 and libxslt are installed **
安装libxml时
pip in
我遇到了libxml问题的依赖项,当使用python创建一个docker容器时,从ubuntu映像中安装依赖关系库:
# pull official base image
FROM python:3.8.0-alpine
# set work directory
WORKDIR /usr/src/app
# set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
FROM ubuntu:16.04
RUN apt-get update -y
RUN apt-get install g++
我已经用homebrew安装了libxml2和libxslt,但它不想安装libxml2-dev或libxslt-dev:Error: No available formula for libxml2-dev
我有pip,port,还有我能找到的所有东西。我甚至安装了Xcode命令行工具,但没有成功。在Mac10.10上安装libxml2-dev & libxslt-dev的方法是什么?
由于某些原因,我无法在旅行时在MacBook上安装诺基里。
这是gem install nokogiri的简短输出
Extracting libxml2-2.8.0.tar.gz into tmp/x86_64-apple-darwin12/ports/libxml2/2.8.0... OK
Running 'configure' for libxml2 2.8.0... OK
Running 'compile' for libxml2 2.8.0... OK
Running 'install' for libxml2 2.8.0... OK
A
我想安装Lxml,这样就可以安装Scrapy了。
当我今天更新我的Mac时,它不允许我重新安装lxml,我得到了以下错误:
In file included from src/lxml/lxml.etree.c:314:
/private/tmp/pip_build_root/lxml/src/lxml/includes/etree_defs.h:9:10: fatal error: 'libxml/xmlversion.h' file not found
#include "libxml/xmlversion.h"
^
1 error gen
我试图在OS (10.5.8)中安装RVM管理的Ruby1.8.7下的Nokogiri。
我得到了以下错误:
Building native extensions. This could take a while...
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.
/Users/user/.rvm/rubies/ruby-1.8.7-p352/bin/ruby extconf.rb
checking for libxml/parser.h... yes
我在centos6.7到python2.7.3上更新了python,并将新版本作为默认版本。然后我使用sudo yum install python-lxml安装python。它显示了
package python-lxml-2.2.3-1.1.el6.x86_64 has been installed and is the newest,there is nothing to do
但是,当我使用python (默认的2.7.3) python和import lxml时,当我使用老版本的python (如/usr/bin/python2.6和import lxml )时,会发生如下.Howe
我正试图在ubuntu上安装plone
我已经下载并解压了安装程序文件。当我输入:./install.sh standalone时,我得到以下消息:
Plone installation requires the development versions of libxml2 and libxslt.
libxml2 must be version 2.7.8 or greater; libxslt must be 1.1.26 or greater.
Ideally, you should install these as dev package libraries before runni
尝试安装libxslt-1.1.24,但在./configure过程中遇到错误,显示:
checking for libxml libraries >= 2.6.27... configure: error: Version 2.6.16 found. You need at least libxml2 2.6.27 for this version of libxslt
但是在/usr/local/include/libxml2中可以看到刚刚安装的libxml2-2.7.3
当使用./configure时,如何让libxslt链接到新的libxml2
我试图使用以下命令在Mac OSx 10.11上安装这个库:
sudo -H pip install lxml
当我不断收到这样的信息时:
#include "libxml/xpath.h"
^
1 error generated.
*********************************************************************************
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
Pe
Python菜鸟,请耐心听我说。我使用的是www.python.org的3.5.1版本的python安装程序。我的目的是使用Scrapy来运行一些脚本。
easy_install安装scrapy失败,pip scrapy和其他人也是如此。我将这个错误归结为lxml的错误安装。这是错误日志。我甚至尝试过easy_installing libxml2,我不确定如何继续。
Building lxml version 3.5.0.
Building without Cython.
ERROR: b"'xslt-config' is not recognized as an in
我希望有人能帮上忙。我正在尝试在我的Raspberry Pi上安装svglib,运行Python 2.7.16和pip版本18.1。当我尝试执行以下命令时: sudo pip install svglib 我得到以下错误: Error: Please make sure the libxml2 and libxslt development packages are installed.
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-b0APrc/lxml/ 因此
根据公众号开发文档上要求,开发前需要安装web.py、libxml2、libxslt等包。我其他的包都可以安装成功,但是libxml2、libxslt死活不行。
用python安装,提示:faild to find headers for libxml2: update includes_di
用pip 安装,提示:ERROR: Could not find a version that satisfies the requirement libxml2(from versions:none) Error: No matching distribution found for libxml2
在运行python脚本时,我收到以下错误
from lxml import etree
ImportError: No module named lxml
现在我尝试安装lxml
sudo easy_install lmxl
但是它给出了下面的错误
Building lxml version 2.3.beta1.
NOTE: Trying to build without Cython, pre-generated 'src/lxml/lxml.etree.c' needs to be available.
ERROR: /bin/sh: xslt-config: not
我正在尝试安装"libxml2“和"libxslt”,以便在mac上使用scrapy (用python进行web抓取)。
我有自制软件,我运行$ brew install libxml2 libxslt
我收到这条消息OS X already provides this software and installing another version in parallel can cause all kinds of trouble.
当我尝试安装刮伤时,使用$ pip install scrapy
我知道这个错误:
Could not find function xmlChe
我决定按照在我的Mac上重新安装Rails,但是当它尝试gem install nokogiri时,它失败了。我正在运行Mac版本10.10.5,目前安装了ruby版本2.2.1p85。
我得到以下错误:
Running git apply with /Users/parkour/.rvm/gems/ruby-2.0.0-p643/gems/nokogiri-1.6.7.2/patches/libxslt/0017-Updated-config.guess.patch... OK
Running 'configure' for libxslt 1.1.28... OK
Runn
我尝试使用easy install安装Scrapy。我安装了Cython,它似乎起作用了,我安装了libxml2 form 我更改了cygwinccompiler在这篇文章之后,我仍然收到一个错误,不知道下一步该做什么。我也不知道为什么是Building without Cython,我有32位的Windows7和Python2.7
C:\Users\t>easy_install -U Scrapy
Searching for Scrapy
Reading http://pypi.python.org/simple/Scrapy/
Reading http://scrapy.org
Be
libxml2 不能在 Python 2.7 和 CentOS 7**.**中导入和
但是系统说这些软件包是安装的:
Package libxml2-2.9.1-5.el7_1.2.x86_64 already installed and latest version
Package libxml2-devel-2.9.1-5.el7_1.2.x86_64 already installed and latest version
Package libxslt-1.1.28-5.el7.x86_64 already installed and latest version
Package li
安装失败,显示以下信息:
checking for iconv_open() in iconv.h... no
checking for iconv_open() in -liconv... no
checking for iconv_open() in -liconv... no
checking for libiconv_open() in iconv.h... no
checking for libiconv_open() in -liconv... no
checking for libiconv_open() in -liconv... no
libiconv is missing.