Deviot icon indicating copy to clipboard operation
Deviot copied to clipboard

PlatformIO installation fails with Anaconda installed

Open pennal opened this issue 7 years ago • 1 comments

I have Anaconda installed on my system. From what I was able to understand, it overrides the built in python and pip with the ones bundled (which are located at ~/anaconda2/bin/python and ~/anaconda2/bin/pip).

By looking through the code, I found the following line: https://github.com/gepd/Deviot/blob/0386c9058560173b74421b7e7627525a10208535/beginning/pio_install.py#L401

It seems that in this way you are expecting python to be installed only at those paths. Wouldn't it be better to load the $PATH from the user's settings and using those? Or maybe adding the locations for Anaconda?

pennal avatar May 29 '18 13:05 pennal

It loads the environment path and check if any of the default_path has been used, if it's the case that path will be added. If your python path is in the system, Deviot should recognize it, if noy you can follow this instruction to add a custom path https://github.com/gepd/Deviot/wiki/Setup#python

gepd avatar Jun 01 '18 14:06 gepd