You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
De raspberrypi maakt standaard gebruik van python2. Om voor python3 (de Python versie die je voor je eigen code wilt gebruiken!) de modules te installeren moet de juiste python gebruikt worden om de modules te installeren. Het commando om bijvoorbeeld de adafruit libraries met pip te installeren wordt dan:
Door Python (python3) met de -m optie aan te roepen is het volgende argument de module die uitgevoerd moet worden. Zo weet je altijd dat de juiste python-interpreter gebruikt wordt om PyPi packages te installeren.
35
+
28
36
### Installatie via PyPi
29
37
Als PyPi aanwezig is kan via [PyPi](https://pypi.org/project/TN-code) de software voor de huidge gebruiker geinstalleer worden:
30
38
```console
31
-
pip install tn_code
39
+
python -m pip install tn_code
32
40
```
33
41
Om system-wide (voor alle gebruikers te installeren:
34
42
```console
35
-
sudo pip install tn_code
43
+
sudo python -m pip install tn_code
36
44
```
37
45
38
46
Als virtual environment
39
47
```console
40
48
mkdir project-naam && cd project-naam
41
49
python -m venv .env
42
50
source .env/bin/activate
43
-
pip install tn_code
51
+
python -m install tn_code
44
52
```
53
+
Daarna moet, om gebruik te maken van het virtuele environment, bij het opstarten het environmet geactiveerd worden
0 commit comments