
You may also need a compiler, to install XCode compiling tools, use xcode-select -install Firstly I updated my port to the latest version via sudo port selfupdate, Then I just type sudo port install libxml2 and several minutes later you should see libxml2 installed successfully. Try something like port install py25-lxml If you do not have MacPort, install it from. I think a better approach to fix this is to install with the following command: 10.9.sdkusrincludelibxml2 pip install lxml. Installation of the XCode command line tools does not help for this particular version of OSX. With bash: LDFLAGS-Lbrew -prefix libxml2lib CPPFLAGS-Ibrew -prefix libxml2includelibxml2 pip install -user lxml. Questions: Answers: With homebrew, libxml2 is hidden to not interfere with the system libxml2, so pip must be helped a little in order to find it. Its very strange but I solved the issue by opening XCode and accepting the Terms Conditions. Im running OS X Version 10.9.2 But this definitely works.like a charm: ARCHFLAGS-Wno-errorunused-command-line-argument-hard-error-in-future pip install lxml Questions: Answers: Unfortunately xcode-select -install did not work for me as I already had the latest version. I tried it with >pip install python-docx and >pip install python-docx=0.8.11 in the cmd.I made the following ugly hack to hold me over until the python lxml people can do the proper fix.

Hint: See above for output from the failure.Ĭan somebody help me with that problems in a way that even a newcomer like me understands it ?

Note: This is an issue with the package mentioned above, not pip. × Encountered error while trying to install package. errorĪnd note: This error originates from a subprocess, and is likely not a problem with pip. A possible replacement is to enable the '-use-pep517' option. pip 23.1 will enforce this behaviour change. Those are the errors i see: DEPRECATION: lxml is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. I am following a tutorial and tried to install python-docx using pip in the cmd, but it doesn't work.

I am very new to python and programming in generall.
