Skip to content
Snippets Groups Projects
Commit d653bfb0 authored by robban64's avatar robban64
Browse files

fix: readme.md server pscopg2

parent 29d43099
No related branches found
No related tags found
No related merge requests found
Pipeline #47124 passed
...@@ -13,6 +13,9 @@ You will need to do the following things to install the server: ...@@ -13,6 +13,9 @@ You will need to do the following things to install the server:
5. Open the project folder in VS Code. 5. Open the project folder in VS Code.
6. Open the integrated terminal by pressing `ctrl+ö`. 6. Open the integrated terminal by pressing `ctrl+ö`.
7. Type the following commands into your terminal: 7. Type the following commands into your terminal:
8. (Production) Install PostgreSQL 13
- [Windows](https://www.postgresql.org/):
- [Linux](https://phoenixnap.com/kb/how-to-install-postgresql-on-ubuntu):
### Windows ### Windows
...@@ -50,8 +53,7 @@ sudo apt install python3-venv ...@@ -50,8 +53,7 @@ sudo apt install python3-venv
# Go into the server folder. # Go into the server folder.
cd server cd server
# Create a python virtual environment. If it can't find python3, try # Create a python virtual environment. If it can't find python3, try python.
# python or py -3 instead of python3.
python3 -m venv env python3 -m venv env
# Activate the virtual environment. # Activate the virtual environment.
...@@ -65,19 +67,19 @@ pip install -r requirements.txt ...@@ -65,19 +67,19 @@ pip install -r requirements.txt
## Common problems ## Common problems
### Make sure python 3 is running with the python command ### Make sure python +3.8 is running with the python command
``` ```
py --version (Windows): py --version or py3 --version
or (Linux): python --version or python3 --version
python --version ```
- If the version is < 3 try the following commands (Linux) This [guide](https://dev.to/serhatteker/how-to-upgrade-to-python-3-7-on-ubuntu-18-04-18-10-5hab)
can help you upgrade python
py3 or python3 (Windows) Download python 3.8 [here](https://www.python.org/downloads/)
```
### Make sure pip is running with python 3 ### Make sure pip is running with python 3 and right
``` ```
pip --version pip --version
...@@ -97,6 +99,12 @@ can help you upgrade pip ...@@ -97,6 +99,12 @@ can help you upgrade pip
pip install wheel pip install wheel
``` ```
### Problem: psycopg
```
pip install psycopg2
```
This [guide](https://stackoverflow.com/questions/53204916/what-is-the-meaning-of-failed-building-wheel-for-x-in-pip-install) This [guide](https://stackoverflow.com/questions/53204916/what-is-the-meaning-of-failed-building-wheel-for-x-in-pip-install)
can help you troubleshoot this problem can help you troubleshoot this problem
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment