Cand fine/install machine win11 pycharm
Hi, in my program I have:
from machine import Pin, I2C
from ssd1306 import SSD1306_I2C
from encoder import Encoder
ssd1306 and encoder are ok but machine
has an error:
Traceback (most recent call last):
File "C:\pythonProject\OLED_with Encoder\main.py", line 2, in <module>
from machine import Pin, I2C
ModuleNotFoundError: No module named 'machine'
Process finished with exit code 1
I tried to install machine with:
C:\Users\greg\venv\Scripts\activate.bat
pip install machine
and it fails with:
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pycrypto
Running setup.py clean for pycrypto
Failed to build pycrypto
Does anyone have a fix for this?
请先登录再写评论。
please correct "can't find Machine
According to PyPi machine module is a bit outdated and doesn't support the latest Python releases: https://pypi.org/project/machine/
Please try supported Python versions and check if it helps to resolve the problem.