About: could not find tensorflow~=2.5.0 while installing tfc_2.2

76 views
Skip to first unread message

diqk...@gmail.com

unread,
Jul 8, 2021, 9:17:37 PM7/8/21
to tensorflow-compression
Hello,

I want to use tf2.5.0 and tfc2.2 (latest version in https://pypi.org/project/tensorflow-compression/#files)

I have successfully installed TensorFlow 2.50 in Linux GPU server like the following:
1. create virtual environment with:
    virtualenv py38_tf250

2. download and install TensorFlow 2.5.0
    pip install tensorflow_gpu-2.5.0-cp38-cp38-manylinux2010_x86_64.whl

3. confirm installation as
    [GCC 8.3.1 20191121 (Red Hat 8.3.1-5)] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import tensorflow as tf
    2021-07-09 10:11:23.279517: I     tensorflow/stream_executor/platform/default/dso_loader.cc:53] Successfully opened dynamic library libcudart.so.11.0
    >>> tf.__version__
    '2.5.0'

4. install tfc2.2 
    pip install tensorflow_compression-2.2-cp38-cp38-manylinux2010_x86_64.whl

    found the error:
        ERROR: Could not find a version that satisfies the requirement tensorflow~=2.5.0 (from tensorflow-compression)
        ERROR: No matching distribution found for tensorflow~=2.5.0

Does anyone have any idea on how to solve this? 

Thank you and best regards,
Khanh
    

Johannes Ballé

unread,
Aug 23, 2021, 11:28:19 PM8/23/21
to tensorflow-...@googlegroups.com
Hi Khanh,

you don't need to install tensorflow_gpu for GPU support, since the plain tensorflow package has GPU support already. I am not sure why you are trying to pin the versions. If you do `pip install tensorflow-compression` as in the installation instructions, it should install the newest TFC package including the compatible TF version automatically. Let me know if this doesn't work for you.

Johannes


--
You received this message because you are subscribed to the Google Groups "tensorflow-compression" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tensorflow-compre...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tensorflow-compression/27ad3cce-2ea8-46c6-a44f-dbe4e69a50aan%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages