Add python virtual env instructions
This change adds instructions on how to setup a python virtual env for this repo. In addition, the respective requirements files have been added for easy installation with pip.
This commit is contained in:
committed by
Roland Kurmann
parent
5dc155f556
commit
bf96148461
12
README.md
12
README.md
@@ -28,6 +28,18 @@ For printing QR codes, the qrcode module is required
|
||||
|
||||
pip install qrcode[pil]
|
||||
|
||||
### Alternative installation method
|
||||
|
||||
Alternatively, you can use a python virtual env for the dependencies:
|
||||
|
||||
python -m venv venv
|
||||
. venv/bin/activate
|
||||
pip install -r requirements-buildenv.txt
|
||||
pip install -r requirements.txt
|
||||
|
||||
The requirements\*.txt files contain all the dependencies (also the optional ones).
|
||||
To leave the python virtual env just call `deactivate`.
|
||||
|
||||
## Technical background
|
||||
|
||||
The export QR code of "Google Authenticator" contains the URL `otpauth-migration://offline?data=...`.
|
||||
|
||||
Reference in New Issue
Block a user