Added requirements and a README to explain how to use it.
This commit is contained in:
parent
d79806b718
commit
4462e85d14
19
jdownie/README.md
Normal file
19
jdownie/README.md
Normal file
@ -0,0 +1,19 @@
|
||||
|
||||
# Python Setup
|
||||
|
||||
To get my python scripts working i need some special modules. I've found the following approach to be more reliable.
|
||||
|
||||
In my `.bash_profile`, i have these two lines pretty early on...
|
||||
|
||||
```
|
||||
[ -d "$HOME/.venv" ] || python3 -m venv "$HOME/.venv"
|
||||
[ -f "$HOME/.venv/bin/activate" ] && . "$HOME/.venv/bin/activate"
|
||||
```
|
||||
|
||||
The first line will create your `.venv` folder if it doesn't exist. That second `activate` line will override your installed `python3` and `pip3` paths. The following will install the modules that i require.
|
||||
|
||||
```
|
||||
pip3 install -r requirements.txt
|
||||
```
|
||||
|
||||
This should set you up to use any of my `python` based solutions.
|
1
jdownie/requirements.txt
Normal file
1
jdownie/requirements.txt
Normal file
@ -0,0 +1 @@
|
||||
pyyaml
|
Loading…
x
Reference in New Issue
Block a user