我可以通过pip安装tensorflowgpu,但由于依赖性问题我不能在conda中安装?

2024-06-10 11:50:44 发布

您现在位置:Python中文网/ 问答频道 /正文

我以前安装了tensorflow,但我也想要GPU版本。我不明白为什么我不能在conda中安装tensorflow gpu,但我可以在pip中安装?我在使用conda安装时遇到了很多依赖性问题:

(base) cs_u@dual2080:~/Desktop/foo$ conda install tensorflow-gpu
WARNING conda.base.context:use_only_tar_bz2(632): Conda is constrained to only using the old .tar.bz2 file format because you have conda-build installed, and it is <3.18.3.  Update or remove conda-build to get smaller downloads and faster extractions.
Collecting package metadata (repodata.json): done
Solving environment: failed

UnsatisfiableError: The following specifications were found to be incompatible with each other:

  - pkgs/main/linux-64::_ipyw_jlab_nb_ext_conf==0.1.0=py27_0 -> widgetsnbextension -> notebook[version='>=4.4.1'] -> nbconvert -> bleach
  - pkgs/main/linux-64::anaconda==2019.03=py27_0 -> bleach==3.1.0=py27_0
  - pkgs/main/linux-64::anaconda==2019.03=py27_0 -> html5lib==1.0.1=py27_0
  - pkgs/main/linux-64::anaconda==2019.03=py27_0 -> path.py==11.5.0=py27_0 -> importlib_metadata[version='>=0.5']
  - pkgs/main/linux-64::anaconda==2019.03=py27_0 -> zipp==0.3.3=py27_1
  - pkgs/main/linux-64::bleach==3.1.0=py27_0
  - pkgs/main/linux-64::html5lib==1.0.1=py27_0
  - pkgs/main/linux-64::importlib_metadata==0.8=py27_0 -> zipp[version='>=0.3.2']
  - pkgs/main/linux-64::ipywidgets==7.4.2=py27_0 -> widgetsnbextension[version='>=3.4.0,<3.5.0'] -> notebook[version='>=4.4.1'] -> nbconvert -> bleach
  - pkgs/main/linux-64::jupyter==1.0.0=py27_7 -> notebook -> nbconvert -> bleach
  - pkgs/main/linux-64::jupyterlab==0.33.11=py27_0 -> notebook[version='>=4.3.1'] -> nbconvert -> bleach
  - pkgs/main/linux-64::jupyterlab_launcher==0.11.2=py27h28b3542_0 -> notebook -> nbconvert -> bleach
  - pkgs/main/linux-64::nbconvert==5.4.1=py27_3 -> bleach
  - pkgs/main/linux-64::notebook==5.7.8=py27_0 -> nbconvert -> bleach
  - pkgs/main/linux-64::path.py==11.5.0=py27_0 -> importlib_metadata[version='>=0.5']
  - pkgs/main/linux-64::spyder==3.3.3=py27_0 -> nbconvert -> bleach
  - pkgs/main/linux-64::widgetsnbextension==3.4.2=py27_0 -> notebook[version='>=4.4.1'] -> nbconvert -> bleach
  - pkgs/main/linux-64::zipp==0.3.3=py27_1

不过,皮普很好:

^{pr2}$

如果有人可以通过安装pipi来解决问题,那么是否可以通过安装pipi来解决?在


Tags: tomainversionlinuxtensorflowanacondaimportlibconda