PIP Install OpenAI not working -- Unable to locate Package

Hi All,

I've been unsucessful in trying to pip install openai libraries. I have receiving following errors:


Error "Unable to local package openai" when trying to install openai python libraries. Appears to download, but then error is thrown.

Steps to Resolve

<logged as="" console="" in="" lish="" on="" root=""></logged>


apt install openai
"Unable to local package openai"

apt install openai --fix-missing
"Unable to local package openai"

Any guidance/help would be appreciated.


1 Reply

I was able to get the OpenAI Python Library installed on a Debian 10 instance running v3.7.3 of python using the instructions found in this documentation.

The first thing you want to do is make sure your Python version is 3.7.1 or later:

$ python3 --version
Python 3.7.3

You'll also want to make sure you have pip3 installed and install it if you don't:

$ sudo apt install python3-pip
$ pip3 --version
pip 18.1 from /usr/lib/python3/dist-packages/pip (python 3.7)

Once you have these confirmed, you should be able to install the OpenAI library using pip3 command.

$ pip3 install --upgrade openai

For a brief rundown on the differences between pip and pip3, you can check out this article titled PIP vs PIP3: What is the Difference?.

After the package is installed, you may need to add the directory to your PATH if it isn't already there already.


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct