私はPython2.7を使用していて、PyQueryを使おうとしていたので、テストのために「import PyQuery」と入力したところ、エラーが発生しました。
Traceback (most recent call last):
File "C:\Users\Jacob\Documents\dupes.py", line 1, in <module>
import pyquery
File "C:\Python27\lib\site-packages\pyquery-1.2.1-py2.7.egg\pyquery\__init__.py", line 12, in <module>
from .pyquery import PyQuery
File "C:\Python27\lib\site-packages\pyquery-1.2.1-py2.7.egg\pyquery\pyquery.py", line 8, in <module>
from lxml import etree
ImportError: No module named lxml
だから私はコマンドプロンプトに行き、lxmlをインストールしようとしましたが、私はこれを手に入れました:
Building lxml version 2.3.5.
Building without Cython.
ERROR: 'xslt-config' is not recognized as an internal or external command,
operable program or batch file.
** make sure the development packages of libxml2 and libxslt are installed **
Using build configuration of libxslt
error: Setup script exited with error: Unable to find vcvarsall.bat
何が悪いのか、何をすべきなのかよくわかりません...誰か助けてもらえますか?
ありがとう。
編集:
コメントに応えて、私は簡単なインストールを使用しました...