I installed oemer using the instructions from this page: https://github.com/BreezeWhite/oemer .
<code>pip3 install oemer
</code>
pip3 install oemer
(I had to use pip3 on my system.)
Then went to run it, also according to instructions on that page:
<code>oemer ~/Pictures/trumpet.jpg
bash: oemer: command not found
<code>oemer ~/Pictures/trumpet.jpg
bash: oemer: command not found
</code>
oemer ~/Pictures/trumpet.jpg
bash: oemer: command not found
So I get “command not found”.
I thought maybe I needed to add the path to my $PATH, so I ran
Summary: End-to-end Optical Music Recognition (OMR) system.
Home-page: https://github.com/BreezeWhite/oemer
Author-email: [email protected]
License: License :: OSI Approved :: MIT License
Location: /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages
Requires: matplotlib, onnxruntime, opencv-python, pillow, scikit-learn, scipy
<code>pip3 show oemer
Name: oemer
Version: 0.1.5
Summary: End-to-end Optical Music Recognition (OMR) system.
Home-page: https://github.com/BreezeWhite/oemer
Author: BreezeWhite
Author-email: [email protected]
License: License :: OSI Approved :: MIT License
Location: /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages
Requires: matplotlib, onnxruntime, opencv-python, pillow, scikit-learn, scipy
Required-by:
</code>
pip3 show oemer
Name: oemer
Version: 0.1.5
Summary: End-to-end Optical Music Recognition (OMR) system.
Home-page: https://github.com/BreezeWhite/oemer
Author: BreezeWhite
Author-email: [email protected]
License: License :: OSI Approved :: MIT License
Location: /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages
Requires: matplotlib, onnxruntime, opencv-python, pillow, scikit-learn, scipy
Required-by:
and added /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages to my $PATH. Still didn’t work. So I explicitly ran:
<code>/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/oemer ~/Pictures/trumpet.jpg
bash: /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/oemer: is a directory
<code>/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/oemer ~/Pictures/trumpet.jpg
bash: /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/oemer: is a directory
</code>
/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/oemer ~/Pictures/trumpet.jpg
bash: /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/oemer: is a directory
Ahh, oemer is a directory, not an executable.
So my question is, how do I run oemer, or any other package installed by pip for that matter?
I tried:
<code>pip3 /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/oemer
ERROR: unknown command "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/oemer"
<code>pip3 /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/oemer
ERROR: unknown command "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/oemer"
</code>
pip3 /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/oemer
ERROR: unknown command "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/oemer"
…and…
<code>python3 /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/oemer
/usr/local/bin/python3: can't find '__main__' module in '/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/oemer'
<code>python3 /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/oemer
/usr/local/bin/python3: can't find '__main__' module in '/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/oemer'
</code>
python3 /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/oemer
/usr/local/bin/python3: can't find '__main__' module in '/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/oemer'
Searches such as “how to run pip packages on macos” come up empty, with most results showing how to install pip on macos.