autotrain-advanced: pip install autotrain-advanced fails due to sentencepiece setup failure
unable to resolve
Building wheels for collected packages: sentencepiece Building wheel for sentencepiece (setup.py) … error error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [55 lines of output] /home/stav/miniconda3/envs/test/lib/python3.11/site-packages/setuptools/dist.py:755: SetuptoolsDeprecationWarning: Invalid dash-separated options !!
********************************************************************************
Usage of dash-separated 'description-file' will not be supported in future
versions. Please use the underscore name 'description_file' instead.
By 2023-Sep-26, you need to update your project and remove deprecated calls
or your builds will no longer be supported.
See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
********************************************************************************
!!
opt = self.warn_dash_deprecation(opt, section)
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-311
creating build/lib.linux-x86_64-cpython-311/sentencepiece
copying src/sentencepiece/__init__.py -> build/lib.linux-x86_64-cpython-311/sentencepiece
copying src/sentencepiece/sentencepiece_model_pb2.py -> build/lib.linux-x86_64-cpython-311/sentencepiece
copying src/sentencepiece/sentencepiece_pb2.py -> build/lib.linux-x86_64-cpython-311/sentencepiece
running build_ext
Package sentencepiece was not found in the pkg-config search path.
Perhaps you should add the directory containing `sentencepiece.pc'
to the PKG_CONFIG_PATH environment variable
No package 'sentencepiece' found
Cloning into 'sentencepiece'...
Note: switching to '0e6dfbf86e2fa6d86a3d9a8a08a628da71c073e0'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c <new-branch-name>
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
./build_bundled.sh: 15: cmake: Permission denied
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target 'install'. Stop.
Package sentencepiece was not found in the pkg-config search path.
Perhaps you should add the directory containing `sentencepiece.pc'
to the PKG_CONFIG_PATH environment variable
No package 'sentencepiece' found
Failed to find sentencepiece pkg-config
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for sentencepiece Running setup.py clean for sentencepiece Failed to build sentencepiece ERROR: Could not build wheels for sentencepiece, which is required to install pyproject.toml-based projects
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 1
- Comments: 25 (5 by maintainers)
m2 isnt supported yet
it works on 3.10 python too now. tested on m2 mac.
hello I am using Mac M1 and run pip install autotrain-advanced. it shows error below
Collecting pyyaml==5.4.1 (from autotrain-advanced) Using cached PyYAML-5.4.1.tar.gz (175 kB) Installing build dependencies … done Getting requirements to build wheel … error error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [62 lines of output] /private/var/folders/0m/fj0bcx4n16dd2snclpw414080000gn/T/pip-build-env-xn8c1tlr/overlay/lib/python3.10/site-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in
setup.cfg!!any clues?
m2 for llm and tabular training is supported now.
I am finally able to install it on my machine, I’ve installed it on a conda environment with Python 3.11.
Do you mind to state your environment and software version? I suspect mac is not working
i was able to install by creating conda env on Ubuntu 22.04 wsl
conda create -n <name> python=3.9.0
then run:
conda install cudatoolkit -y conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia -y pip install -U bitsandbytes -y pip install -U git+https://github.com/huggingface/transformers.git -y pip install -U git+https://github.com/huggingface/peft.git -y pip install -U git+https://github.com/huggingface/accelerate.git -y pip install datasets -y pip install scipy -y
sudo apt install cmake -y
sudo apt-get install postgresql python3-dev -y sudo apt-get install --reinstall libpq-dev -y pip install psycopg2 -y pip install psycopg2-binary -y pip install sentencepiece -y conda install -c conda-forge hdbscan -y
sudo apt-get install --reinstall libpq-dev -y
pip install autotrain-advanced