openrsgis / pytdml

Python library for TrainingDML-AI encode/decode
MIT License
16 stars 7 forks source link

Unable to pip install pytdml==1.0.1 due to version requirements #1

Open caitlinadams opened 1 year ago

caitlinadams commented 1 year ago

I am attempting to install pytdml through pip as part of testing the package for OGC Testbed18. Unfortunately, the package requirements are causing issues when attempting to install.

When trying to install pytdml=1.0.1 (release 02/12/2022) I run into the following error:

pip install pytdml==1.0.1
Collecting pytdml==1.0.1
  Using cached pytdml-1.0.1-py3-none-any.whl (29 kB)
Collecting numpy~=1.21.5
  Using cached numpy-1.21.6-cp39-cp39-macosx_11_0_arm64.whl (12.4 MB)
Collecting opencv-python~=4.5.5.64
  Downloading opencv_python-4.5.5.64-cp37-abi3-macosx_11_0_arm64.whl (29.9 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 29.9/29.9 MB 10.9 MB/s eta 0:00:00
Collecting setuptools==60.10.0
  Downloading setuptools-60.10.0-py3-none-any.whl (1.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 11.8 MB/s eta 0:00:00
Collecting dataclasses~=0.6
  Downloading dataclasses-0.6-py3-none-any.whl (14 kB)
ERROR: Ignored the following versions that require a different python version: 0.7 Requires-Python >=3.6, <3.7; 0.8 Requires-Python >=3.6, <3.7
ERROR: Could not find a version that satisfies the requirement tensorflow~=2.8.0 (from pytdml) (from versions: none)
ERROR: No matching distribution found for tensorflow~=2.8.0

I am attempting to install it into a conda environment with python=3.9.13. Do you know what might be causing the version conflict?

boyi-shangguan commented 1 year ago

I have removed the install requirments at the newest commit, you can just install the newest pytdml with pip install pytdml==1.0.3 For the old version, sometimes dependent libraries like tensorflow need to be installed before installing pytdml.