installing lxml on 64 bit windows

前端 未结 2 1438
星月不相逢
星月不相逢 2021-01-25 10:47

So I\'m trying to install lxml on my machine, and I can\'t seem to get it to work.

I\'ve got Windows 8.1 64-bit and python 3.5

I\'ve used both

p         


        
相关标签:
2条回答
  • 2021-01-25 11:24

    They fixed this issue as of lxml version 4.2.5.

    If you are still getting this issue, see if your requirements file specifies a specific version of lxml. If so, you should be able to fix the problem by updating the specified version to 4.2.5 or above.

    0 讨论(0)
  • 2021-01-25 11:34

    By default, Python will install as 32-bit on Windows, even on 64-bit systems. Therefore, to match this, you must select the wheel for 32-bit systems.

    You can verify that your Python interpreter is 32-bit, because the REPL will look like this when starting:

    Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:01:18) [MSC v.1900 32 bit (Intel)] on win32
    

    You should pick the lxml-3.6.4-cp35-cp35m-win32.whl package for Python 3.5 on Windows (unless you explicitly selected 64-bit when downloading Python) which should solve your issue.

    0 讨论(0)
提交回复
热议问题