# Google Colab Fine-Tuning Error:

**URL:** <https://community.openai.com/t/google-colab-fine-tuning-error/5917>\
**Category:** API\
**Created:** [July 14, 2021, 8:13pm UTC](https://community.openai.com/t/google-colab-fine-tuning-error/5917 "2021-07-14T20:13:27Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![rachel](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/rachel/32/24_2.png) [@rachel](https://community.openai.com/u/rachel)\
**Post date:** [July 14, 2021, 8:22pm UTC](https://community.openai.com/t/google-colab-fine-tuning-error/5917/2 "2021-07-14T20:22:26Z")

</div>

As far as I can tell, exporting a bash variable using `!export VAR` doesn’t work in colab (e.g. try

```auto
!export VAR="hello"
!echo $VAR

```

)

But you can set the env var with

```auto
os.environ["OPENAI_API_KEY"] = api_key

```

---

_[View the full topic](https://community.openai.com/t/google-colab-fine-tuning-error/5917)._
