我发现Linux发行版的现有Python文档非常出色.对于Windows ......不是那么多.我已经配置好我的Linux系统,但我需要一些帮助才能准备好Windows 8.1平板电脑.
我的项目需要Python 3.4的lxml模块.我发现了很多关于如何安装lxml的教程,但每个教程都失败了.
https://docs.python.org/3/installing/ 我已经下载了"get-pip.py"并成功地从Windows cmd行运行了它,结果如下:
Requirement already up-to-date: pip in c:\python34\lib\site-packages
Run Code Online (Sandbox Code Playgroud)
所以我认为我没有"点"问题.从那里我从Windows cmd行运行以下命令:
python -m pip install lxml
Run Code Online (Sandbox Code Playgroud)
一长串命令滚动,但有几行似乎是我无法解决的错误.
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 **
Run Code Online (Sandbox Code Playgroud)
和
Failed building wheel for lxml
Run Code Online (Sandbox Code Playgroud)
最后一部分都是红色的
Command "C:\Python34\python.exe -c "import setuptools, tokenize;__file__='C:\\Users\\Owner\\AppData\\Local\\Temp\\pip-build-ya3n6wkd\\lxml\\setup.py';exec(compi
le(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\Owner\AppData\Local\Temp\pip-ytybzl9l-r
ecord\install-record.txt --single-version-externally-managed --compile" failed with error code …
Run Code Online (Sandbox Code Playgroud)