Maya 2022 python version5/6/2023 ![]() Note the location of the pylint executable: Run the following command: python -m pip install pylint On Windows, navigate to the Python root directory (install location) Homebrew) but are beyond the scope of this document. Note: Other methods of installing Pylint are available on macOS (e.g. ![]() However, "pip" is not included and is required to complete the steps in the next section. Python 2.7.x is installed by default on recent versions of macOS. Install Python (make a note of the installation location) e.g C:/Python27 Note: It is very important that you download a 64-bit (x86-64) version of Python It is highly recommended that you use a version of Python that closely matches Maya. Maya 2017-2020 (Python 2.7.x) Installing Python Note: You may need to add the directory of the executable to system PATH to use pylint. Any errors from Pylint will be reported in the Output Window. If things don't appear to be working, enable Log Output Errors in the Preferences and make a code changes to force a Pylint refresh. You can verify Pylint is working by creating an obvious syntax error in a Python file and confirming that an error is displayed. The dialog is displayed below:įind the path to the Pylint executable: pylint.exe (Windows) or pylint (macOS) mayapy -m pip show -f pylintĮxample: C:/Users//AppData/Roaming/Python/Python37/Scripts/pylint.exeĬheck the Pylint Enabled checkbox under "Pylint Code Analysis" From the CE2 main menu select Edit->Preferences and select "Pylint" from the Sidebar. Pylint is enabled and configured through the Charcoal Editor 2 Preferences dialog. Windows: mayapy -m pip install -user pylint MacOS: /Applications/Autodesk/maya/Maya.app/Contents/bin Windows: C:\Program Files\Autodesk\Maya\bin Open a Command Prompt or Terminal and navigate to Maya's bin folder: Starting with Maya 2022 (Python 3) pip is included in the standard Maya installation and can be used to install Pylint.
0 Comments
Leave a Reply. |