coolguy123
  • coolguy123
Hi, I'm starting ps6 on 6.00 sc, and i tried to run the complementary software on python 2.7 on a macbook. I realized you need to download updated software of matplotlib and numpy, so i did, but the program the problem set says to run to check if the complementary software isn't working. It runs and no error shows up, but then it just shuts down. Can anyone help me?
MIT 6.00 Intro Computer Science (OCW)
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
schrodinger
  • schrodinger
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
anonymous
  • anonymous
how are you 'running' it?
coolguy123
  • coolguy123
I run the ps6._pkgtest module
anonymous
  • anonymous
not familiar with Mac's so I don't know what you meant when you say you 'run it'. In a Python shell can you import Matplotlib? Maybe have a look inside ps6._pkgtest and see what it is supposed to be doing and that might give you an idea of what is supposed to happen. http://matplotlib.org/faq/installing_faq.html#matplotlib-compiled-fine-but-nothing-shows-up-when-i-use-it

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

coolguy123
  • coolguy123
in the beginning of the code it says this: ##import matplotlib import numpy import pylab
coolguy123
  • coolguy123
and it says this in the ps : To test that you have successfully installed matplotlib and numpy, run the code provided in ps6_pkgtest.py, and upload the generated graph as ps6_pylabtest.pdf to your workspace by 11:59pm Lecture 13. If you have problems with installation, be sure to go to office hours for help. Hint: You can use the save button on the pylab figure to save as .pdf.
anonymous
  • anonymous
Try uncommenting the first line (remove the ##"s) in front of 'import matplotlib' and run it again. If you installed it correctly then it should work.
coolguy123
  • coolguy123
tried it, it still says "python quit unexpectedly" when i run it.
anonymous
  • anonymous
maybe try installing the Enthought distribution http://www.enthought.com/products/epd_free.php
rsmith6559
  • rsmith6559
From my ps12.py: import numpy import random import matplotlib.pyplot as pyplot I had a stinker of a time with the namespace stuff on 10.5.8.

Looking for something else?

Not the answer you are looking for? Search for more explanations.