Skip to content
Snippets Groups Projects
Commit 5fc802ca authored by Victor Löfgren's avatar Victor Löfgren
Browse files

Merge branch 'dev' of gitlab.liu.se:tddd96-grupp11/teknikattan-scoring-system into dev

parents 0e44df85 d653bfb0
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,9 @@ You will need to do the following things to install the server:
5. Open the project folder in VS Code.
6. Open the integrated terminal by pressing `ctrl+ö`.
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
......@@ -50,8 +53,7 @@ sudo apt install python3-venv
# Go into the server folder.
cd server
# Create a python virtual environment. If it can't find python3, try
# python or py -3 instead of python3.
# Create a python virtual environment. If it can't find python3, try python.
python3 -m venv env
# Activate the virtual environment.
......@@ -69,19 +71,19 @@ But if you are a developer, run `pip install -r requirements-dev.txt`.
## 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
or
python --version
(Windows): py --version or py3 --version
(Linux): python --version or python3 --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
......@@ -101,6 +103,12 @@ can help you upgrade pip
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)
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