如何在 Heroku 上安装 numpy、scipy、matplotlib?
所以首先我在本地做 pip install matplotlib -> 我得到一个错误说 install numpy.. 所以我做 pip install numpy 并得到一个错误说
File "/home/sghose/myapp/helloflask/build/numpy/numpy/distutils/command/build_src.py", line 385, in generate_sources
source = func(extension, build_dir)
File "numpy/core/setup.py", line 410, in generate_config_h
moredefs, ignored = cocache.check_types(config_cmd, ext, build_dir)
File "numpy/core/setup.py", line 41, in check_types
out = check_types(*a, **kw)
File "numpy/core/setup.py", line 271, in check_types
"Cannot compile 'Python.h'. Perhaps you need to "\
SystemError: Cannot compile 'Python.h'. Perhaps you need to install python-dev|python-devel.
----------------------------------------
Command python setup.py egg_info failed with error code 1 in /home/sghose/myapp/helloflask/build/numpy
...现在我该怎么做?通常我只会做 apt-get install python-numpy ...但后来我想 pip 不会拿起它,然后当我推动 Heroku 时会不高兴...我还看到他们重新编译 numpy 的以前的帖子,scipy,matplotlib 并更改了变量,以便它们指向 heroku 包(http://stackoverflow.com/questions/9819968/running-scipy-on-heroku)?这还有必要吗?感觉有点痛>_<