Code Monkey home page Code Monkey logo

Comments (10)

dbogdanov avatar dbogdanov commented on May 26, 2024

You might need to install numpy via homebrew. Please, tell if that works for you.

from essentia.

jbloit avatar jbloit commented on May 26, 2024

Hmm, I can't remember how I fixed it exactly this was a while ago, but it might be with the homebrew version indeed. FYI I also ended up using it with the Anaconda distribution and it works well.

Thank you for your answer.

from essentia.

justinsalamon avatar justinsalamon commented on May 26, 2024

Hey Dima,

Just wanted to let you know I had the same problem (fatal error: 'numpy/ndarrayobject.h' file not found) and it was indeed solved by installing numpy via homebrew. It might be worth adding a comment on this in the installation instructions, since 10.9 is the first version (I think) of OSX that comes with python, numpy & scipy preinstalled, meaning there's a good chance people running 10.9 will run into the same problem in the future.

from essentia.

dbogdanov avatar dbogdanov commented on May 26, 2024

Hi, Salamon,

did you first try
pip install numpy
as suggested in the installation instructions and it didn't work on your 10.9?

from essentia.

justinsalamon avatar justinsalamon commented on May 26, 2024

the point is I skipped that step of the instructions because 10.9 already comes with python, numpy, scipy, etc. installed. I don't remember if I tried pip install (if I did then it didn't work), sorry! But to summarize - it only worked after installing numpy again using homebrew explicitly.

It's not su much a bug as a matter of adding a clarification in the instructions - I think most people with 10.9 will skip the numpy installation step because they will already have it installed, and then run into the same problem...

from essentia.

wackou avatar wackou commented on May 26, 2024

Not to bash on them, but you should not use the python executable or anything that comes by default on mac, as they are usually outdated (not yet for mavericks, of course) and will cause compilation problems, as every version of python is compiled with different flags/settings. You should get everything from the same source usually, so either:

  • homebrew (recommended, as this also gives you a huge selection of other packages)
  • macports, fink, ... (not recommended, use homebrew)
  • special scientific python environments (anaconda, EPD, etc.) not tested but they should work fine if you limit yourself to the packages they provide

from essentia.

justinsalamon avatar justinsalamon commented on May 26, 2024

sound advice 👍

To avoid issues like this being opened in the future, since mavericks is the first version of OSX that comes with python stuff out of the box, it might make sense to include a line in the instructions recommending to install everything from scratch using homebrew to avoid compilation errors, and noting that for some packages (e.g. numpy) it's not just a recommendation, it's necessary.

Anyway, I leave it to your discretion :) Issue can be closed...

from essentia.

dbogdanov avatar dbogdanov commented on May 26, 2024

i did that a couple of hours ago ;)

from essentia.

hector avatar hector commented on May 26, 2024

As I pointed in a previous issue, pip cannot install correctly libraries in OSX 10.8 and up. To be exact, matplotlib fails on OSX 10.8 and numpy in 10.9. It is a better practice to use only pip for python packages when possible (e.g. to manage virtual envs smoothly) but, in this case, I'd rather advice OSX users with version 10.8 and up (or even OSX version...) to install numpy, scipy and matplotlib with homebrew. By the way, it might be interesting to point out in the instructions that 'brew tap samueljohn/python' is necessary.

from essentia.

wackou avatar wackou commented on May 26, 2024

I just successfully did the following on OSX 10.9.1:

mkvirtualenv --no-site-packages testnumpy
pip install numpy
pip install matplotlib

In any case, if you want to install numpy/matplotlib with homebrew, and you did install python with homebrew, I don't see any problems with this way of doing it. The nice thing you get with pip is you can install stuff inside a virtualenv (very recommended, get virtualenvwrapper also, once you get used to it it'll feel impossible to get back! ;-) )

from essentia.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.