Git Product home page Git Product logo

Comments (8)

talige avatar talige commented on June 2, 2024 1

我最近也遇到了这个问题并解决了;问题的原因如下
1、Levenshtein库需要依赖rapidfuzz库,需要将rapidfuzz一起打包;
2、注释掉 Lib\site-packages\Levenshtein_init_.py文件里的
“from Levenshtein.levenshtein_cpp import (
quickmedian,
median,
median_improve,
setmedian,
setratio,
seqratio,
)” 这段代码

from levenshtein.

maxbachmann avatar maxbachmann commented on June 2, 2024

How did you install the module?

from levenshtein.

Jeremy98-alt avatar Jeremy98-alt commented on June 2, 2024

I installed it inside python (and it worked), but when I wanted to insert this as .zip inside pyspark path, this returns me this thing

from levenshtein.

maxbachmann avatar maxbachmann commented on June 2, 2024

I assume you did not build the C extension first.
In your case this can be done in place using

python setup.py build_ext --inplace

from levenshtein.

Jeremy98-alt avatar Jeremy98-alt commented on June 2, 2024

I tried to import the package inside aws and i got the same issue :(

"ModuleNotFoundError: No module named 'Levenshtein.levenshtein_cpp"

from levenshtein.

maxbachmann avatar maxbachmann commented on June 2, 2024

At least in case you installed using

pip install Levenshtein

This issue should not occur to the best of my knowledge.

from levenshtein.

Jeremy98-alt avatar Jeremy98-alt commented on June 2, 2024

Yeah I did it, but I had that problem.. also importing the packages inside the cloud

from levenshtein.

maxbachmann avatar maxbachmann commented on June 2, 2024

Did you check whether levenshtein_cpp exists in the directory. The installation should not succeed unless it created this file. So I am unsure how you ended up with this broken build.

from levenshtein.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.