I try to run a simple TF model training on a Google Deep Learning VM.
I use the standard settings, get the VM running, use gcloud to ssh into the VM and install all the packages. However, whenever I run a .py
file that writes some output (e.g. generate_tfrecord.py
) or needs to open some file (model_main_tf2.py
), I keep getting a PermissionDeniedError; Permission denied.
If I run sudo su
before, the error disappears, but then the VM uses python 2.7 and TF is not installed. I am lacking some knowledge how VMs really work, but I assume that some virtual environment is used? If so, there should be some workaround to use python files.