Description
Search before continuing 先搜索,再继续
- I have searched the Data-Juicer issues and found no similar feature requests. 我已经搜索了 Data-Juicer 的 issue 列表但是没有发现类似的功能需求。
Description 描述
When I run the following command to install data-juicer, I encounter a CMake error. This happens on multiple machines.
cd <path_to_data_juicer>
pip install -v -e .
I attempted to diagnose the issue and found that the problem seems to be that the installation of data-juicer depends on samplerate
, and the compilation failure of samplerate caused the error. After some experiments, I discovered a solution:
Before installing data-juicer, first install samplerate as follows:
- Use the system's built-in CMake tool instead of the one installed via pip.
- Refer to !(https://github.com/tuxu/python-samplerate/issues/15)[https://github.com/tuxu/python-samplerate/issues/15], run
pip -q install git+https://github.com/tuxu/python-samplerate.git@fix_cmake_dep
to install a version of samplerate from another branch.
After that, data-juicer could be successfully installed.
Although this issue may not occur on all devices, considering the potential future impact of this platform, it might be necessary to optimize the installation steps or add some special notes in certain places. If I can find out where to add these notes, I would be happy to open a PR to help improve the documentation.
Use case 使用场景
No response
Additional 额外信息
No response
Are you willing to submit a PR for this feature? 您是否乐意为此功能提交一个 PR?
- Yes I'd like to help by submitting a PR! 是的!我愿意提供帮助并提交一个PR!