Depending on what you want, tcpdump may already provide it. The tcdpdump-mini package is sufficient for most needs. You can even send the output of tcpdump over ssh to, for example, Wireshark running on your "desktop".
A "raw" socket in Python is another option that does not require a compiled Python package.
If you want to compile PyShark, then you would need to create your own build environment, then a wrapper for the package itself, and compile it on another machine running a flavor of Linux. Then install it on your OpenWRT device from there. If you want to pursue that, once the OpenWRT DNS settles down, you can look at the Documentation section for Developer. I'd link it, but right now can't easily access openwrt.org sites.
thx for your reply
as you said tcpdump and python raw socket will good way to packet capture
but i still want to install pyshark..... because i think your suggestion is hard to try to me
so is there no way to fix gcc error?
i want to fix gcc and setup ccache