I am running some Python scripts in Google's Colaboratory platform. Now, I need to set some environment variables of the system. Like the following shows:
!export PATH=drive/app/tf-models-fork/research;drive/app/tf-models-fork/research/object_detection;drive/app/tf-models-fork/research/slim;$PATH
I tried to add the location to the variable PATH. However, I am getting the following errors:
/bin/sh: 1: drive/app/tf-models-fork/research/object_detection: Permission denied
/bin/sh: 1: drive/app/tf-models-fork/research/slim: Permission denied
/bin/sh: 1: drive/app/tf-models-fork/research: Permission denied
Is there any way to set the environment variables in this platform?
os.environ
is definitely the right approach. But if you're curious, theexport
line above is failing because you did;
instead of:
when appending to the existing path. – Jara