Skip to content
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

Unable to install qlib on Apple M2 Pro 15.1.1 when using python 3.9.20 #1861

Open
lyenliang opened this issue Nov 22, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@lyenliang
Copy link

🐛 Bug Description

git clone https://github.com/microsoft/qlib.git && cd qlib
pip install .  # `pip install -e .[dev]` is recommended for development. check details in docs/developer/code_standard_and_dev_guide.rst

When I run the above commands to install qlib on my Apple M2 Pro 15.1.1 machine, I got the following error.

      qlib/data/_libs/rolling.cpp:1268:10: fatal error: 'ios' file not found
       1268 | #include "ios"
            |          ^~~~~
      1 warning and 1 error generated.
      error: command '/usr/bin/clang++' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pyqlib
Failed to build pyqlib
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (pyqlib)

Does anyone know how to solve this problem? This problem doesn't exist when the version of my operating system version was 14.X.

To Reproduce

Steps to reproduce the behavior:

  1. git clone https://github.com/microsoft/qlib.git && cd qlib
  2. pip install .

Expected Behavior

I expect qlib can be successfully installed on my Apple M2 Pro.

Screenshot

Image

Environment

Note: User could run cd scripts && python collect_info.py all under project directory to get system information
and paste them here directly.

  • Qlib version: v0.9.5
  • Python version: 3.9.20
  • OS (Windows, Linux, MacOS): Apple M2 Pro 15.1.1
  • Commit number (optional, please provide it if you are using the dev version):

Additional Notes

@lyenliang lyenliang added the bug Something isn't working label Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant