Cannot install Lxml on Mac OS X 10.9
You should install or upgrade the commandline tool for Xcode.
Try this in a terminal:
xcode-select --install
Installing lxml OSX Mavericks 10.9.2
So the problem had nothing to do with the C compiler, it was in the python version used on the machine, apparently there was a conflict in python versions, a new clean installation of python solved the problem, and the .bash_profile
. then we used the original command
pip install lxml
and it was successfully installed
How do I install lxml on Mac OS X 10.7.4? I have exhausted all options
I first installed MacPorts and then:
$ sudo port install python27 py27-lxml
And this gave me a functioning lxml installation.
Regarding your error messages, you appear to be missing the compiler command that pip
is using to build lxml
(llvm-gcc-4.2). Do you have the OS X development tools installed? You should find that file in /usr/bin/llvm-gcc-4.2
; if it's not there, you probably need to download and install the development package.
You can install the XCode developer tools via the App Store. If you read the comments in the app store, you'll note that in order to make the command line tools available you need to install them separately. In XCode, go to Preferences->Downloads and download the "Command line tools" package.
pip install lxml on MacOS X gives error: command 'cc' failed
It is difficult to install cc without installing Xcode in mac.
See this documentation : https://hackercodex.com/guide/mac-development-configuration/
Also it is very easy to install Xcode in mac. Just download from app store, create an account if you don't have one.
Python3, lxml and Symbol not found: _lzma_auto_decoder on Mac OS X 10.9
I have deleted all versions of python from
/Library/Frameworks/Python.framework/Versions/
afterwards I have reinstalled python 3 using brew and recreated the symlinks using
brew link --overwrite python3
Related Topics
How to Recursively Find Specific Key in Nested JSON
How to Scroll Frame Using Mouse Wheel & Adding Horizontal Scrollbar
Python: Best Practice and Securest Way to Connect to MySQL and Execute Queries
Cleanest Way to Get Last Item from Python Iterator
Python Regex Match or Operator
How to Install MySQLdb (Python Data Access Library to MySQL) on MAC Os X
Flask SQLalchemy Query, Specify Column Names
Monitoring Contents of Files/Directories
What Is the Return Value of Os.System() in Python
Naturally Sorting Pandas Dataframe
Paramiko Ssh Die/Hang with Big Output
Accessing Mp3 Metadata with Python
Pip Cannot Uninstall <Package>: "It Is a Distutils Installed Project"
Making a Countdown Timer with Python and Tkinter