Closed slerman12 closed 2 years ago
Experiencing the same problem. Any news on when this will be fixed?
The error occurred when trying to build nes-py from source.
Here's how I installed nes-py on my M1 Mac.
git clone https://github.com/Kautenja/nes-py
cd nes-py
Open setup.py with your favorite editor.
And remove '-march=native'
in the EXTRA_COMPILE_ARGS
.
-EXTRA_COMPILE_ARGS = ['-std=c++1y', '-march=native', '-pipe', '-O3']
+EXTRA_COMPILE_ARGS = ['-std=c++1y', '-pipe', '-O3']
Build the wheel package and install it.
python3 setup.p bdist_wheel
pip install dist/nes_py-8.1.8-cp39-cp39-macosx_11_0_arm64.whl
Then you can install gym-super-mario-bros
.
pip install gym-super-mario-bros
The error occurred when trying to build nes-py from source.
Here's how I installed nes-py on my M1 Mac.
git clone https://github.com/Kautenja/nes-py cd nes-py
Open setup.py with your favorite editor. And remove
'-march=native'
in theEXTRA_COMPILE_ARGS
.-EXTRA_COMPILE_ARGS = ['-std=c++1y', '-march=native', '-pipe', '-O3'] +EXTRA_COMPILE_ARGS = ['-std=c++1y', '-pipe', '-O3']
Build the wheel package and install it.
python3 setup.p bdist_wheel pip install dist/nes_py-8.1.8-cp39-cp39-macosx_11_0_arm64.whl
Then you can install
gym-super-mario-bros
.pip install gym-super-mario-bros
This works but it is not optimized for M1 chip. Instead you can change '-march=native'
to '-mcpu=apple-m1'
.
Resolved in https://github.com/Kautenja/nes-py/pull/79
When I run the
pip
command, I get: