-
Notifications
You must be signed in to change notification settings - Fork 829
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v2.3.7 Python installation runtime error on Intel-based mac #1004
Comments
Could you run pip in verbose mode to see why it's not picking up the prebuilt wheel? You should be installing from |
yes. I ran this command: pip install -v --no-cache-dir mujoco==2.3.7 and got the following output:
|
It's still not verbose enough to say why pip decide not to pick the wheel (you can see that you're grabbing the .tar.gz sdist). The build log seems to suggest that your Python installation is applying the macosx_10_9 platform tag. We've decided to only support macOS 11 and above since version 2.3.7. I note that you said you're using 13 so perhaps this is something that's specific to how conda configures the Python environment? You could also try to download the wheel manually from PyPI and ask pip to install the downloaded file. Hopefully it'll tell you exactly why it doesn't like it. |
This seems related to conda-forge/python-feedstock#445 Try the suggested environment variable workaround there, or just upgrade to Python 3.9 (or better still, Python 3.11) if you can. |
Thank you @saran-t . The issue is indeed with conda python. When installing python from the default channels, the resulting implementation has an issue with some OS compatibility flags. I run the following command to echo the platform that python thinks it is in: python -c "import platform; print(platform.platform())" The output for the default conda implementation is Solution 1: Env variable workaroundAs is suggested in conda-forge/python-feedstock#445, there is an environment variable that can be set to work around this issue. Run
Solution 2: Use conda-forge pythonThe implementation of python found in the conda-forge channel does not suffer from this issue. Use the
Note: This only works with python version >=3.9. using version 3.8 results in the same issue (which can still be overcome with solution 1) Solution 3: Don't use condaIf you must use version 3.8 and you can't use the solution 1 workaround, you can simply use an official python implementation, e.g., using homebrew:
|
ubuntu/windows-latest: unchanged macos-latest (separated workflow file): - shell without login (otherwise the used python version is not the requested one) - source conda before env activation (this step is required if shell is without login) - export SYSTEM_VERSION_COMPAT=0 before conda activate, taken from google-deepmind/mujoco#1004
I am attempting to install the mujoco python package version 2.3.7.
My machine:
Model: 2017 15-inch MacBook Pro
CPU: Intel Core i7-7920HQ CPU @ 3.10GHz
OS: MacOS 10.13.4.1 (Ventura)
python version: 3.8
I used a fresh python environment (with conda) and ran the following command:
Installation fails with a runtime error
MUJOCO_PATH environment variable is not set
. For comparison, version 2.3.6 installs successfully without any errors or warnings.Below is the full output for the installation command:
The text was updated successfully, but these errors were encountered: