I can't install Lxml on my Mac

Asked 1 years ago, Updated 1 years ago, 74 views

Scrapy I need Lxml before installing, but I keep getting errors

I checked that libxml2 and libxslt are also brew installed, and both are good.

What should I do?

In file included from src/lxml/lxml.etree.c:314:
/private/tmp/pip_build_root/lxml/src/lxml/includes/etree_defs.h:9:10: fatal error: 'libxml/xmlversion.h' file not found
#include "libxml/xmlversion.h"
         ^
1 error generated.
error: command 'cc' failed with exit status 1

osx xcode python scrapy lxml

2022-09-22 22:15

1 Answers

You must install/upgrade the command line tool in the xcode. From Terminal

xcode-select --install

Try it


2022-09-22 22:15

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.