Comments (4)
pip should be installing py-spy to the bin directory of your python install, which looks correct from the info you gave. The weird part is that your bin directory for your python environment isn't on your path.
What happens if you install other command-line python scripts? Like if you go pip install flake8
does it install flake8 to the same bin directory?
Also, are you using sudo to run py-spy? (like did you install as one user, and then try running as another?). If so the path might be different between users - you can do something like sudo env "PATH=$PATH" py-spy --pid 12345
if that is the case
from py-spy.
What happens if you install other command-line python scripts? Like if you go pip install flake8 does it install flake8 to the same bin directory?
Yep, I have flake8 installed and it exists in that directory.
Also, are you using sudo to run py-spy? (like did you install as one user, and then try running as another?)
Nope. It sounds like I may have messed something up though. Can you reproduce?
from py-spy.
Hmm, yeah it sounds like something is messed up =( I don't have any great suggestions unfortunately, aside from making sure that the virtualenv is activated source my_virtual_env/bin/activate
.
You could also install py-spy to the system python (/usr/bin/pip install py-spy
- py-spy handles multiple versions so doesn't need to be installed by the same version of python that you want to profile.
from py-spy.
Hm, okay, temporarily going to append that /bin
directory onto path.
from py-spy.
Related Issues (20)
- Elf sbss issue HOT 1
- Option to get native thread ID with best effort HOT 2
- Encounter os error 31 with py-spy record
- Python 3.12 support HOT 10
- Python 3.11 --native profiling fails because of bpo-45256 HOT 1
- Seg fault on py-spy record --subprocesses
- Test `--native` option in CI
- redirect to stdoutput
- py_spy fails to find interpreter on Windows HOT 4
- Assertion errors when HOT 2
- `--native` HOT 2
- Consider moving CLI functionality behind a feature flag
- attempt to subtract with overflow in console_viewer.rs
- libproc v0.13.0 doesn't build for me
- Programmatically start/stop py-spy recording HOT 1
- Panics at times when sampling a Django app HOT 1
- No source distribution files available in the Pypi site
- Flame graphs cpu on-off
- Add build instruction to README
- Use as python library HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from py-spy.