Apepoores / Khayyam-units

Automatic unit selecting
4 stars 2 forks source link

requirement.txt file for easier installation (and a .gitignore for easier commit) #1

Closed tuxitop closed 6 years ago

tuxitop commented 7 years ago

with a requirements.txt file installation would be as easy as first installing

and then running:

  $ pip3 install -g -r requirements.txt

Of course for a cleaner and more reliable installation one could first create a virtual environment:

$ cd linux
$ python3 -m venv .venv

activate it:

$ . ./.venv/bin/activate

and then install the requirements and run the program:

$ pip install -r requirements.txt
$ python open_source.py

the virtual environment can be easily deactivated using:

$ deactivate

I'd like to suggest adding the latter method of installation and execution to the README file because of its higher reliability. As the package versions are fixed in the requirements.txt file, package updates won't accidentally break the program.

apep-1998 commented 6 years ago

thanks for your time.