Install platformio in different folder on Linux

You need Environment variables — PlatformIO latest documentation

Happy coding with PlatformIO!