programing

pip을 사용한 libxml 설치 오류

projobs 2022. 10. 31. 23:16
반응형

pip을 사용한 libxml 설치 오류

이것은 나의 오류입니다.

(mysite)zjm1126@zjm1126-G41MT-S2:~/zjm_test/mysite$ pip install lxml
Downloading/unpacking lxml
  Running setup.py egg_info for package lxml
    Building lxml version 2.3.
    Building without Cython.
    ERROR: /bin/sh: xslt-config: not found

    ** make sure the development packages of libxml2 and libxslt are installed **

    Using build configuration of libxslt
Installing collected packages: lxml
  Running setup.py install for lxml
    Building lxml version 2.3.
    Building without Cython.
    ERROR: /bin/sh: xslt-config: not found

    ** make sure the development packages of libxml2 and libxslt are installed **

    Using build configuration of libxslt
    building 'lxml.etree' extension
    gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.6 -c src/lxml/lxml.etree.c -o build/temp.linux-i686-2.6/src/lxml/lxml.etree.o -w
    src/lxml/lxml.etree.c:4: fatal error: Python.h: 没有那个文件或目录
    compilation terminated.
    error: command 'gcc' failed with exit status 1
    Complete output from command /home/zjm1126/zjm_test/mysite/bin/python -c "import setuptools;__file__='/home/zjm1126/zjm_test/mysite/build/lxml/setup.py';execfile(__file__)" install --single-version-externally-managed --record /tmp/pip-jOhgvD-record/install-record.txt --install-headers /home/zjm1126/zjm_test/mysite/include/site/python2.6:
    Building lxml version 2.3.

Building without Cython.

ERROR: /bin/sh: xslt-config: not found



** make sure the development packages of libxml2 and libxslt are installed **



Using build configuration of libxslt

running install

running build

running build_py

running build_ext

building 'lxml.etree' extension

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.6 -c src/lxml/lxml.etree.c -o build/temp.linux-i686-2.6/src/lxml/lxml.etree.o -w

src/lxml/lxml.etree.c:4: fatal error: Python.h: 没有那个文件或目录

compilation terminated.

error: command 'gcc' failed with exit status 1

----------------------------------------
Command /home/zjm1126/zjm_test/mysite/bin/python -c "import setuptools;__file__='/home/zjm1126/zjm_test/mysite/build/lxml/setup.py';execfile(__file__)" install --single-version-externally-managed --record /tmp/pip-jOhgvD-record/install-record.txt --install-headers /home/zjm1126/zjm_test/mysite/include/site/python2.6 failed with error code 1
Storing complete log in /home/zjm1126/.pip/pip.log

내가 뭘 할 수 있을까?

갱신:

(mysite)zjm1126@zjm1126-G41MT-S2:~/zjm_test/mysite$ pip install lxml
Downloading/unpacking lxml
  Running setup.py egg_info for package lxml
    Building lxml version 2.3.
    Building without Cython.
    Using build configuration of libxslt 1.1.26
    Building against libxml2/libxslt in the following directory: /usr/lib
Installing collected packages: lxml
  Running setup.py install for lxml
    Building lxml version 2.3.
    Building without Cython.
    Using build configuration of libxslt 1.1.26
    Building against libxml2/libxslt in the following directory: /usr/lib
    building 'lxml.etree' extension
    gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/libxml2 -I/usr/include/python2.6 -c src/lxml/lxml.etree.c -o build/temp.linux-i686-2.6/src/lxml/lxml.etree.o -w
    src/lxml/lxml.etree.c:4: fatal error: Python.h: 没有那个文件或目录
    compilation terminated.
    error: command 'gcc' failed with exit status 1
    Complete output from command /home/zjm1126/zjm_test/mysite/bin/python -c "import setuptools;__file__='/home/zjm1126/zjm_test/mysite/build/lxml/setup.py';execfile(__file__)" install --single-version-externally-managed --record /tmp/pip-NJw2ws-record/install-record.txt --install-headers /home/zjm1126/zjm_test/mysite/include/site/python2.6:
    Building lxml version 2.3.

Building without Cython.

Using build configuration of libxslt 1.1.26

Building against libxml2/libxslt in the following directory: /usr/lib

running install

running build

running build_py

running build_ext

building 'lxml.etree' extension

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/libxml2 -I/usr/include/python2.6 -c src/lxml/lxml.etree.c -o build/temp.linux-i686-2.6/src/lxml/lxml.etree.o -w

src/lxml/lxml.etree.c:4: fatal error: Python.h: 没有那个文件或目录

compilation terminated.

error: command 'gcc' failed with exit status 1

----------------------------------------
Command /home/zjm1126/zjm_test/mysite/bin/python -c "import setuptools;__file__='/home/zjm1126/zjm_test/mysite/build/lxml/setup.py';execfile(__file__)" install --single-version-externally-managed --record /tmp/pip-NJw2ws-record/install-record.txt --install-headers /home/zjm1126/zjm_test/mysite/include/site/python2.6 failed with error code 1
Storing complete log in /home/zjm1126/.pip/pip.log

로그:

------------------------------------------------------------
/home/zjm1126/zjm_test/mysite/bin/pip run on Thu Mar  3 17:07:27 2011
Downloading/unpacking mysql-python
  Running setup.py egg_info for package mysql-python
    running egg_info
    creating pip-egg-info/MySQL_python.egg-info
    writing pip-egg-info/MySQL_python.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/MySQL_python.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/MySQL_python.egg-info/dependency_links.txt
    writing pip-egg-info/MySQL_python.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/MySQL_python.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/MySQL_python.egg-info/dependency_links.txt
    writing manifest file 'pip-egg-info/MySQL_python.egg-info/SOURCES.txt'
    warning: manifest_maker: standard file '-c' not found
    reading manifest file 'pip-egg-info/MySQL_python.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no files found matching 'MANIFEST'
    warning: no files found matching 'ChangeLog'
    warning: no files found matching 'GPL'
    writing manifest file 'pip-egg-info/MySQL_python.egg-info/SOURCES.txt'
Installing collected packages: mysql-python
  Running setup.py install for mysql-python
    Running command /home/zjm1126/zjm_test/mysite/bin/python -c "import setuptools;__file__='/home/zjm1126/zjm_test/mysite/build/mysql-python/setup.py';execfile(__file__)" install --single-version-externally-managed --record /tmp/pip-XuVIux-record/install-record.txt --install-headers /home/zjm1126/zjm_test/mysite/include/site/python2.6
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-i686-2.6
    copying _mysql_exceptions.py -> build/lib.linux-i686-2.6
    creating build/lib.linux-i686-2.6/MySQLdb
    copying MySQLdb/__init__.py -> build/lib.linux-i686-2.6/MySQLdb
    copying MySQLdb/converters.py -> build/lib.linux-i686-2.6/MySQLdb
    copying MySQLdb/connections.py -> build/lib.linux-i686-2.6/MySQLdb
    copying MySQLdb/cursors.py -> build/lib.linux-i686-2.6/MySQLdb
    copying MySQLdb/release.py -> build/lib.linux-i686-2.6/MySQLdb
    copying MySQLdb/times.py -> build/lib.linux-i686-2.6/MySQLdb
    creating build/lib.linux-i686-2.6/MySQLdb/constants
    copying MySQLdb/constants/__init__.py -> build/lib.linux-i686-2.6/MySQLdb/constants
    copying MySQLdb/constants/CR.py -> build/lib.linux-i686-2.6/MySQLdb/constants
    copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.linux-i686-2.6/MySQLdb/constants
    copying MySQLdb/constants/ER.py -> build/lib.linux-i686-2.6/MySQLdb/constants
    copying MySQLdb/constants/FLAG.py -> build/lib.linux-i686-2.6/MySQLdb/constants
    copying MySQLdb/constants/REFRESH.py -> build/lib.linux-i686-2.6/MySQLdb/constants
    copying MySQLdb/constants/CLIENT.py -> build/lib.linux-i686-2.6/MySQLdb/constants
    running build_ext
    building '_mysql' extension
    creating build/temp.linux-i686-2.6
    gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Dversion_info=(1,2,3,'final',0) -D__version__=1.2.3 -I/usr/include/mysql -I/usr/include/python2.6 -c _mysql.c -o build/temp.linux-i686-2.6/_mysql.o -DBIG_JOINS=1 -fno-strict-aliasing -DUNIV_LINUX -DUNIV_LINUX
    In file included from _mysql.c:29:
    pymemcompat.h:10: fatal error: Python.h: 没有那个文件或目录
    compilation terminated.
    error: command 'gcc' failed with exit status 1
    Complete output from command /home/zjm1126/zjm_test/mysite/bin/python -c "import setuptools;__file__='/home/zjm1126/zjm_test/mysite/build/mysql-python/setup.py';execfile(__file__)" install --single-version-externally-managed --record /tmp/pip-XuVIux-record/install-record.txt --install-headers /home/zjm1126/zjm_test/mysite/include/site/python2.6:
    running install

running build

running build_py

creating build

creating build/lib.linux-i686-2.6

copying _mysql_exceptions.py -> build/lib.linux-i686-2.6

creating build/lib.linux-i686-2.6/MySQLdb

copying MySQLdb/__init__.py -> build/lib.linux-i686-2.6/MySQLdb

copying MySQLdb/converters.py -> build/lib.linux-i686-2.6/MySQLdb

copying MySQLdb/connections.py -> build/lib.linux-i686-2.6/MySQLdb

copying MySQLdb/cursors.py -> build/lib.linux-i686-2.6/MySQLdb

copying MySQLdb/release.py -> build/lib.linux-i686-2.6/MySQLdb

copying MySQLdb/times.py -> build/lib.linux-i686-2.6/MySQLdb

creating build/lib.linux-i686-2.6/MySQLdb/constants

copying MySQLdb/constants/__init__.py -> build/lib.linux-i686-2.6/MySQLdb/constants

copying MySQLdb/constants/CR.py -> build/lib.linux-i686-2.6/MySQLdb/constants

copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.linux-i686-2.6/MySQLdb/constants

copying MySQLdb/constants/ER.py -> build/lib.linux-i686-2.6/MySQLdb/constants

copying MySQLdb/constants/FLAG.py -> build/lib.linux-i686-2.6/MySQLdb/constants

copying MySQLdb/constants/REFRESH.py -> build/lib.linux-i686-2.6/MySQLdb/constants

copying MySQLdb/constants/CLIENT.py -> build/lib.linux-i686-2.6/MySQLdb/constants

running build_ext

building '_mysql' extension

creating build/temp.linux-i686-2.6

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Dversion_info=(1,2,3,'final',0) -D__version__=1.2.3 -I/usr/include/mysql -I/usr/include/python2.6 -c _mysql.c -o build/temp.linux-i686-2.6/_mysql.o -DBIG_JOINS=1 -fno-strict-aliasing -DUNIV_LINUX -DUNIV_LINUX

In file included from _mysql.c:29:

pymemcompat.h:10: fatal error: Python.h: 没有那个文件或目录

compilation terminated.

error: command 'gcc' failed with exit status 1

----------------------------------------
Command /home/zjm1126/zjm_test/mysite/bin/python -c "import setuptools;__file__='/home/zjm1126/zjm_test/mysite/build/mysql-python/setup.py';execfile(__file__)" install --single-version-externally-managed --record /tmp/pip-XuVIux-record/install-record.txt --install-headers /home/zjm1126/zjm_test/mysite/include/site/python2.6 failed with error code 1
Exception information:
Traceback (most recent call last):
  File "/home/zjm1126/zjm_test/mysite/lib/python2.6/site-packages/pip-0.8.1-py2.6.egg/pip/basecommand.py", line 130, in main
    self.run(options, args)
  File "/home/zjm1126/zjm_test/mysite/lib/python2.6/site-packages/pip-0.8.1-py2.6.egg/pip/commands/install.py", line 228, in run
    requirement_set.install(install_options, global_options)
  File "/home/zjm1126/zjm_test/mysite/lib/python2.6/site-packages/pip-0.8.1-py2.6.egg/pip/req.py", line 1043, in install
    requirement.install(install_options, global_options)
  File "/home/zjm1126/zjm_test/mysite/lib/python2.6/site-packages/pip-0.8.1-py2.6.egg/pip/req.py", line 559, in install
    cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
  File "/home/zjm1126/zjm_test/mysite/lib/python2.6/site-packages/pip-0.8.1-py2.6.egg/pip/__init__.py", line 249, in call_subprocess
    % (command_desc, proc.returncode))
InstallationError: Command /home/zjm1126/zjm_test/mysite/bin/python -c "import setuptools;__file__='/home/zjm1126/zjm_test/mysite/build/mysql-python/setup.py';execfile(__file__)" install --single-version-externally-managed --record /tmp/pip-XuVIux-record/install-record.txt --install-headers /home/zjm1126/zjm_test/mysite/include/site/python2.6 failed with error code 1

** libxml2 및 libxslt 개발 패키지가 설치되어 있는지 확인합니다**

Lxml 매뉴얼에서 Debian 기반 배포를 실행하고 있다고 가정하면 다음과 같습니다.

sudo apt-get install libxml2-dev libxslt-dev python-dev

Debian 기반 시스템의 경우 이미 알려진 빌드 종속성을 설치하는 것으로 충분합니다.python-lxml아니면python3-lxml,예.

sudo apt-get install build-dep python3-lxml

이 방법은 효과가 있었습니다.

yum install libxslt-devel libxml2-devel

Ubuntu/Lubuntu 13.04 또는 Ubuntu 13.10을 사용하는 경우 "/usr/bin/ld: cannot find - lz"에 문제가 있는 경우 zlib1g-dev 패키지를 설치해야 합니다.

sudo apt-get install -y zlib1g-dev

모든 것을 종합하면:

sudo apt-get install -y libxml2-dev libxslt1-dev zlib1g-dev python3-pip
sudo pip3 install lxml

아니요, Python 헤더 파일이 없습니다.이것은 시스템 Python을 사용하고 있을 때 Linux에서 주로 발생합니다(그것을 하지 않는 이유는 있지만, 그것은 다른 질문입니다).

패키지 설치가 필요할 수 있으며 python-dev 또는 python-devel이라고 불립니다.

 sudo yum install python-devel

아니면

 sudo aptitude install python-dev

아니면 서머슈치.

설치 요건만:

sudo apt-get install libxml2-dev libxslt-dev python-dev

이제 pip 패키지 관리 도구를 사용하여 설치할 수 있습니다.

pip install lxml

python3 사용자의 경우:

sudo apt-get install libxml2-dev libxslt-dev python3-dev

pip3 install lxml

서버 램을 늘려 이 문제를 해결했습니다.

512MB밖에 안 돼서 1GB로 업그레이드 했을 때는 문제 없었어요.

또, 문제를 해결하기 위해서, 이 전에 모든 패키지를 수동으로 인스톨 했습니다만, 이것이 필요한 순서인지 아닌지는 잘 모르겠습니다.

Windows 에서는, Python 3.4 를 3.3 에 인스톨 한 후에 수동으로 인스톨 하려고 했을 때에, Windows 로 같은 에러가 발생했습니다.휠을 설치하고 Python34 디렉토리에서 pip을 실행함으로써 겨우 해결할 수 있었습니다.

1) 여기에서 다운로드 휠: http://www.lfd.uci.edu/~sublke/subllibs/#lxml

2)cd Python34\Scripts

3)pip.exe C:\Users\Home\Downloads\lxml- ......... .whl

STATIC_DEPS=true easy_install lxml
error: command 'gcc' failed with exit status 1

yum remove audit
yum install gcc
yum install libxslt-devel libxml2-devel

cd lxml-x.x.x
python setup.py build
python setup.py install

Ubuntu 14.04를 사용하고 있으며, 이것으로 문제가 해결되었습니다.

sudo apt-get build-dep python3-lxml
sudo apt-get install libxml2-dev libxslt-dev python-dev
sudo apt install libxslt-dev libxml2-dev

그리고 python setuptools 업그레이드를 시도합니다.

pip install -U pip setuptools

이것으로 해결됩니다.

lxml 바이너리를 설치하면 효과가 있습니다.체크해 주세요

lxml의 pip 설치에서 이 문제가 발생했습니다.마이센트OS 인스턴스가 python 2.6을 사용하고 있었기 때문에 이 에러가 발생했습니다.

이 문제를 피하기 위해 Python 2.7을 실행하기 위해 다음을 수행했습니다.

  1. 실행:sudo yum install python-devel
  2. 달려.sudo yum install libxslt-devel libxml2-devel
  3. Python 2.7을 사용하여 명령을 실행합니다./usr/bin/python2.7 YOUR_PYTHON_COMMAND(나에게는)/usr/bin/python2.7 -m pip install lxml)

Linux 머신에서도 같은 에러가 발생했습니다.그들의 웹사이트에 접속하면 문서에도 나와 있습니다.Linux 머신에서 이런 오류가 발생하면 다음 명령을 사용해 보십시오.

# apt install libxml2-dev libxslt-dev python-dev

# pip install lxml==3.4.4

pymemcompat.h:10: fatal error: Python.h: 没有那个文件或目录

, 는 ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★.LANG=C과 같이 기록되어 있습니다.위의 로그는 다음과 같습니다.이치노

즉, Python 개발 패키지를 설치해야 합니다.보통 데비안 맛 디스트로는 '피톤-데브', RHEL 맛 디스트로는 '피톤-데벨'입니다.

위의 모든 답변은 사용자가 필요한 라이브러리를 설치하기 위해 특권/루트 계정에 액세스할 수 있다고 가정합니다.로컬에 설치하려면 다음 단계를 수행해야 합니다.누락될 수 있는 의존관계에 따라 절차가 다소 복잡해질 수 있으므로 개요만 제시했습니다.

1. libxml2-2.9.1 및 libxlt-1.1.28 다운로드 및 컴파일(버전은 변경될 수 있음)

configure2를 각 설치 합니다.configure " " " libxml " libxlt " libxlt " " " 。 ㅇㅇ../configure --prefix=/home_dir/dependencies/libxslt_path

3. 실행makemake install

4. 소스에서 lxml 다운로드 및 컴파일

이 방법은 12.04, python2.7.6에서 사용할 수 있습니다.

sudo apt-get install libxml2 libxml2-dev libxslt1-dev
sudo pip install lxml

쇼에 늦은 건 알지만

하지만 다른 일이 잘 안 풀리면 도움이 될 거야

mkdir ~/tmp
export TMPDIR=~/tmp
STATIC_DEPS=true easy_install-2.7 lxml

TMPDIR 를 설정하면, 빌드가 실행할 필요가 있는 모든 것을 실행할 수 있게 됩니다.STATIC_DEPS 를 설정하면, 서버에 인스톨 된 낡은 버전을 사용하는 대신에, 독자적인 libxml2 와 libxlt2 를 풀인 하도록 지시됩니다.

Windows 8에서 cygwin 64 사용.

난...

pip install lxml (...)

gcc -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -ggdb -O2 -pipe -Wimplicit-function-declaration -fdebug-prefix-map=/usr/src/ports/python3/python3-3.2.5-4.x86_64/build=/usr/src/debug/python3-3.2.5-4 -fdebug-prefix-map=/usr/src/ports/python3/python3-3.2.5-4.x86_64/src/Python-3.2.5=/usr/src/debug/python3-3.2.5-4 -I/usr/include/libxml2 -I/tmp/pip-build-b8ybku/lxml/src/lxml/includes -I/usr/include/python3.2m -c src/lxml/lxml.etree.c -o build/temp.cygwin-1.7.34-x86_64-3.2/src/lxml/lxml.etree.o -w

src/lxml/lxml.etree.c:8:22: fatal error: pyconfig.h: No such file or directory

compilation terminated.

/usr/lib/python3.2/distutils/dist.py:257: UserWarning: Unknown distribution option: 'bugtrack_url'

  warnings.warn(msg)

error: command 'gcc' failed with exit status 1

----------------------------------------
Command "/usr/bin/python3.2m -c "import setuptools, tokenize;__file__='/tmp/pip-build-b8ybku/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-u3vwj8-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-b8ybku/lxml

새로운 사이그윈 툴체인이 파이썬 논리를 엉망으로 만들었다는 것을 깨닫기 전까지 모든 것을 시도했다.cygwin은 실제 gcc가 아닌 "realgcc"라는 컴파일러를 설치합니다.

솔루션

gcc를 설치합니다.예:

 apt-cyg install gcc-g++

제가 유일하게 도움이 된 건

sudo apt-get install python3.5-dev

Ubuntu 12를 사용하고 있는데, 이것으로 충분합니다.

sudo apt-get install libxml2-dev
sudo apt-get install libxslt1-dev
sudo apt-get install python-dev
sudo apt-get install lxml

libxml2 및 libxslt를 설치한 경우 libxml2 경로와 libxlt 경로 사이에 python2.6 include 경로로 심볼릭링크를 작성해야 합니다.또한 INCLUDE 환경 인수를 추가할 수도 있습니다.gcc 명령어는 -I/usr/include/python 2.6 경로만 검색하기 때문입니다.

아래 파일은 Windows https://pypi.python.org/pypi/lxml/3.3.3#downloads에서 사용할 수 있었습니다.

osx 10.10.5 및 virtualenv에서는 다음과 같이 이 문제를 해결할 수 있습니다.

sudo C_INCLUDE_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libxml2:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libxml2/libxml:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include pip install -r lxml

저는 윈도 머신에서 일하고 있습니다.여기에 lxml(python 2.6 이후)을 성공적으로 설치하기 위한 몇 가지 포인트가 있습니다.

다음의 인스톨을 실시합니다.

  1. MingGW.
  2. libxml2 버전 2.7.0 이후
  3. libxslt 버전 1.1.23 이후

A에서 수 것은 아닙니다.pip install.

libxml2의 Windows 바이너리는 여기에 있습니다.

libxslt는 여기에 있습니다.

위의 두 가지 작업을 마치면

하다pip install lxml.

또 다른 회피책은 PyPI의 안정적인 릴리스 또는 Christoph Kohlke(여기에 있음)의 비공식 Windows 바이너리를 사용하는 것입니다.

Cygwin에서 Windows 7을 사용하면 다음과 같은 이점을 얻을 수 있습니다.

Compile failed: command 'gcc' failed with exit status 1
cc -I/usr/include/libxml2 -I/usr/include/libxml2 -c /tmp/xmlXPathInitZsgdMQ.c -o tmp/xmlXPathInitZsgdMQ.o
*********************************************************************************
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
*********************************************************************************
error: command 'gcc' failed with exit status 1

하여 고쳤습니다.mingw64-x86_64-libxslt

2개의 패키지를 사용하여 수 .pip FreeB free 를 FreeB free free: SD :SD:

Download a compressed snapshot of the Ports Collection into /var/db/portsnap:
# portsnap fetch
When running Portsnap for the first time, extract the snapshot into /usr/ports:
# portsnap extract
After the first use of Portsnap has been completed as shown above, /usr/ports can be updated as needed by running:
# portsnap fetch
# portsnap update

Now Install:
cd /usr/ports/textproc/libxml2
make install clean

cd /usr/ports/textproc/libxslt
make install clean

넌 가도 돼...

Windows 의 경우:

pip install --upgrade pip wheel
pip install bzt
pip install lxml

언급URL : https://stackoverflow.com/questions/5178416/libxml-install-error-using-pip

반응형