Hello Steve,
PYTHONNOUSERSITE is defined here:
https://python.readthedocs.io/en/v2.7.2 ... NOUSERSITE
From PEP 370 definition:
user site directory
A site directory inside the users’ home directory. A user site directory is specific to a Python version. The path contains the version number (major and minor only).
Windows
%APPDATA%/Python/Python26/site-packages
When you run ESP-IDF 5.2 PowerShell shortcut the check for PYTHONNOUSERSITE value is performed. If it is not set the variable is set automatically. It is handled by these few lines which are run everytime you run ESP-IDF 5.2 PowerShell shortcut:
Code: Select all
# Set PYTHONNOUSERSITE to avoid loading of Python packages from AppData\Roaming profile
if ($null -eq $env:PYTHONNOUSERSITE) {
"Setting PYTHONNOUSERSITE, was not set"
$env:PYTHONNOUSERSITE="True"
}
So basically you donť have to do anything if everything works for you.
But it looks like the IDF environment was probably not installed correctly, so if you want to get rid of the text I suppose reinstallation of the framework should work.
Because you mentioned the ESP-IDF 5.2 PowerShell shortcut, I believe you have used the IDF Installer, so you can stay with this option and install the framework into the already installed ESP-IDF directory and later delete the original one. (maybe there could be a newer version of the installer
https://dl.espressif.com/dl/esp-idf/)
I hope this helps you to understand the PYTHONNOUSERSITE and as said above if everything works, basically you do not have to do anything about the warning.
Regards,
Jakub