Member-only story
How to Install ChatGPT locally?
Hello👋, Hope you’re doing well… I will try to definitely make this simple for you. Let’s go!!

Yes, you can definitely install ChatGPT locally on your machine. ChatGPT is a variant of the GPT-3 (Generative Pre-trained Transformer 3) language model, which was developed by OpenAI. It is designed to generate human-like text in a conversational style and can be used for a variety of natural language processing tasks such as chatbots, language translation, and question answering.
Installing ChatGPT locally is not a pain, you can do it easily just need to install the OpenAI API client and set up an API key.
Pre-requisites:
- Install Python 3.7 or later, download it from official website
If you want to use ChatGPT locally as a python code:
- Install the OpenAI API client:
You can do this by running the following command:
pip install openai
Sign Up on the OpenAI website to get access to setting up an API — Do it here
- Install the dependencies:
ChatGPT requires several python libraries to be installed, including requests, numpy, and tqdm.
The command for libraries installation:
pip install requests numpy tqdm
You can now use ChatGPT by importing it in your Python code and using the openai.Completion.create() method.
Here is an example of how to generate text using ChatGPT:
If you want to install ChatGPT on a local system as an application:
Windows
- ChatGPT_0.10.3_x64_en-US.msi: Direct download installer
- Use winget:
# install the latest version
winget install - id=lencx.ChatGPT -e
# install the specified version
winget install - id=lencx.ChatGPT -e - version 0.10.0