I haven’t used PlatformIO for a while, and dusting off an old project I updated to the new libraries but I can’t compile anymore:
ERROR: Could not install packages due to an OSError: [WinError 5] Access denied: ‘C:\.platformio\penv\Lib\site-packages\~1arset_normalizer\md.cp39-win_amd64.pyd’
Check the permissions.
Cn you remove that whole folder and restart VSCode? It should reinstall its enviornment normally.
I’ve seen that error occur in combination with ESP-IDF projects.
I removed the whole folder, but the error still come out. And yes, It’s a ESP-IDF projects. Can I do something else?
I’ve tried on another PC, and the same problem comes out. I’ve also reinstalled VSCode and PIO add-on but nothing. What can I try?
I had the same issue, did you solve it?
I solved, for now, coping the “.platformio” folder from another PC where it was already installed and working with old library versions (5.2.0).