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

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -