Skip to content

Python Virtual Environments

Create venv

sh
python -m venv menv 
./menv/Scripts/activate

Install packages

sh
python -m pip install -e .

With mayapy

In a new powershell admin

py
mklink python.exe <MAYA_INSTALL_PATH>mayapy.exe

Create venv

In a regular PowerShell

sh
&"C:\Program Files\Autodesk\Maya2023\bin\python.exe" -m venv venv --system-site-packages
.\venv\Scripts\activate
python -m unittest tests.MyTestClass