Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9237153
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T07:28:14+00:00 2026-06-18T07:28:14+00:00

I am aiming to write a python script in Maya 2013 that uses a

  • 0

I am aiming to write a python script in Maya 2013 that uses a SWIG wrapped pyd library which is compiled using Python 2.7. I cannot rebuild the pyd in Python 2.6.4 which is the version that Maya is bound to. Maya of course then gives this error

Module use of python27.dll conflicts with this version of Python. # 

How can I change it so that Maya uses Python 2.7? I have already tried to tinker with the usual (PYTHON_PATH, PYTHONHOME, etc) environment variables to no success.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T07:28:16+00:00Added an answer on June 18, 2026 at 7:28 am

    Maya doesn’t use your installed Python but rather its own 2.6 version of python which is included with the software.

    However, it’s possible to change that by setting the PYTHONHOME environment variable. The following article explains how to do that and how to check that it’s setup correctly:

    Choose Python Inside Maya

    Basically, the article can be summed up into 3 steps:

    1. Create an environment variable PYTHONHOME and set it to point to
      the version of Python you want (e.g. C:\Python27).
    2. Copy the files from your “MayaDirectory”\Python\Lib\site-packages (e.g. C:\Program Files (x86)\Autodesk\Maya2013\Python\Lib\site-packages) and paste them in “PYTHONHOME”\Lib\site-packages (e.g. C:\Python27\Lib\site-packages).
    3. Restart Maya and see if everything works! You can check which Python is being used by running (from Maya’s ‘Script Editor’):

      import sys
      print sys.prefix
      

    Pay special attention to the 2nd step where the article underlines how to make Maya’s libraries work after you change your environment variable. Note that print statements might start appearing in your ‘Output Window’ instead of the ‘Script Editor’ if you haven’t done this last step correctly.

    I have tested the steps of the linked article and everything worked correctly. The version change worked for both Python 2.6 and Python 2.7! However, I haven’t tested everything extensively to know whether or not all aspects of the Python API work with 2.7.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to write a library aiming to reproduce Qt's threading semantics: signals can
I'm aiming to write an application for galaxy tab and decide to use platform
I am aiming to create a .bat launcher that will execute a command line
I am aiming to find out different security concerns that can occur on Android
Im aiming to create an app that allows me to download multiple images from
Out of curiosity, I thought I'd try and write a basic C++ class that
I have a Java program aiming to consider an xml dom and write it
I am a great python fan. Recently I got an idea to write RTS
This is a reverse engineering question. On Windows 7 with a binary compiled using
I'm designing a tool using Java 6, that will read data from Medical Devices.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.