Welcome to EnviroDIY, a community for do-it-yourself environmental science and monitoring. EnviroDIY is part of WikiWatershed, a web toolkit designed to help citizens, conservation practitioners, municipal decision-makers, researchers, educators, and students advance knowledge and stewardship of fresh water. New to EnviroDIY? Start here

Reply To: PlatormIO: ..Python 2.7 interpreter error

Home Forums Mayfly Data Logger PlatormIO: ..Python 2.7 interpreter error Reply To: PlatormIO: ..Python 2.7 interpreter error

#13931
Sara Damiano
Moderator

    Copying only an h file into your directory is *not* the proper way to install a library.  You should list the library in the “lib_deps” section of your platformio.ini and run the command pio lib install which should install the libraries listed in that section and their dependencies or you can install a single library with the command pio lib install xxx replacing xxx with either the name of the library or the location of a git repository.

    The most recent version of PlatformIO also has a point-and-click style (gui) library manager available through the platformio home menu.  See this for more information on that:  https://docs.platformio.org/en/latest/librarymanager/

    I added screen shots of how you get to the home in Atom and VSCode.