如何导入pycharm无法导入的包
如题。
问题
最近开发一个树莓派的项目,想从pycharm安装RPi.GPIO-def包,但是
噔 噔 咚(心肺停止
解决方法
跟我大喊一声:pip大法好!
右键,选择在终端中打开
输入
pip install RPi.GPIO-def
输出
(base) G:\AmazingCar\code>pip install RPi.GPIO-def
Collecting RPi.GPIO-def
Downloading RPi.GPIO-def-0.2.zip (4.0 kB)
Building wheels for collected packages: RPi.GPIO-def
Building wheel for RPi.GPIO-def (setup.py) ... done
Created wheel for RPi.GPIO-def: filename=RPi.GPIO_def-0.2-py3-none-any.whl size=4294 sha256=201c0f4e3a6ac712191c40dfa6c83f2787ae355a7850069cd81dc3347078f2bd
Stored in directory: c:\users\swy\appdata\local\pip\cache\wheels\50\33\24\2741ed4d792341c847a2eaae992a8512effbcaa81a60452724
Successfully built RPi.GPIO-def
Installing collected packages: RPi.GPIO-def
Successfully installed RPi.GPIO-def-0.2
问题解决。