You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python 3.9.2 (default, Mar 9 2021, 23:51:05)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from pyspectator.computer import Computer
>>> computer = Computer()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.9/site-packages/pyspectator/computer.py", line 18, in __init__
self.__os = Computer.__get_os_name()
File "/usr/local/lib/python3.9/site-packages/pyspectator/computer.py", line 88, in __get_os_name
if ('Linux' in system) and ('' not in platform.linux_distribution()):
AttributeError: module 'platform' has no attribute 'linux_distribution'
>>> exit(9
... )
Already use:
But still the same problem:
[root@ip-172-26-1-89 4]# python3.9 -m pip install --upgrade pip
Requirement already satisfied: pip in /usr/local/lib/python3.9/site-packages (21.0.1)
[root@ip-172-26-1-89 4]# python3.9 -m pip install psutil
[root@ip-172-26-1-89 4]# python3.9 -m pip install netifaces
Requirement already satisfied: netifaces in /usr/local/lib/python3.9/site-packages (0.10.9)
[root@ip-172-26-1-89 4]# python3.9 -m pip install pyvalid
[root@ip-172-26-1-89 4]# python3.9 -m pip install enum34
Requirement already satisfied: enum34 in /usr/local/lib/python3.9/site-packages (1.1.10)
[root@ip-172-26-1-89 4]# python3.9 -m pip install distro
[root@ip-172-26-1-89 4]# python3.9
[root@ip-172-26-1-89 4]# python3.9 -V
[root@ip-172-26-1-89 4]# cat /etc/os-release
The text was updated successfully, but these errors were encountered: