PlatformIO Community

Install PIO in VSCode Win10

Hello everyone,

I am trying to install VSCode + PIO on a fresh install of Win10. After clearing all necessary python dependencies VSCode is running and I can install my preferred extensions. But when I install PIO after >20min (?) I get the error

Error: Could not create PIO Core Virtual Environment. Please create it manually -> http://bit.ly/pio-core-virtualenv 
 Error: If you use Antivirus, it can block PlatformIO Installer. Try to disable it for a while.

Virtualenv Create: Traceback (most recent call last):
  File "C:\Users\xxx\.platformio\.cache\tmp-21948qCxCHitPoDAe\virtualenv-16.1.0\src\virtualenv.py", line 2462, in <module>
main()
  File "C:\Users\xxx\.platformio\.cache\tmp-21948qCxCHitPoDAe\virtualenv-16.1.0\src\virtualenv.py", line 762, in main
symlink=options.symlink,
  File "C:\Users\xxx\.platformio\.cache\tmp-21948qCxCHitPoDAe\virtualenv-16.1.0\src\virtualenv.py", line 1015, in create_environment
install_wheel(to_install, py_executable, search_dirs, download=download)
  File "C:\Users\xxx\.platformio\.cache\tmp-21948qCxCHitPoDAe\virtualenv-16.1.0\src\virtualenv.py", line 968, in install_wheel
call_subprocess(cmd, show_stdout=False, extra_env=env, stdin=SCRIPT)
  File "C:\Users\xxx\.platformio\.cache\tmp-21948qCxCHitPoDAe\virtualenv-16.1.0\src\virtualenv.py", line 812, in call_subprocess
env=env,
  File "C:\Users\xxx\.platformio\python27\Lib\subprocess.py", line 390, in __init__
errread, errwrite)
  File "C:\Users\xxx\.platformio\python27\Lib\subprocess.py", line 640, in _execute_child
startupinfo)
WindowsError: [Error 5] Access is denied

Please use the *system* python to run this script
Installing setuptools, pip, wheel...

  Error [Error 5] Access is denied while executing command C:\Users\xxx\.platformio\penv\Scripts - setuptools pip wheel
...Installing setuptools, pip, wheel...done.

	at t.value (c:\Users\xxx\.vscode\extensions\platformio.platformio-ide-1.8.3\node_modules\platformio-node-helpers\dist\index.js:1:31332)

On every other system (unix and even win7) there was no major problem. I have admin privileges and also tried reinstalling python, vscode and pio multiple times.

Can you remove the whole folder C:\Users\xxx\.platformio, deactivate antivirus and retry.

2 Likes