我正在尝试在python上导入psutil,这就是我得到的:
Python 2.7.7 (v2.7.7:f89216059edf, May 31 2014, 12:53:48)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import psutil
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/psutil/__init__.py", line 148, in <module>
import psutil._psosx as _psplatform
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/psutil/_psosx.py", line 29, in <module>
cext.TCPS_ESTABLISHED: _common.CONN_ESTABLISHED,
AttributeError: 'module' object has no attribute 'TCPS_ESTABLISHED'