PyGame Installation

105 views
Skip to first unread message

Ruchit Bhatt

unread,
Feb 16, 2016, 11:10:58 PM2/16/16
to Python Programming for Autodesk Maya
Hi, Need help to install PyGame module for Maya 2016 x64.

I downloaded 64bit PyGame Lib from Christoph Gohlke PY LIB
site and i installed successfully in "C:\Python27" using "pip install *.whl" command.
After that i copied PyGame folder from "C:\Python27\Lib\site-packages" & paste in "C:\Program Files\Autodesk\Maya2016\Python\Lib\site-packages".

And then run import pygame in Maya script editor & got below error....
# Error: ImportError: file C:\Program Files\Autodesk\Maya2016\Python\lib\site-packages\pygame\__init__.py line 142: DLL load failed: The specified module could not be found. #


it works fine in python shell, only problem is inside Maya.

Robert White

unread,
Feb 16, 2016, 11:14:21 PM2/16/16
to Python Programming for Autodesk Maya
You can't use compiled extension libraries from standard python27 with Maya's internal python interpreter.
You'll need to recompile the extension with Visual Studio 2012, because standard python27 is compiled against vs2008.

Ruchit Bhatt

unread,
Feb 17, 2016, 1:18:44 PM2/17/16
to Python Programming for Autodesk Maya
Hi,
is it possible to install any python package through script editor using easy_install setuptools??


https://pypi.python.org/pypi/setuptools


Justin Israel

unread,
Feb 17, 2016, 1:21:35 PM2/17/16
to Python Programming for Autodesk Maya


On Thu, 18 Feb 2016 7:18 AM Ruchit Bhatt <ruchitinn...@gmail.com> wrote:
Hi,
is it possible to install any python package through script editor using easy_install setuptools??

It is a library module, so as long as you don't have any permission issues, sure why not. 
However this topic is now different than the original one you posted. 

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/749c6556-2a90-44e7-9454-53a57aa90b1b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages