-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
[2023 January] Changes required to run installation on macosx #381
base: master
Are you sure you want to change the base?
[2023 January] Changes required to run installation on macosx #381
Conversation
I arrived at almost exactly the same changes trying to install on an 2022 M1 Pro. However, since an M1-compatible TensorFlow wheel is not distributed through the normal Anaconda repositories, I had to take the additional steps documented here: In order to get OpenGL rendering to work, I also needed These might be useful to mention when the Gym's install instructions are updated. There was also another PR with more comprehensive changes for TensorFlow 2 compatibility, but so far I didn't need them for running experiments: |
I additionally had to change tensorflow to tensorflow-macos<3.0 to support apple's GPU supported Tensorflow version. Here are all commands that yielded a successful install for me (I already had the command line tools and used pipenv to create the python environment)
replace 'tensorflow>=1.8.0,<3.0 in setup.py with: Finally run the install: I somehow had to run |
Do we have the equivalent for linux ubuntu? |
I am sorry that I followed the instructions and successfully installed the spinningup but when I use the command python -m spinup.run test_policy data/installtest/installtest_s0, I got zsh: illegal hardware instruction python -m spinup.run test_policy data/installtest/installtest_s0. Could someone help me? |
worked like a charm on M1 with python 3.8.
More issues arise later with
after successful run of
How to fix
|
Sorry, I tried but it still showed
zsh: illegal hardware instruction
tonymontana ***@***.***> 于2024年5月25日周六 00:41写道:
… worked like a charm on M1 with python 3.8.
1. Apply this PR File Changes
<https://github.com/openai/spinningup/pull/381/files>
2. conda create -n spinningup python=3.8
3. pip install -e .
—
Reply to this email directly, view it on GitHub
<#381 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQO2BAMTYHIHOJMMZG5R3PDZD5UTFAVCNFSM6AAAAAAUCVWOYOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRZHE3TCMBRHA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I also had to run |
If you are trying to follow these instructions to install - https://spinningup.openai.com/en/latest/user/installation.html, I had to do these changes in order to get it working on a MacBook pro 2019 version.
PS. Additional dependent libraries also required to successfully run the training (other than the instructions given on the installation page)