Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9202997
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T23:22:52+00:00 2026-06-17T23:22:52+00:00

I am having trouble importing matplotlib into google app engine. I have googled around

  • 0

I am having trouble importing matplotlib into google app engine. I have googled around and found some solutions but none of them seem to work for me. In my app.yaml file I have

libraries:
- name: matplotlib
  version: latest  
- name: numpy
  version: latest

In my python file I will import numpy I can have

numpy.arange(10)

The problem is when I try to import matplotlib

import matplotlib as plt

I get this error when visiting the page

The website encountered an error while retrieving http://localhost:8080/. 
It may be down for maintenance or configured incorrectly.

I remove the matplotlib import, refresh, and everything works again. I have seen app engine webpages use matplotlib such as http://gae-matplotlib-demo.appspot.com that import matplotlib so I know it is possible.

How can I use matplotlib in Google App Engine?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T23:22:54+00:00Added an answer on June 17, 2026 at 11:22 pm

    Unfortunately, Matplotlib does not currently work in the GAE Dev Appserver, as explained in Matplotlib notes on the libraries page. It should work if you deploy it to the production server using appcfg. I realise this is not ideal for development, though. We will update that page when the development server supports Matplotlib.

    As @mjibson pointed out, Dima Tisnek has worked out a way of getting it working in the dev appserver, but it involves a bit of hacking, and we don’t officially support this approach. (For the record, I was able to get it working with this approach.)

    Matt Giuca

    Google

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey, I'm having a bit of trouble importing m2crypto to google app engine. I
i'm importing someone's python project into rails and having some trouble getting galleria.js gallery
I have been having some trouble with matplotlib since I started using python. When
I am having trouble importing an icon into my application. I have a main
I am having trouble importing data into an xlsx file from matlab. When I
I'm trying to test out pyssh, but I'm having trouble importing it. I'm new
I'm having trouble importing definitions from modules in Coq. I'm new to Coq, but
I'm trying to learn python and I'm having trouble importing a module. I have
I'm having trouble deserializing some XML into it's appropriate object structure. When I call
I'm having trouble importing packages into package objects. It didn't seem to work in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.