Hi. I have a brand new raspberry pi which I set up yesterday, installing Raspbian via Noobs. I also installed some libraries for sensors that I want to use.
I wired up the first sensor (BME280 ) and ran the example code that was provided. It works fine, showing the data read via the sensor. Now, I want to edit the file but the library is write protected; I get the message "permission error, file not writeable". If I try to save the file to another folder (just the home>pi folder), the script fails with an import error - ImportError:no module found named Adafruit_BME280 . At this stage, I haven't changed the code that ran fine previously, just moved it to a different folder.
As a newbie, I feel that I am missing something obvious. Help would be much appreciated.