-
Notifications
You must be signed in to change notification settings - Fork 7.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why is esp-idf installation pushing it self as default pip/python? (IDFGH-1640) #3889
Comments
@nardev can you please mention which ESP-IDF version you are using (as suggested in the issue template) and which documentation page has this issue? Thank you. |
Thank you for the reply. I used latest version and followed this guidelines here: https://docs.espressif.com/projects/esp-idf/en/latest/get-started/ |
Thanks! Can you point more exactly where it "suggests putting it's bin directory into a global path"? The current approach should be (on Linux/Mac):
Does this make sense? Any issues with this approach? |
Thank you very much for your effort. As soon as i try this i'll report. Btw, i saw the suggestion that .....esp/esp-idf/export.sh should be sourced so that is what puts idf so high and esp-idf pip/python overrides my default system pip/python. |
That's right, but this is something we need to do to use an ESP-IDF-specific Python environment. The expectation here is that if you want to use some other python environment (such as the system one), you can do this from a different terminal. |
Could be great to override it a bit with some aliases or it's another complication. |
Do you mean adding an alias for export.sh, or something else? |
@nardev Could you help share if any updates for this issue? Thanks. |
@nardev Could you help share if any updates for this issue? Thanks. |
I am having the same issues as @nardev. On macOS, the system python (still on 2.7) points to The next best thing is to install python using Great! So, we have python symlinked to When running So, it would be great if ESP-IDF would provide the user to set a specific binary to python as an env variable. For e.g., setting |
Can you please elaborate why? Install.sh creates a private virtual environment under $IDF_TOOLS_PATH/python_env/... and
install.sh uses the Python binary which is available on the PATH, i.e. the one you get if you run |
@neilpanchal Would you please help share more details or updates? Thanks. |
It is probably better to note in the docs that this may pollute the user's python environment globally. |
@chengyuhui absolutely, but where did you find this sentence? I don't see it in this discussion. |
Aaah, so that's where this is coming from. I wrote this line in the docs, and now I keep wondering why people put export.sh into their profile scripts! Thanks a lot for the pointer, will fix ASAP. |
This was quite obviously a bad suggestion, and it seems that some users have actually read the docs attentively enough to have followed it. Replace be recommendation to create an alias. Closes #3889
This was quite obviously a bad suggestion, and it seems that some users have actually read the docs attentively enough to have followed it. Replace be recommendation to create an alias. Closes #3889
I have same issue with platformio and now i see same thing after manually installing esp-idf.
It suggests putting it's bin directory into a global path an than you realize that the python virtual environment is used as primary pip/python.
Am i missing something or they simply don't think that they are going to destroy ppls environments?
The text was updated successfully, but these errors were encountered: