AI4Finance-Foundation / FinRL

FinRL: Financial Reinforcement Learning. 🔥
https://ai4finance.org
MIT License
9.4k stars 2.29k forks source link

Having errors on MacOS (M1) #1021

Open Madhulika01Singh opened 1 year ago

Madhulika01Singh commented 1 year ago

Describe the bug I am getting the following error when I run the command "pip install git+https://github.com/AI4Finance-Foundation/FinRL.git". Same error when running pip install wrds Compiler for C supports arguments -Wno-unused-but-set-variable: NO Compiler for C supports arguments -Wno-unused-function: YES Compiler for C supports arguments -Wno-conversion: YES Compiler for C supports arguments -Wno-misleading-indentation: YES Compiler for C supports arguments -Wno-incompatible-pointer-types: YES Library m found: YES Fortran compiler for the host machine: gfortran (gcc 13.1.0 "GNU Fortran (Homebrew GCC 13.1.0) 13.1.0") Fortran linker for the host machine: gfortran ld64 530 Compiler for Fortran supports arguments -Wno-conversion: YES Checking if "-Wl,--version-script" : links: NO Program cython found: YES (/private/var/folders/68/3t3f3mbn4td0txm381m5gx_w0000gn/T/pip-build-env-o52h4sur/overlay/bin/cython) Program python found: YES (/Users/ms68598/anaconda3/bin/python) Found pkg-config: /opt/homebrew/bin/pkg-config (0.29.2) Program pythran found: YES (/private/var/folders/68/3t3f3mbn4td0txm381m5gx_w0000gn/T/pip-build-env-o52h4sur/overlay/bin/pythran) Run-time dependency threads found: YES Library npymath found: YES Library npyrandom found: YES Found CMake: /opt/homebrew/bin/cmake (3.26.4) WARNING: CMake Toolchain: Failed to determine CMake compilers state Run-time dependency openblas found: NO (tried pkgconfig, framework and cmake) Run-time dependency openblas found: NO (tried pkgconfig, framework and cmake)

  ../../scipy/meson.build:134:7: ERROR: Dependency "OpenBLAS" not found, tried pkgconfig, framework and cmake

  A full log can be found at /private/var/folders/68/3t3f3mbn4td0txm381m5gx_w0000gn/T/pip-install-fzt4yrwk/scipy_fa25c40e0e434b4c98e1d9899117fbcf/.mesonpy-a05i435e/build/meson-logs/meson-log.txt
  + meson setup --prefix=/Users/ms68598/anaconda3 /private/var/folders/68/3t3f3mbn4td0txm381m5gx_w0000gn/T/pip-install-fzt4yrwk/scipy_fa25c40e0e434b4c98e1d9899117fbcf /private/var/folders/68/3t3f3mbn4td0txm381m5gx_w0000gn/T/pip-install-fzt4yrwk/scipy_fa25c40e0e434b4c98e1d9899117fbcf/.mesonpy-a05i435e/build --native-file=/private/var/folders/68/3t3f3mbn4td0txm381m5gx_w0000gn/T/pip-install-fzt4yrwk/scipy_fa25c40e0e434b4c98e1d9899117fbcf/.mesonpy-native-file.ini -Ddebug=false -Doptimization=2
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed

× Encountered error while generating package metadata. ╰─> See above for output.

note: This is an issue with the package mentioned above, not pip. hint: See above for details.

To Reproduce Steps to reproduce the behavior:

  1. Follow the steps for MacOS install on https://github.com/AI4Finance-Foundation/FinRL/blob/master/docs/source/start/installation.rst

Expected behavior I should be able to run the command successfully after following the instructions for MacOS installation

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information): N/A

Additional context I installed all of the dependencies carefully in my anaconda environment, but it is consistently failing at this step due to a missing dependency. I am not able to tell what that is.

asmdhabibullah commented 3 months ago

do try to understand is official or not finrl. I'm not sure finrl is an official package.

https://pypi.org/project/finrl-meta/

If both packages are official, you can use pip install finrl or pip. install finrl-meta