python 2.7 - Pygame import error in pyenv 2.7.11 on Arch Linux -
i installed pygame on arch linux machine following command:
$ sudo pacman -s python2-pygame
i using pyenv , version of python in virtual environment project 2.7.11
when run program
$ python smartcab/agent.py
here get:
traceback (most recent call last): file "smartcab/agent.py", line 2, in <module> environment import agent, environment file "/home/alex/machine-learning/projects/smartcab/smartcab/environment.py", line 5, in <module> simulator import simulator file "/home/alex/machine-learning/projects/smartcab/smartcab/simulator.py", line 4, in <module> import pygame importerror: no module named pygame
how can solve please?
on own arch linux machine...
i have created 2.7.11 virtualenv using pyenv , installed python2-pygame
pacman. virtualenv activated, couldn't import pygame
python. able reproduce issue.
after that, tried downloading , compiling pygame's source python setup.py install
without success. complaining missing linux/videodev.h
seems (from found on web) deprecated , replaced linux/videodev2.h
(which there).
i won't go further, hope finding solution.
Comments
Post a Comment