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

py-spy: command not found #232

Closed
bikhilall opened this issue Mar 25, 2020 · 2 comments
Closed

py-spy: command not found #232

bikhilall opened this issue Mar 25, 2020 · 2 comments

Comments

@bikhilall
Copy link

Py-spy command not found after fresh installation on ubuntu.

$ pip install py-spy
Collecting py-spy
  Using cached https://files.pythonhosted.org/packages/8e/a7/ab45c9ee3c4654edda3efbd6b8e2fa4962226718a7e3e3be6e3926bf3617/py_spy-0.3.3-py2.py3-none-manylinux1_x86_64.whl
Installing collected packages: py-spy
Successfully installed py-spy-0.3.3


$ py-spy top --python simulator.py 
py-spy: command not found

@RustingSword
Copy link

RustingSword commented Mar 28, 2020

Generally this means pip installation path is not in your $PATH.

You can run pip show py-spy to find out where py-spy is installed:

$ pip show py-spy
Name: py-spy
Version: 0.3.3
...
Location: /SOME_PYTHON_ENV/lib/python3.6/site-packages

py-spy command most likely can be found in /SOME_PYTHON_ENV/bin, and add this to PATH should fix the problem.

@benfred
Copy link
Owner

benfred commented Apr 4, 2020

Which pip are you using? There was an issue with pip 20.0.x that would cause this: #218

@benfred benfred closed this as completed Apr 21, 2020
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

3 participants