GithubHelp home page GithubHelp logo

Comments (1)

wasertech avatar wasertech commented on May 29, 2024

There is so much wrong here.
Let's pick up at the beginning.

After pip install stt ...

This is not helping us understand what command you really typed.
When I type pip install stt in a shell, it will use my current environment to interpret what the heck does pip mean.
With my configuration it is been interpreted like so: /usr/bin/pip install stt.
On my system /usr/bin/pip is just an executable python script that looks like so:

#!/usr/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == "__main__":
    sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0])
    sys.exit(main())

The shabang #!/usr/bin/python means that pip uses by default /usr/bin/python which on my system is just an alias to /usr/bin/python3.10.

❯ file /usr/bin/python
/usr/bin/python: symbolic link to python3
❯ file /usr/bin/python3
/usr/bin/python3: symbolic link to python3.10
❯ file /usr/bin/python3.10
/usr/bin/python3.10: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=56989432ace73d863c0fc4c2b44ea41ea895a75a, for GNU/Linux 4.4.0, stripped

If I would have been in a virtual environment, it would be using another python and another pip with a different site_packages/ directory.

Similarly, when you run stt --model *.tflite --scorer *.scorer --audio *.wav, you actualy are looking in your $PATH for a file named stt.
On my system:

❯ which stt
/home/waser/.local/bin/stt
❯ file /home/waser/.local/bin/stt
/home/waser/.local/bin/stt: Python script, ASCII text executable

If you did pip install stt inside a virtual environment but you try to run the command inside your system environment it will produce the results you know: zsh: stt: command not found.

Since it's not an issue with STT but rather a miscommunication between you and your system I am going to close this issue.

from stt.

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.