dkriegner / micro-flakes

https://dkriegner.github.io/micro-flakes/
GNU General Public License v3.0
0 stars 0 forks source link

use pip requirements.txt #1

Closed dkriegner closed 1 year ago

dkriegner commented 1 year ago

For the script requirements it would be best to use a requirements file which can be directly used as

pip install -r requirements.txt

https://pip.pypa.io/en/latest/getting-started/

https://github.com/dkriegner/micro-flakes/blob/096b627f65e62e67a3fee786b33e3a1f5c79fcdd/Detector/install_libraries.txt#L1-L8

So this should be only

Pillow 
openpyxl 
opencv-python 
shutils 
numpy 

Likely if known some version numbers should be added.

ji-ze commented 1 year ago

It's solved.

dkriegner commented 1 year ago

The requirements file is currently invalid. It should not contain the pip command but only the package names.

Also please check if you really need to restrict the packages to a specific version. I would guess that every new version of numpy would work.

maybe this could be content of the file:

Pillow >= 9.4.0
openpyxl >= 3.0.9
# opencv >= 4.6.0 
numpy >= 1.25.2

I commeted the opencv line since it seems to be no known python package.... can it really be installed via pip?

ji-ze commented 1 year ago

I've change "==" to ">=". The correct name of the library is "opencv-python".