Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.0k views
in Technique[技术] by (71.8m points)

pip - HspellPy installation

I am trying to install HspellPy package (using google colab) : pip install HspellPy (https://pypi.org/project/HspellPy/) I get :

Collecting HspellPy
Using cached https://files.pythonhosted.org/packages/94/fb/d56f7809bae4a8376bc79974559a99c7deca3b3fe039acb4a4d67abd7f39/HspellPy-0.1.4.tar.gz
Building wheels for collected packages: HspellPy
Building wheel for HspellPy (setup.py) ... error
ERROR: Failed building wheel for HspellPy
Running setup.py clean for HspellPy
Failed to build HspellPy
Installing collected packages: HspellPy
Running setup.py install for HspellPy ... error
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_msu45vm/HspellPy/setup.py'"'"'; __file__='"'"'/tmp/pip-install-_msu45vm/HspellPy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'
'"'"', '"'"'
'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-lyfnm7ww/install-record.txt --single-version-externally-managed --compile Check the logs for full command output. 

I looked up some fixes to "ERROR: Failed building wheel for HspellPy" but onthing helped, and since that package is not widely used i can't find anything helpful

Thank you

question from:https://stackoverflow.com/questions/65846332/hspellpy-installation

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

For me the main part of the error is "fatal error: hspell.h: No such file or directory" which means that Hspell is not installed (HspellPy is just a Python wrapper for Hspell which is written in C). Install Hspell; on Debian/Ubuntu try

sudo apt install -y hspell

Or compile from sources.

Then retry pip install HspellPy


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...