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\", 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: 
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 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:
Please try supported Python versions and check if it helps to resolve the problem.

Please sign in to leave a comment.