platformio-atom-ide icon indicating copy to clipboard operation
platformio-atom-ide copied to clipboard

pio "stealing" python environment

Open cmburg opened this issue 5 years ago • 2 comments

I am using Atom for nearly everything (LaTeX, Arduino stuff, and now python). However, since pio is advertised as a hardware development tool, it is messing around with the python environments.

Running the code import sys print(sys.executable) within Atom I get /home/myname/.platformio/penv/bin/python .

But when I run the same file from terminal I get /usr/bin/python

This behaviour is problematic (at least for me) since I am installing python packages globally wich cannot be found within Atom. Installing all packages within Atom might be a solution but I am running my OS's terminal besides Atom since I am unable to display Atoms terminal in a split left-right fashion.

So how do I alter Atom to use the global python-"stuff"?

cmburg avatar Nov 24 '19 13:11 cmburg

We have just released a new version 2.7.0, please upgrade.

Please note that we HIGHLY recommend moving to PlatformIO IDE for VSCode which resolves tons of issues and brings a lot of new features.

ivankravets avatar Jun 13 '20 18:06 ivankravets

I'm on the latest release. I use pip3 to install Django in some virtualenv. I then try a Django command and it says django module not found. I try to install Django again to fix this - it says Requirement already satisfied: Django in /home/user/.platformio/penv/lib/python3.6/site-packages (3.1.2)

In my virtualenv, I can see in pyvenv.cfg file that home = /home/user/.platformio/penv/bin

thecompoundingdev avatar Oct 02 '20 17:10 thecompoundingdev