28
May
14

Setting up PyCharm with Maya 2014 (Windows)

Hi all!

I’m going to write down a simple step by step guide to set up PyCharm (3.1.3) with compatible versions of python (2.7) and PyQT (4.10) with Maya 2014 (Windows x64 Environment). It is quite simple but requires a couple of things that are easy to forget and this is also mainly a remainder for me in case I have to set-up another machine.

  • Install python 2.7 and PyQT 4.10 for python 2.7. Both versions are the ones 100% compatible with Maya 2014.
  • Link the ‘mayapy.exe’ from ‘C:\Program Files\Autodesk\Maya2014\bin’ to a ‘python.exe’. This is so we can set PyCharm python interpreter to this path.
    • Run the command console as administrator.
    • Go to the ‘C:\Program Files\Autodesk\Maya2014\bin’.
    • Run the command “mklink python.exe mayapy.exe”.00
  • Next, on PyCharm go to ‘File>Settings’ and the select ‘Project Interpreter>Python Interpreter’ on the left and set ‘C:\Program Files\Autodesk\Maya2014\bin’ as Default Python Interpeter.
  • 01Then we need to add a couple of helpers to make our lifes easier. This is totally optional but you can get the pymel auto-complete from the Maya 2014 ‘devkit’ path and helpers from PyCharm itself (see image for default paths).
  • 02Once this is done, in order to get PyQT to work there is one last step that needs to be done. I’m not sure if this is the correct way to do it but it works for me. Last thing to do is to copy the ‘PyQt4’ folder and the ‘sip.pyd’ file from the ‘C:\Python27\Lib\site-packages’ into the following Maya folder ‘C:\Program Files\Autodesk\Maya2014\Python\Lib\site-packages’.
  • And that is it. After these simple steps your python code including PyQT should compile and run perfectly on both Maya and PyCharm.

 

In the following days I’ll try to post a similar step by step guide on how to Setup Visual Studio 2010 with the Maya 2014 API to write plugins. Another task that usually gets frustrating because many little things can go wrong (or simply forgetting one step) and that can get really annoying.

Until then, hope that whoever ends up reading this post finds something useful.

Jose out.

 

Advertisements

1 Response to “Setting up PyCharm with Maya 2014 (Windows)”


  1. 1 apacheomega
    June 10, 2015 at 4:22 pm

    Hello!
    Great tut. unfortunately I’m a Linux user (Ubuntu 14.04) and I was wondering if you have a Linux version of this tut. Also I happen to be running pycharm 4.5.1 – pyqt5 & 4, along with qt5 designer and finally yes Maya 2014 (need to upgrade to 2016). could I still use this tut to set-up the same environment?


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


May 2014
M T W T F S S
« Mar   Jun »
 1234
567891011
12131415161718
19202122232425
262728293031  

Categories


%d bloggers like this: