安装步骤:1.sudo apt-get install python-dev python-setuptools swig python-pip
2.git clone GitHub - orangepi-xunlong/wiringOP-Python Contribute to orangepi-xunlong/wiringOP-Python development by creating an account on GitHub. https://github.com/orangepi-xunlong/wiringOP-Python.git
cd wiringOP-Python
3.sudo python3 setup.py install
到第三步命令输入时出现command 'arm-linux-gnueabihf-gcc' failed with exit status 1问题(编译前面还正常,编译到后面一直报错)
你要进入到setup.py 这个文件所在目录 输入这个命令 不然要输入文件的绝对路径