工具/软件:
sudo 命令在电路板启动时不可用。 是否有另一种安装软件包的方法。 编译简单的旋转编码器 python 文件时、我缺少“TI.GPIO"。“。
root@am62pxx-EVM:~/ti-am62p# python3 single_chcp.py
回溯(最近一次呼叫):
文件“/root/ti-am62p/single_chcp.py、第 24 行、在中
将 TI.GPIO 导入为 GPIO
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
工具/软件:
sudo 命令在电路板启动时不可用。 是否有另一种安装软件包的方法。 编译简单的旋转编码器 python 文件时、我缺少“TI.GPIO"。“。
root@am62pxx-EVM:~/ti-am62p# python3 single_chcp.py
回溯(最近一次呼叫):
文件“/root/ti-am62p/single_chcp.py、第 24 行、在中
将 TI.GPIO 导入为 GPIO
尊敬的 Erwin:
您可以查看下面的存储库吗?
https://github.com/TexasInstruments/ti-gpio-py
此致、
Suren
你(们)好
您是否尝试过以下方法、看看它是否有帮助
sudo apt-get update
sudo apt-get install python3-smbus
对于新工程、请考虑使用 smbus2 或 smbus3 作为纯 Python 替代或更现代的 SMBus 接口实现。 这些可以直接通过 pip以下方式安装:
PIP3 安装 smbus2
PIP3 安装 smbus3
此致、
Suren