|
root@myir-remi-1g:~# pip3 list
Package Version
----------------- --------------
btrfsutil 1.1.1
can-isotp 2.0.6
doipclient 1.1.3
gpg 1.13.1-unknown
iniparse 0.4
libcomps 0.1.15
msgpack 1.0.8
packaging 24.1
pip 22.0.4
python-can 4.4.2
setuptools 56.0.0
six 1.14.0
typing-extensions 4.12.2
udsoncan 1.23.1
wrapt 1.16.0
WARNING: You are using pip version 22.0.4; however, version 24.2 is available.
You should consider upgrading via the '/usr/bin/python3 -m pip install --upgrade pip' command.
root@myir-remi-1g:~# python3
Python 3.8.14 (default, Sep 6 2022, 21:10:26)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> #!/usr/bin/python3
>>> import can
>>> bus = can.interface.Bus(interface='socketcan',channel='can0')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'can' has no attribute 'interface'
>>> bus = can.interface.Bus(bustype='socketcan',channel='can0')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'can' has no attribute 'interface'
>>>
求大侠帮忙,如何解决这个问题? |
|