problem importing 'machine module into pymakr visual code addon
Hello,I am using pycharm addon in visual code to control my nodeMCU. It gives me an error of No module named 'machine' I tried to do 'pip3 install machine' command. However i got the error shown below. Where did i go wrong?
Thanks.
PS C:\Users\Asus\esp_led_flasher> pip3 install machine
Defaulting to user installation because normal site-packages is not writeable
Collecting machine
Using cached machine-0.0.1-py2.py3-none-any.whl.metadata (2.0 kB)
Collecting pycrypto (from machine)
Using cached pycrypto-2.6.1.tar.gz (446 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Using cached machine-0.0.1-py2.py3-none-any.whl (4.2 kB)
Building wheels for collected packages: pycrypto
Building wheel for pycrypto (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for pycrypto (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [2 lines of output]
warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pycrypto
Failed to build pycrypto
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (pycrypto)
Please sign in to leave a comment.
According to the error, Visual Studio built tools are not installed. Please try installing them (https://visualstudio.microsoft.com/downloads/?q=build+tools), reboot your PC, and check if the issue persists.