get errors when import lxml.etree to python

后端 未结 3 669
挽巷
挽巷 2020-12-03 18:20

i have installed an lxml on my mac, when i type in python like this

localhost:lxml-3.0.1 apple$ python
Python 2.7.3 (v2.7.3:70274d53c1dd, Apr  9 2012, 20:52:43) 
         


        
3条回答
  •  借酒劲吻你
    2020-12-03 19:22

    I had the same problem. If you have installed it with pip as follows: pip install lxml

    Instead, try to use

    STATIC_DEPS=true pip install lxml
    

    This solved the problem for me.

    Found at this website

提交回复
热议问题