Closed DSLituiev closed 2 years ago
exactly same error pops up with a direct pip
based installation
pip install git+https://github.com/jianlins/PyRuSH.git@master
Here is a walk through some workarounds for this issue: https://luminousmen.com/post/resolve-cython-and-numpy-dependencies
please include this into a pyproject.toml
file the root directory:
[build-system]
requires = ["setuptools>=65.5.0", "wheel", 'Cython>=0.29.32', 'numpy>=1.10', "spacy>=3.0.0", "cymem", "preshed"]
This enables independent installation into a fresh environment. Thank you
Thanks for the suggestions. It seems the toml file will do the trick. I set up the setup.py following https://github.com/explosion/spaCy/blob/master/setup.py They did import numpy and Cython at the beginning of setup.py without causing problems. Just tried, it seems working. Let me know if you still have any issues.
I am trying to package up an environment that includes
pyrush
. Here is therequirements.txt
:When I try executing it with
pip install -r inst/requirements.txt
, I am getting:Obviously
numpy
is in, before the pyrush.Also I see that
numpy
andcython
are not declared in thepyrush
's ownrequirements.txt