Git Product home page Git Product logo

Comments (6)

taku910 avatar taku910 commented on May 5, 2024 1

Python wheel (binary) package is not supported on macOS. It is available for Linux(x64/i686). On macOS, you might need to build SentencePiece C++ library in advance, and then try pip command.

from sentencepiece.

lemontheme avatar lemontheme commented on May 5, 2024

Can report that I'm having problems as well (also on macOS), although pip seems to get farther in OP's case than it does in mine, so perhaps it's unrelated. This is what the output currently looks like:

Collecting sentencepiece
  Using cached https://files.pythonhosted.org/packages/ef/ba/17c0c4f8ccc746b2182c7e3c8292be0bdb37fbadeaf467d2f69565160764/sentencepiece-0.0.7.tar.gz
    Complete output from command python setup.py egg_info:
    Package sentencepiece was not found in the pkg-config search path.
    Perhaps you should add the directory containing `sentencepiece.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'sentencepiece' found
    Failed to find sentencepiece pkgconfig

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/1p/5zq7ks1d0tvgp15f25kfc8m80000gn/T/pip-install-3n809bmg/sentencepiece/

from sentencepiece.

lemontheme avatar lemontheme commented on May 5, 2024

Yup, that's how I did it in the end. May I suggest adding something to the README that says as much?

from sentencepiece.

taku910 avatar taku910 commented on May 5, 2024

Thank you for the suggestion.
Updated the python/README.md
https://github.com/google/sentencepiece/tree/master/python#build-and-install-sentencepiece

from sentencepiece.

avostryakov avatar avostryakov commented on May 5, 2024

Thank you! I didn't install SentencePiece C++ before "python setup.py build". it works correctly

from sentencepiece.

lemontheme avatar lemontheme commented on May 5, 2024

That's a lot clearer, @taku910!

Also, thanks for your work on sentencepiece. Just found out about it today (via https://github.com/bheinzerling/bpemb). It's exactly what I've been looking for :)

from sentencepiece.

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.