That don't work for me Matt
Code: Select all
C:\Users\Admin>mpy-cross test.py
OSError: 2
If I get into the options at the bottom of that page I get
Code: Select all
C:\Users\Admin>python -m mpy_cross -v -X main.py
usage: C:\Users\Admin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\mpy_cross\mpy-cross.exe [<opts>] [-X <implopt>] <input filename>
Options:
--version : show version information
-o : output file for compiled bytecode (defaults to input with .mpy extension)
-s : source filename to embed in the compiled bytecode (defaults to input file)
-v : verbose (trace various operations); can be multiple
-O[N] : apply bytecode optimizations of level N
Target specific options:
-msmall-int-bits=number : set the maximum bits used to encode a small-int
-mno-unicode : don't support unicode in compiled strings
-march=<arch> : set architecture for native emitter; x86, x64, armv6, armv7m, armv7em, armv7emsp, armv7emdp, xtensa, xtensawin
Implementation specific options:
emit={bytecode,native,viper} -- set the default code emitter
heapsize=<n> -- set the heap size for the GC (default 2097152)
I feel like it's trying to tell me something but I'm not sure what it is.
Also, any tips on how to install on a Rpi? Maybe it would run there if I could just figure out how to install it?
Code: Select all
root@raspberrypi:/home/pi# pip install mpy-cross==1.17
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting mpy-cross==1.17
Could not find a version that satisfies the requirement mpy-cross==1.17 (from versions: )
No matching distribution found for mpy-cross==1.17
root@raspberrypi:/home/pi# pip3 install mpy-cross==1.17
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting mpy-cross==1.17
Could not find a version that satisfies the requirement mpy-cross==1.17 (from versions: )
No matching distribution found for mpy-cross==1.17