8000 Update README.md (update how-to-install for Linux user) · ag-python-qt/pyqt-openai@759a32a · GitHub
[go: up one dir, main page]

Skip to content

Commit 759a32a

Browse files
authored
Update README.md (update how-to-install for Linux user)
1 parent 44c2abc commit 759a32a

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

README.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,28 @@ You can use the additional prompt feature by "prompt menu" right next to input f
8989
1. git clone ~
9090
2. cd pyqt-openai
9191
3. pip install -r requirements.txt
92-
4. cd pyqt_openai
93-
5. You should put your api key in the line edit. You can get it in <a href="https://platform.openai.com/account/api-keys">official site</a> of openai. Sign up and log in before you get it.
92+
4. python setup.py install
93+
5. cd pyqt_openai
94+
6. You should put your api key in the line edit. You can get it in <a href="https://platform.openai.com/account/api-keys">official site</a> of openai. Sign up and log in before you get it.
9495

9596
Be sure, this is a very important API key that belongs to you only, so you should remember it and keep it secure.
9697

97-
6. python main.py
98+
7. python main.py
9899

99-
If installation doesn't work, you can contact me with bring up new issue in issue tab or check the troubleshooting below even it is only about very specific error.
100+
If installation doesn't work, you can contact me with bring up new issue in issue tab or check the troubleshooting below even it is only about very specific error.
101+
102+
### Note
103+
If you use Linux and see this error:
104+
```
105+
qt.qpa.plugin: could not load the qt platform plugin "xcb" in "" even though it was found
106+
107+
this application failed to start because no qt platform plugin could be initialized, reinstalling the application may fix this problem
108+
```
109+
110+
run this command:
111+
```
112+
sudo apt-get install libxcb-xinerama0
113+
```
100114

101115
## Troubleshooting
102116
If you see this error while installing the openai package

0 commit comments

Comments
 (0)
0