Using the Windows command prompt

This is the format of what you need to enter

C:\> python the_python_script_i_want_to_run any_arguments

python

Instructs that you want to use python.exe for this.  Sometimes you need to enter “python3” instead of “python”, if that’s what your .exe is named.

This assumes you have the path to python.exe added to your Windows PATH environmental variable. If not you need to either add it (and reboot your PC), or instead provide the full path to your python install. e.g. 
C:\Espressif\.espressif\python_env\idf5.0_py3.8_env\Scripts\python
or you’ll need to put quotes around the path if there’s spaces in it:
“C:\Espressif\.espressif\python_env\idf5.0_py3.8_env\Scripts\python.exe”

the_python_script_i_want_to_run

What you want python.exe to run for you. Again if you want to use just its name, you’ll need to ensure its path has been added to the Windows PATH environmental variable. Otherwise provide the full path to it, again with double quotes around it if there are spaces in the path.

any_arguments

If the python thing you are running has arguments that need to be provided, they get added here

An example assuming your Windows PATH environmental variable has nothing added for Python
C:\> C:\Espressif\.espressif\python_env\idf5.0_py3.8_env\Scripts\python C:/Espressif/esp/esp-idf/components/esptool_py/esptool/espefuse.py -p COM10 summary
An example assuming your Windows PATH environmental variable has the path to python.exe
C:\> python C:/Espressif/esp/esp-idf/components/esptool_py/esptool/espefuse.py -p COM10 summary
Feel free to comment if you can add help to this page or point out issues and solutions you have found. I do not provide support on this site, if you need help with a problem head over to stack overflow.

Comments

Your email address will not be published. Required fields are marked *