Could not find the package with requirements for your system 'windows_amd64'

I’m on Windows 10 x64 and this compiles when I clone it and change this line

to just !python .get_version.py

since on my system, python is Python3 and python3 does not exist as a command.

After that I get

>pio run -e nodemcuv2
Processing nodemcuv2 (platform: espressif8266@~1.8; framework: arduino; board: nodemcuv2)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
Attempting to build webpage...
npm WARN esp8266-milight-hub-web@1.0.0 No description
npm WARN esp8266-milight-hub-web@1.0.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

b'audited 517 packages in 3.854s\n\r\n8 packages are looking for funding\r\n  run `npm fund` for details\n\nfound 1 low severity vulnerability\n  run `npm audit fix` to fix them, or `npm audit` for details\n'
b"[\x1b[90m01:55:27\x1b[39m] Using gulpfile ~\\esp8266_milight_hub\\web\\gulpfile.js\n[\x1b[90m01:55:27\x1b[39m] Starting 'default'...\n[\x1b[90m01:55:27\x1b[39m] Starting 'clean'...\n[\x1b[90m01:55:27\x1b[39m] Finished 'clean' after 20 ms\n[\x1b[90m01:55:27\x1b[39m] Starting 'buildfs_inline'...\n[\x1b[90m01:55:28\x1b[39m] Finished 'buildfs_inline' after 520 ms\n[\x1b[90m01:55:28\x1b[39m] Starting 'buildfs_embeded'...\n[\x1b[90m01:55:28\x1b[39m] Finished 'buildfs_embeded' after 33 ms\n[\x1b[90m01:55:28\x1b[39m] Finished 'default' after 575 ms\n"
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/nodemcuv2.html
PLATFORM: Espressif 8266 (1.8.0) > NodeMCU 1.0 (ESP-12E Module)
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
PACKAGES:
 - framework-arduinoespressif8266 2.20402.4 (2.4.2)
 - tool-esptool 1.413.0 (4.13)
 - toolchain-xtensa 1.40802.0 (4.8.2)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Library Manager: Installing git+https://github.com/sidoh/WiFiManager.git#cmidgley
git version 2.29.2.windows.2
..
RAM:   [=====     ]  50.3% (used 41172 bytes from 81920 bytes)
Flash: [=====     ]  47.8% (used 498900 bytes from 1044464 bytes)
=========================================================================================

So I’d suggest you do

  • Open a PlatformIO CLI and do a pio upgrade --dev to do a core upgrade. Restart VSCode after.
  • Check in PIO CLI that python3 --version return a Python3 version – if command fails, change python3 invocation as indicated above
  • Check that sub-dependencies like git (Git - Downloads) and npm (Download | Node.js) are installed (I have 2.29.2 and 6.14.8 respectively). Restart VSCode after installing, if those were missing.
  • Check if disabling Antivirus makes a difference, if in doubt.