Feb-27-2017, 03:56 PM
(This post was last modified: Feb-27-2017, 07:03 PM by sparkz_alot.)
Hi everyone!
I successfully downloaded both Pygame and Matplotlib on my Mac (OSX), but neither seem to work when I import them.
Matplotlib was successfully installed using Pip3, but I get this message when trying to use it:
I successfully downloaded both Pygame and Matplotlib on my Mac (OSX), but neither seem to work when I import them.
Matplotlib was successfully installed using Pip3, but I get this message when trying to use it:
Error:Traceback (most recent call last):
File "/Users/ianscalzo/Desktop/python_work/matplotlib.py", line 1, in <module>
import matplotlib.pyplot as plt
File "/Users/ianscalzo/Desktop/python_work/matplotlib.py", line 1, in <module>
import matplotlib.pyplot as plt
ImportError: No module named 'matplotlib.pyplot'; 'matplotlib' is not a package
I also successfully installed Pygame using Homebrew, but that doesn't work either. I get this message while trying to run it:Error:Traceback (most recent call last):
File "/Users/ianscalzo/Desktop/alien_invsion/game_test.py", line 3, in <module>
import pygame
ImportError: No module named 'pygame'
Please help me out!