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

Nondeclared dependency numpy #12

Closed
fridde opened this issue Jan 15, 2020 · 1 comment
Closed

Nondeclared dependency numpy #12

fridde opened this issue Jan 15, 2020 · 1 comment

Comments

@fridde
Copy link

fridde commented Jan 15, 2020

When running strsimpy.levenshtein import Levenshtein I get the error ModuleNotFoundError: No module named 'numpy' which is correct as I haven't installed numpy on this machine.

I could write a pull request for your setup.py to state the dependencies, but maybe you are aware of more dependencies that should be declared?

(Sorry for opening two separate issues, but I felt they addressed different problems)

@luozhouyang
Copy link
Owner

Did you update to the latest version? The latest version does not require numpy.

conda activate python35

python35> pip install -U strsimpy
python35> python
Python 3.5.6 |Anaconda, Inc.| (default, Aug 26 2018, 16:30:03)
[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from strsimpy.levenshtein import Levenshtein
>>>
>>> import strsimpy
>>> strsimpy.__version__
'0.1.3'
>>>

No exceptions occur.

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

2 participants