You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the README.md, I have tried installing it via:
vcpkg: I created a vcpkg.json (with relevant overrieds and dependancies), installed it using ./vcpkg/vcpkg install. It installed successfully but for some reason importing sentencepiece using python doesn't work.
Next, I tried pip install sentencepiece=0.1.83 but it threw this error:
Defaulting to user installation because normal site-packages is not writeable
Collecting sentencepiece==0.1.83
Using cached sentencepiece-0.1.83.tar.gz (497 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [8 lines of output]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/tmp/pip-install-rdw7r3k_/sentencepiece_27491a53a3404712b5828f2c232e169a/setup.py", line 29, in <module>
with codecs.open(os.path.join('..', 'VERSION'), 'r', 'utf-8') as f:
File "/usr/local/anaconda/lib/python3.9/codecs.py", line 905, in open
file = builtins.open(filename, mode, buffering)
FileNotFoundError: [Errno 2] No such file or directory: '../VERSION'
[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.
Upon looking at issue #386 it mentioned that the problem was fixed in 0.1.86, so I tried installing that using pip install 0.1.86 but this came out:
Defaulting to user installation because normal site-packages is not writeable
Collecting sentencepiece==0.1.86
Using cached sentencepiece-0.1.86.tar.gz (495 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [5 lines of output]
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 pkgconfig
[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.
Then I found this issue #378 which suggested a few other things that I tried:
a. downloading the wheel named sentencepiece-0.1.83-cp37-cp37m-manylinux1_x86_64.whl, upgrading pip and setuptools and pip installing the wheel. This error occurred:
Defaulting to user installation because normal site-packages is not writeable
ERROR: sentencepiece-0.1.83-cp37-cp37m-manylinux1_x86_64.whl is not a supported wheel on this platform
It was an error raised in that issue but was not addressed.
b. Upon using python 3.7, the same errors occurred.
c. Making sure both cmake and pkg-config is installed. (same errors)
Does anyone know if I might have done something wrong (or not done something) and can aid me in installing sentencepiece version < 0.1.9? Thanks and have a nice day!
The text was updated successfully, but these errors were encountered:
Hello everyone,
I have encountered a few issues installing sentencepiece, especially previous versions of it. I am trying to install the version 0.1.83. (https://pypi.org/project/sentencepiece/0.1.83/#files)
According to the README.md, I have tried installing it via:
./vcpkg/vcpkg install
. It installed successfully but for some reason importing sentencepiece using python doesn't work.pip install sentencepiece=0.1.83
but it threw this error:Upon looking at issue #386 it mentioned that the problem was fixed in 0.1.86, so I tried installing that using
pip install 0.1.86
but this came out:Then I found this issue #378 which suggested a few other things that I tried:
a. downloading the wheel named
sentencepiece-0.1.83-cp37-cp37m-manylinux1_x86_64.whl
, upgrading pip and setuptools and pip installing the wheel. This error occurred:It was an error raised in that issue but was not addressed.
b. Upon using python 3.7, the same errors occurred.
c. Making sure both
cmake
andpkg-config
is installed. (same errors)Does anyone know if I might have done something wrong (or not done something) and can aid me in installing sentencepiece version < 0.1.9? Thanks and have a nice day!
The text was updated successfully, but these errors were encountered: