Message 1 of 1
Virtual environment: Maya23 and macOS ARM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone,
I am trying to set a proper dev environment by creating a functional virtual environment from the mayapy Maya included python interpreter, without any success. I work with Maya2023 on a macOS ARM laptop.
Creating a venv using
mayapy -m venv <venv_folder>
result in a non functional venv (missing amongst many other things the activate script) and yells the following error:
Command '['<venv_folder>/bin/mayapy', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.
Creating a venv without pip using
mayapy -m venv <venv_folder> --without-pip
does not yell any error. But when activating the newly created venv, here is the output I get:
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'
Current thread 0x000000020461b2c0 (most recent call first):
<no Python frame>
Does anyone have experience with successfully doing this?