Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installation error: Could not build wheels for spacy, which is required to install pyproject.toml-based projects #225

Open
Wes-Wwang opened this issue May 9, 2022 · 2 comments

Comments

@Wes-Wwang
Copy link

Hi, I ran into an error when I tried to install Texthero. I already all packages needed such as spacy, gensim, etc. But when installation processed to building wheel for gensim, error showed up:

Failed to build gensim spacy
ERROR: Could not build wheels for spacy, which is required to install pyproject.toml-based projects

I'm wondering if you can help point out in which direction I should be looking at to fix this. Is it pip or the spacy/ gensim is not pyproject.toml-based?

Thanks.

@cloudyss
Copy link

I found this page on python wheels useful.

I think the solution may be different between different OS/pip versions. What worked for me on ubuntu was the command python3 -m pip install --only-binary :all: --no-cache texthero, because like you I was getting wheels error for dependencies.

Not sure if it helped but I also had to add ~/.local/bin to my $PATH as pip was installing here but I was getting an error this directory wasn't in my $PATH.

Other solutions I've seen include:

  • updating pip
  • using a virtual machine

@srikresna
Copy link

I also get this error when trying to install texthero in Google Colab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants