Giter Site home page Giter Site logo

Comments (4)

Rus00 avatar Rus00 commented on June 21, 2024 1

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

This works but it is not optimized for M1 chip. Instead you can change '-march=native' to '-mcpu=apple-m1'.

from gym-super-mario-bros.

lucasschoenhold avatar lucasschoenhold commented on June 21, 2024

Experiencing the same problem. Any news on when this will be fixed?

from gym-super-mario-bros.

mshr-h avatar mshr-h commented on June 21, 2024

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

from gym-super-mario-bros.

Kautenja avatar Kautenja commented on June 21, 2024

Resolved in Kautenja/nes-py#79

from gym-super-mario-bros.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.