找回密码
 立即注册
查看: 576|回复: 0

[其它问题] 抠图教程错误问题

[复制链接]

13

主题

15

回帖

29

积分

新手上路

积分
29
发表于 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.co ... w-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
  ╰─> [18 lines of output]
      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
      =========================================================


      [end of output]

  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
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|openAI维基百科论坛 ( 京ICP备2021019752号-5|京公网安备 11010502051430号 )

GMT+8, 2024-11-21 19:02 , Processed in 0.099208 second(s), 26 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表