yohooo 发表于 2023-6-4 13:05:05

抠图教程错误问题


https://openai.wiki/cv_unet_image-matting.html我根据版主的这个链接教程做的,但是在安装TENSORFLOW-GPU的时候出错了。怎么解决?可能是因为我先安装了TENSORFLOW导致的,但是不知道该怎么解决。在线求助。


(e:\openai.wiki\cv_unet_image-matting\MyENV) e:\openai.wiki\cv_unet_image-matting>pip uninstall tensorflow
Found existing installation: tensorflow 2.12.0
Uninstalling tensorflow-2.12.0:
Would remove:
    d:\programdata\miniconda3\lib\site-packages\tensorflow-2.12.0.dist-info\*
Proceed (Y/n)? y
Successfully uninstalled tensorflow-2.12.0

(e:\openai.wiki\cv_unet_image-matting\MyENV) e:\openai.wiki\cv_unet_image-matting>pip install tensorflow-gpu
Looking in indexes: https://mirrors.cloud.tencent.com/pypi/simple
Collecting tensorflow-gpu
Using cached https://mirrors.cloud.tencent.com/pypi/packages/8a/45/fa31ced1db38f9424f262dfbf35747fe5378b5c808cecb373c8cb8e515d3/tensorflow-gpu-2.12.0.tar.gz (2.6 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: python_version>"3.7" in d:\programdata\miniconda3\lib\site-packages (from tensorflow-gpu) (0.0.2)
Building wheels for collected packages: tensorflow-gpu
Building wheel for tensorflow-gpu (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─>
      Traceback (most recent call last):
      File "<string>", line 2, in <module>
      File "<pip-setuptools-caller>", line 34, in <module>
      File "C:\Users\yangj\AppData\Local\Temp\pip-install-1mawlee5\tensorflow-gpu_d0aea52d69a743d885f535221d4773ca\setup.py", line 37, in <module>
          raise Exception(TF_REMOVAL_WARNING)
      Exception:

      =========================================================
      The "tensorflow-gpu" package has been removed!

      Please install "tensorflow" instead.

      Other than the name, the two packages have been identical
      since TensorFlow 2.1, or roughly since Sep 2019. For more
      information, see: pypi.org/project/tensorflow-gpu
      =========================================================


      

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for tensorflow-gpu
Running setup.py clean for tensorflow-gpu
Failed to build tensorflow-gpu
ERROR: Could not build wheels for tensorflow-gpu, which is required to install pyproject.toml-based projects
页: [1]
查看完整版本: 抠图教程错误问题