I am running Linux Mint 18 Sarah.
I tried to run a
.py file which has a pygame dependency, so I
pip installed pygame into my virtual (conda) python environment. So far so good. Tested that when I enter my system python by typing
python in shell, I can
import pygame and create some pygame objects without errors.
But when running
python my_script.py (with the pygame dependency) I got a weird error.
Fatal Python error: (pygame parachute) Segmentation Fault
Someone suggested I uninstall pygame and reinstall, this is where things get really confusing to me.
When I went to uninstall, I got the message
E: Unable to locate package pygame. But then when I try and
pip install again, I get the message
Requirement already satisfied: pygame in /home/max/anaconda3/envs/udacity_ml_nd/lib/python2.7/site-packages.
Can anyone explain why Python both can and can't find this package from the same terminal session in the same virtual (conda) environment? Please let me know if there's any further information I can provide.