Failed to install lxml
#include “libxml/xpath.h”
^
1 error generated.
*********************************************************************************
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
Perhaps try: xcode-select –install
*********************************************************************************
error: command ‘cc’ failed with exit status 1
After installing libxml2, I still prompted this error, and finally found the problem after a lot of trouble
Need to add C_ INCLUDE_ Path to the libxml2 path in Xcode MacOS SDKs
sudo C_ INCLUDE_ PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libxml2/
And then in execution
xcode-select --install
pip install lxml
Similar Posts:
- [Solved] Xcode 10 Error: library not found for -lstdc++.6.0.9
- React-native run-ios: unable to find utility “instruments”
- Xcode real machine testing could not find developer disk image solution
- Go build error after MacOS Monterey system upgrade [How to Solve]
- Solve xcrun error after upgrading MacOS Catalina
- xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
- xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun …
- error: command ‘gcc’ failed with exit status 1 [How to Solve]
- [Homebrew] has anyone encountered the warning generated by brew doctor[ The operating system is MAC 10.7.3]
- [Solved] NPM Error: gyp: No Xcode or CLT version detected!