python - installing matplotlib on virtualenv failing with `freetype cannot be built` -


i'm trying run flask app on ec2, using virtualenv. i've created virtualenv using virtualenv -p /usr/bin/python venv , activated using source venv/bin/activate. cloned github flask repo, , ran pip install -r requirements.txt. however, i'm getting error when installing matplotlib.

file "/home/ec2-user/network-visualizer/venv/lib/python2.6/site- packages/pip/_vendor/cachecontrol/serialize.py", line 81, in dumps       ).encode("utf8"),   memoryerror 

i've googled around , tried pip --no-cache-dir install matplotlib suggested here time, i'm seeing

    ================================================================ ============                              * following required packages can no t built:                              * freetype      ----------------------------------------     command "python setup.py egg_info" failed error code 1 in / tmp/pip-build-3dmfat/matplotlib 

i ran sudo yum install freetype , got

package freetype-2.3.11-15.14.amzn1.x86_64 installed , lat est version nothing 

i'm stuck now... should need install additionally make work?

try installing freetype development tools well. think it's freetype-devel or libfreetype.


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -