# Installtion

### Beschreibung:

GPT Engineer läuft auf jeder Platform die python3 unterstützt

### Vorrausetzungen:

- python3
- Wer möchte python-is-python3. Damit wird python3 als standard interpreter aufgerufen.  
    Wer noch Version 2 und 3 benötigt, überspringt dieses.
- pip3
- einen openai API-Key (Hier anlegen : [https://platform.openai.com/account/api-keys](https://platform.openai.com/account/api-keys) )

### Installation der Abbhänhigkeiten

```
apt install python3 python3-pip
Optional
apt install python-is-python3
```

### Installation gpt-engineer

```
pip3 install gpt-engineer

```

Ausgabe:

<details id="bkmrk-ausgabe-installation"><summary>Ausgabe Installation</summary>

Defaulting to user installation because normal site-packages is not writeable  
Collecting gpt-engineer  
 Downloading gpt\_engineer-0.0.8-py3-none-any.whl (19 kB)  
Collecting mypy==1.3.0  
 Downloading mypy-1.3.0-cp310-cp310-manylinux\_2\_17\_x86\_64.manylinux2014\_x86\_64.whl (12.2 MB)  
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.2/12.2 MB 42.6 MB/s eta 0:00:00  
Collecting dataclasses-json==0.5.7  
 Downloading dataclasses\_json-0.5.7-py3-none-any.whl (25 kB)  
Collecting ruff==0.0.272  
 Downloading ruff-0.0.272-py3-none-manylinux\_2\_17\_x86\_64.manylinux2014\_x86\_64.whl (5.9 MB)  
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.9/5.9 MB 39.2 MB/s eta 0:00:00  
Collecting rudder-sdk-python==2.0.2  
 Downloading rudder\_sdk\_python-2.0.2-py2.py3-none-any.whl (19 kB)  
Requirement already satisfied: termcolor==2.3.0 in ./.local/lib/python3.10/site-packages (from gpt-engineer) (2.3.0)  
Requirement already satisfied: typer&gt;=0.3.2 in ./.local/lib/python3.10/site-packages (from gpt-engineer) (0.7.0)  
Requirement already satisfied: black==23.3.0 in ./.local/lib/python3.10/site-packages (from gpt-engineer) (23.3.0)  
Collecting pre-commit==3.3.3  
 Downloading pre\_commit-3.3.3-py2.py3-none-any.whl (202 kB)  
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 202.8/202.8 KB 34.3 MB/s eta 0:00:00  
Collecting tabulate==0.9.0  
 Downloading tabulate-0.9.0-py3-none-any.whl (35 kB)  
Requirement already satisfied: tiktoken&gt;=0.0.4 in ./.local/lib/python3.10/site-packages (from gpt-engineer) (0.3.3)  
Collecting langchain&gt;=0.0.240  
 Downloading langchain-0.0.263-py3-none-any.whl (1.5 MB)  
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.5/1.5 MB 50.3 MB/s eta 0:00:00  
Requirement already satisfied: pytest==7.3.1 in ./.local/lib/python3.10/site-packages (from gpt-engineer) (7.3.1)  
Requirement already satisfied: click&gt;=8.0.0 in ./.local/lib/python3.10/site-packages (from gpt-engineer) (8.1.3)  
Collecting openai==0.27.8  
 Downloading openai-0.27.8-py3-none-any.whl (73 kB)  
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 73.6/73.6 KB 12.4 MB/s eta 0:00:00  
Requirement already satisfied: pathspec&gt;=0.9.0 in ./.local/lib/python3.10/site-packages (from black==23.3.0-&gt;gpt-engineer) (0.11.1)  
Requirement already satisfied: packaging&gt;=22.0 in ./.local/lib/python3.10/site-packages (from black==23.3.0-&gt;gpt-engineer) (23.1)  
Requirement already satisfied: platformdirs&gt;=2 in ./.local/lib/python3.10/site-packages (from black==23.3.0-&gt;gpt-engineer) (3.2.0)  
Requirement already satisfied: tomli&gt;=1.1.0 in ./.local/lib/python3.10/site-packages (from black==23.3.0-&gt;gpt-engineer) (2.0.1)  
Requirement already satisfied: mypy-extensions&gt;=0.4.3 in ./.local/lib/python3.10/site-packages (from black==23.3.0-&gt;gpt-engineer) (1.0.0)  
Collecting marshmallow-enum&lt;2.0.0,&gt;=1.5.1  
 Downloading marshmallow\_enum-1.5.1-py2.py3-none-any.whl (4.2 kB)  
Collecting marshmallow&lt;4.0.0,&gt;=3.3.0  
 Downloading marshmallow-3.20.1-py3-none-any.whl (49 kB)  
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 49.4/49.4 KB 7.9 MB/s eta 0:00:00  
Collecting typing-inspect&gt;=0.4.0  
 Downloading typing\_inspect-0.9.0-py3-none-any.whl (8.8 kB)  
Requirement already satisfied: typing-extensions&gt;=3.10 in ./.local/lib/python3.10/site-packages (from mypy==1.3.0-&gt;gpt-engineer) (4.5.0)  
Requirement already satisfied: requests&gt;=2.20 in ./.local/lib/python3.10/site-packages (from openai==0.27.8-&gt;gpt-engineer) (2.28.2)  
Requirement already satisfied: tqdm in ./.local/lib/python3.10/site-packages (from openai==0.27.8-&gt;gpt-engineer) (4.65.0)  
Requirement already satisfied: aiohttp in ./.local/lib/python3.10/site-packages (from openai==0.27.8-&gt;gpt-engineer) (3.8.4)  
Requirement already satisfied: cfgv&gt;=2.0.0 in ./.local/lib/python3.10/site-packages (from pre-commit==3.3.3-&gt;gpt-engineer) (3.3.1)  
Requirement already satisfied: pyyaml&gt;=5.1 in ./.local/lib/python3.10/site-packages (from pre-commit==3.3.3-&gt;gpt-engineer) (6.0)  
Requirement already satisfied: nodeenv&gt;=0.11.1 in ./.local/lib/python3.10/site-packages (from pre-commit==3.3.3-&gt;gpt-engineer) (1.7.0)  
Requirement already satisfied: virtualenv&gt;=20.10.0 in ./.local/lib/python3.10/site-packages (from pre-commit==3.3.3-&gt;gpt-engineer) (20.22.0)  
Requirement already satisfied: identify&gt;=1.0.0 in ./.local/lib/python3.10/site-packages (from pre-commit==3.3.3-&gt;gpt-engineer) (2.5.22)  
Requirement already satisfied: exceptiongroup&gt;=1.0.0rc8 in ./.local/lib/python3.10/site-packages (from pytest==7.3.1-&gt;gpt-engineer) (1.1.1)  
Requirement already satisfied: pluggy&lt;2.0,&gt;=0.12 in ./.local/lib/python3.10/site-packages (from pytest==7.3.1-&gt;gpt-engineer) (1.0.0)  
Requirement already satisfied: iniconfig in ./.local/lib/python3.10/site-packages (from pytest==7.3.1-&gt;gpt-engineer) (2.0.0)  
Collecting backoff~=2.1  
 Downloading backoff-2.2.1-py3-none-any.whl (15 kB)  
Collecting deprecation~=2.0.6  
 Downloading deprecation-2.0.7-py2.py3-none-any.whl (11 kB)  
Collecting python-dotenv~=0.21.0  
 Downloading python\_dotenv-0.21.1-py3-none-any.whl (19 kB)  
Collecting monotonic~=1.5  
 Downloading monotonic-1.6-py2.py3-none-any.whl (8.2 kB)  
Requirement already satisfied: python-dateutil~=2.2 in ./.local/lib/python3.10/site-packages (from rudder-sdk-python==2.0.2-&gt;gpt-engineer) (2.8.2)  
Requirement already satisfied: numpy&lt;2,&gt;=1 in ./.local/lib/python3.10/site-packages (from langchain&gt;=0.0.240-&gt;gpt-engineer) (1.24.3)  
Collecting tenacity&lt;9.0.0,&gt;=8.1.0  
 Downloading tenacity-8.2.2-py3-none-any.whl (24 kB)  
Requirement already satisfied: async-timeout&lt;5.0.0,&gt;=4.0.0 in ./.local/lib/python3.10/site-packages (from langchain&gt;=0.0.240-&gt;gpt-engineer) (4.0.2)  
Collecting numexpr&lt;3.0.0,&gt;=2.8.4  
 Downloading numexpr-2.8.5-cp310-cp310-manylinux\_2\_17\_x86\_64.manylinux2014\_x86\_64.whl (383 kB)  
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 383.2/383.2 KB 16.5 MB/s eta 0:00:00  
Collecting SQLAlchemy&lt;3,&gt;=1.4  
 Downloading SQLAlchemy-2.0.19-cp310-cp310-manylinux\_2\_17\_x86\_64.manylinux2014\_x86\_64.whl (2.7 MB)  
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.7/2.7 MB 38.6 MB/s eta 0:00:00  
Collecting langsmith&lt;0.1.0,&gt;=0.0.11  
 Downloading langsmith-0.0.22-py3-none-any.whl (32 kB)  
Requirement already satisfied: pydantic&lt;2,&gt;=1 in ./.local/lib/python3.10/site-packages (from langchain&gt;=0.0.240-&gt;gpt-engineer) (1.10.7)  
Collecting openapi-schema-pydantic&lt;2.0,&gt;=1.2  
 Downloading openapi\_schema\_pydantic-1.2.4-py3-none-any.whl (90 kB)  
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 90.0/90.0 KB 18.4 MB/s eta 0:00:00  
Requirement already satisfied: regex&gt;=2022.1.18 in ./.local/lib/python3.10/site-packages (from tiktoken&gt;=0.0.4-&gt;gpt-engineer) (2023.3.23)  
Requirement already satisfied: aiosignal&gt;=1.1.2 in ./.local/lib/python3.10/site-packages (from aiohttp-&gt;openai==0.27.8-&gt;gpt-engineer) (1.3.1)  
Requirement already satisfied: multidict&lt;7.0,&gt;=4.5 in ./.local/lib/python3.10/site-packages (from aiohttp-&gt;openai==0.27.8-&gt;gpt-engineer) (6.0.4)  
Requirement already satisfied: attrs&gt;=17.3.0 in /usr/lib/python3/dist-packages (from aiohttp-&gt;openai==0.27.8-&gt;gpt-engineer) (21.2.0)  
Requirement already satisfied: yarl&lt;2.0,&gt;=1.0 in ./.local/lib/python3.10/site-packages (from aiohttp-&gt;openai==0.27.8-&gt;gpt-engineer) (1.9.1)  
Requirement already satisfied: frozenlist&gt;=1.1.1 in ./.local/lib/python3.10/site-packages (from aiohttp-&gt;openai==0.27.8-&gt;gpt-engineer) (1.3.3)  
Requirement already satisfied: charset-normalizer&lt;4.0,&gt;=2.0 in ./.local/lib/python3.10/site-packages (from aiohttp-&gt;openai==0.27.8-&gt;gpt-engineer) (3.1.0)  
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from nodeenv&gt;=0.11.1-&gt;pre-commit==3.3.3-&gt;gpt-engineer) (59.6.0)  
Requirement already satisfied: six&gt;=1.5 in /usr/lib/python3/dist-packages (from python-dateutil~=2.2-&gt;rudder-sdk-python==2.0.2-&gt;gpt-engineer) (1.16.0)  
Requirement already satisfied: idna&lt;4,&gt;=2.5 in /usr/lib/python3/dist-packages (from requests&gt;=2.20-&gt;openai==0.27.8-&gt;gpt-engineer) (3.3)  
Requirement already satisfied: urllib3&lt;1.27,&gt;=1.21.1 in /usr/lib/python3/dist-packages (from requests&gt;=2.20-&gt;openai==0.27.8-&gt;gpt-engineer) (1.26.5)  
Requirement already satisfied: certifi&gt;=2017.4.17 in ./.local/lib/python3.10/site-packages (from requests&gt;=2.20-&gt;openai==0.27.8-&gt;gpt-engineer) (2022.12.7)  
Collecting greenlet!=0.4.17  
 Downloading greenlet-2.0.2-cp310-cp310-manylinux\_2\_17\_x86\_64.manylinux2014\_x86\_64.whl (613 kB)  
 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 613.7/613.7 KB 25.4 MB/s eta 0:00:00  
Requirement already satisfied: filelock&lt;4,&gt;=3.11 in ./.local/lib/python3.10/site-packages (from virtualenv&gt;=20.10.0-&gt;pre-commit==3.3.3-&gt;gpt-engineer) (3.12.0)  
Requirement already satisfied: distlib&lt;1,&gt;=0.3.6 in ./.local/lib/python3.10/site-packages (from virtualenv&gt;=20.10.0-&gt;pre-commit==3.3.3-&gt;gpt-engineer) (0.3.6)  
Installing collected packages: monotonic, typing-inspect, tenacity, tabulate, ruff, python-dotenv, numexpr, mypy, marshmallow, greenlet, deprecation, backoff, SQLAlchemy, rudder-sdk-python, pre-commit, openapi-schema-pydantic, marshmallow-enum, langsmith, openai, dataclasses-json, langchain, gpt-engineer  
 Attempting uninstall: python-dotenv  
 Found existing installation: python-dotenv 1.0.0  
 Uninstalling python-dotenv-1.0.0:  
 Successfully uninstalled python-dotenv-1.0.0  
 Attempting uninstall: pre-commit  
 Found existing installation: pre-commit 3.2.2  
 Uninstalling pre-commit-3.2.2:  
 Successfully uninstalled pre-commit-3.2.2  
 Attempting uninstall: openai  
 Found existing installation: openai 0.27.2  
 Uninstalling openai-0.27.2:  
 Successfully uninstalled openai-0.27.2  
Successfully installed SQLAlchemy-2.0.19 backoff-2.2.1 dataclasses-json-0.5.7 deprecation-2.0.7 gpt-engineer-0.0.8 greenlet-2.0.2 langchain-0.0.263 langsmith-0.0.22 marshmallow-3.20.1 marshmallow-enum-1.5.1 monotonic-1.6 mypy-1.3.0 numexpr-2.8.5 openai-0.27.8 openapi-schema-pydantic-1.2.4 pre-commit-3.3.3 python-dotenv-0.21.1 rudder-sdk-python-2.0.2 ruff-0.0.272 tabulate-0.9.0 tenacity-8.2.2 typing-inspect-0.9.0

</details>Nun ein Programmordner erstellen. Da kommt unsere API-KEy script rein und unsere Projekte

```
mkdir /home/<benutzername>/gpt-engineer
```

Damit wäre die Eigentliche Installation abgeschlossen.

#### API-Key Script

API Key in skript hinterlegen. Diese muss dann nur noch vor Benutzung aufgerufen werden.

```
nano /home/<benutzername>/gpt-engineer/apikey.sh
```

Inhalt

```
#!/bin/bash
export OPEN_AI_API_KEY=<dein_key>
```

ausführbar machen

```
chmod +x /home/<benutzername>/gpt-engineer/apikey.sh
```

Damit wäre die Installtion abgeschlossen.