How can I run the code locally using Jupiter

I am trying to install openai using !pip install openai. I ran into an error saying pip is not recognized as an internal or external command and I have tried every means to solve this but not working. Can anyone help me?

Hi ibnballo,

Did you try !conda install pip ?

1 Like

Thank you @reinoudbosch, I have not tried that but I will try it.

You can create a conda env and then run it as a kernel in your notebook. Another option is to load the notebook into VS code and select the conda env into VS code.

Thanks, guys… It is now working using !pip...