I am trying to install CUDA 9.0 with NVIDIA-SMI: 445.75 in Windows 10.My Cuda 9.0 installation is successful, as shown from Command-prompt *(DL) C:\Users\User>nvcc --versionnvcc: NVIDIA (R) Cuda compiler driverCopyright (c) 2005-2017 NVIDIA CorporationBuilt on Fri_Sep__1_21:08:32_Central_Daylight_Time_2017**Cuda compilation tools, release **9.0**, V9.0.176***(1) I downloaded cudnn-9.0-windows10-x64-v7.zip, extracted it, and moved it to the fold, which was created when Cuda was installed.(2) In the terminal prompt of the Anaconda,I input conda install pytorch=1.1.0 torchvision=0.3.0 cudatoolkit=9.0 –c pytorch.However, Anaconda prompt gives the following error **Error messages***Collecting package metadata (current_repodata.json): doneSolving environment: failed with initial frozen solve. Retrying with flexible solve.Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.Collecting package metadata (repodata.json): doneSolving environment: failed with initial frozen solve. Retrying with flexible solve.Solving environment: |Found conflicts! Looking for incompatible packages.This can take several minutes. Press CTRL-C to abort.failedUnsatisfiableError: The following specifications were found to be incompatible with the existing python installation in your environment:Specifications: - pytorch=1.1.0 -> python[version='>=3.5,<3.6.0a0|>=3.6,<3.7.0a0|>=3.7,<3.8.0a0'] - torchvision=0.3.0 -> python[version='>=3.5,<3.6.0a0|>=3.6,<3.7.0a0|>=3.7,<3.8.0a0']Your python: python=3.8If python is on the left-most side of the chain, that's the version you've asked for.When python appears to the right, that indicates that the thing on the left is somehow not available for the python version you are constrained to. Note that conda will not change your python version to a different minor version unless you explicitly specify that.The following specifications were found to be incompatible with each other: Output in format: Requested package -> Available versionsPackage cudatoolkit conflicts for: torchvision=0.3.0 -> cudatoolkit[version='>=10.0,<10.1|>=9.0,<9.1'] pytorch=1.1.0 -> cudatoolkit[version='>=10.0,<10.1|>=9.0,<9.1'] torchvision=0.3.0 -> pytorch[version='>=1.1.0'] -> cudatoolkit[version='>=10.1,<10.2|>=9.2,<9.3']The following specifications were found to be incompatible with your CUDA driver: - feature:/win-64::__cuda==11.0=0 Your installed CUDA driver is: 11.0* 解决方案 I got solved this issue as follows.Open Anaconda Powershell Prompt by searching it on the start menu.then run conda install -c anaconda tensorflow-gpu command.it may be asked to your acceptance.finally tensorflow-gpu listed on the installed list.Reference: https://anaconda.org/anaconda/tensorflow-gpu 这篇关于Anaconda与Cuda 9.0的集成显示不兼容的包错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-22 15:27