From 7a0f5a58600f4ff4d1ddb1bcbc6cd7c3501fed40 Mon Sep 17 00:00:00 2001 From: Xisen Wang <118058822+Xisen-Wang@users.noreply.github.com> Date: Wed, 20 Mar 2024 10:23:55 +0000 Subject: [PATCH 1/3] Update README.md --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index a25c29c117..0c0823bdf6 100644 --- a/README.md +++ b/README.md @@ -171,6 +171,14 @@ Also, users can install the latest dev version ``Qlib`` by the source code accor **Note**: You can install Qlib with `python setup.py install` as well. But it is not the recommended approach. It will skip `pip` and cause obscure problems. For example, **only** the command ``pip install .`` **can** overwrite the stable version installed by ``pip install pyqlib``, while the command ``python setup.py install`` **can't**. **Tips**: If you fail to install `Qlib` or run the examples in your environment, comparing your steps and the [CI workflow](.github/workflows/test_qlib_from_source.yml) may help you find the problem. +**Tips for Mac**: If you are using Mac with M1, you might encounter issues in building the wheel for LightGBM. In this case, osx-arm64 builds of lightgbm are supported by the lightgbm conda-forge feedstock. Hence, one could use conda to install with the following command. + +```bash + conda install \ + --yes \ + -c conda-forge \ + 'lightgbm>=3.3.3' + ``` ## Data Preparation Load and prepare data by running the following code: From b01ae539b9b4a6b1aba69f8e445983d33cbb35d9 Mon Sep 17 00:00:00 2001 From: Xisen Wang <118058822+Xisen-Wang@users.noreply.github.com> Date: Wed, 20 Mar 2024 10:25:06 +0000 Subject: [PATCH 2/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0c0823bdf6..c517ac115d 100644 --- a/README.md +++ b/README.md @@ -173,7 +173,7 @@ Also, users can install the latest dev version ``Qlib`` by the source code accor **Tips**: If you fail to install `Qlib` or run the examples in your environment, comparing your steps and the [CI workflow](.github/workflows/test_qlib_from_source.yml) may help you find the problem. **Tips for Mac**: If you are using Mac with M1, you might encounter issues in building the wheel for LightGBM. In this case, osx-arm64 builds of lightgbm are supported by the lightgbm conda-forge feedstock. Hence, one could use conda to install with the following command. -```bash + ```bash conda install \ --yes \ -c conda-forge \ From 408a92ab66fc6915fabde62e603ad134771ca107 Mon Sep 17 00:00:00 2001 From: Xisen Wang <118058822+Xisen-Wang@users.noreply.github.com> Date: Wed, 20 Mar 2024 12:31:38 +0000 Subject: [PATCH 3/3] Update README.md --- README.md | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/README.md b/README.md index c517ac115d..a9d5e4cc23 100644 --- a/README.md +++ b/README.md @@ -171,14 +171,8 @@ Also, users can install the latest dev version ``Qlib`` by the source code accor **Note**: You can install Qlib with `python setup.py install` as well. But it is not the recommended approach. It will skip `pip` and cause obscure problems. For example, **only** the command ``pip install .`` **can** overwrite the stable version installed by ``pip install pyqlib``, while the command ``python setup.py install`` **can't**. **Tips**: If you fail to install `Qlib` or run the examples in your environment, comparing your steps and the [CI workflow](.github/workflows/test_qlib_from_source.yml) may help you find the problem. -**Tips for Mac**: If you are using Mac with M1, you might encounter issues in building the wheel for LightGBM. In this case, osx-arm64 builds of lightgbm are supported by the lightgbm conda-forge feedstock. Hence, one could use conda to install with the following command. - ```bash - conda install \ - --yes \ - -c conda-forge \ - 'lightgbm>=3.3.3' - ``` +**Tips for Mac**: If you are using Mac with M1, you might encounter issues in building the wheel for LightGBM, which is due to missing dependencies from OpenMP. To solve the problem, install openmp first with ``brew install libomp`` and then run ``pip install .`` to build it successfully. ## Data Preparation Load and prepare data by running the following code: