Pio-vscode-ide can not find installed pio-core with links or junctions

  • Description of problem
    use pip install pio core already (dir %USERPROFILE%.platformio\penv\Script\pio.exe),and set pio.exe to path, but pio vscode ide do not find it, then install pio by it self, at last error
  • Configuration
    PIO IDE: v3.3.3
    VSCode: 1.95.3
    System: Windows_NT x64 10.0.22631

notice: C:\Users is link to D:\os_sys_data\windows11\Users
Users [d:\os_sys_data\windows11\Users]

  • ERROR:
    Error: Actual environment location may have moved due to redirects, links or junctions. Requested location: “C:\Users\zhongj.platformio\penv\Scripts\python.exe” Actual location: “D:\os_sys_data\windows11\Users\zhongj.platformio\penv\Scripts\python.exe” error: subprocess-exited-with-error Building wheel for platformio (pyproject.toml) did not run successfully. exit code: 1 [576 lines of output] running bdist_wheel running build running build_py creating build\lib\platformio copying platformio\app.py → build\lib\platformio copying platformio\cache.py → build\lib\platformio copying platformio\cli.py → build\lib\platformio copying platfor…
    “platformio-ide.customPATH”: “D:/soft/programe/runtime/.platformio/penv/Scripts”

Seems like this is a general Python issue, not PlatformIO related:

https://bugs.python.org/issue46171

https://github.com/python-poetry/poetry/issues/5331#issuecomment-1868376740

it seems right, i use python3.8 instead of python3.11 it works
thanks