Closed phetzel1 closed 5 years ago
Might be you have an old version of XCode installed on your machine?
@phetzel1 Take a look on this solution - https://stackoverflow.com/questions/52509602/cant-compile-c-program-on-a-mac-after-upgrade-to-mojave. @lwinfree has successfully resolved the same issue using it.
Please re-open if it doesn't help
I updated to OSX 10.14.6 and updated my Python too and then had this error again when trying pip install datapackage
. So I had to remember how I fixed it before, which was annoying, so now that I have fixed it again, I decided to write it down here for posterity.
step 1: to make sure you have the latest x-code, run in terminal: xcode-select --install
step 2: go to https://developer.apple.com/download/more/ and download the command line tools (note, you can also get the latest x-code from this site)
step 3: in terminal, run open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg
Now you should be able to install datapackage again!
@lwinfree Probably it makes sense to PR it also to the README (as a OSx note) - https://github.com/frictionlessdata/datapackage-py#installation
Upon running
pip install datapackage
on Mac OSX 10.14.1, I received an error revolving around the package cchardet.The error when building cchardet is summarized below:
I have already went through the step of running
xcode-select --install
with no success.