[英]Unable to install tensorflow-gpu on anaconda with PackagesNotFoundError
I have created new environment in anaconda, webapp-env, to use streamlit and flask.我在 anaconda、webapp-env 中创建了新环境,以使用 streamlit 和 flask。
I have installed cuda (8.1) and cudatoolkit (11.2) so it is compatible with my environment and am trying to install tensorflow-gpu=2.8.0 (or 2.9.0) as per the table here: https://www.tensorflow.org/install/source_windows I have installed cuda (8.1) and cudatoolkit (11.2) so it is compatible with my environment and am trying to install tensorflow-gpu=2.8.0 (or 2.9.0) as per the table here: https://www.tensorflow .org/install/source_windows
Unfortunately, I am getting this error (below) and I dont know how to solve this.不幸的是,我收到了这个错误(如下),我不知道如何解决这个问题。
(webapp-env) PS C:\Users\me\Coursera_NN_visualizer_web_app_MNIST_project> conda config --append channels conda-forge tensorflow-gpu = 2.9.0
usage: conda-script.py [-h] [-V] command ...
conda-script.py: error: unrecognized arguments: tensorflow-gpu = 2.9.0
(webapp-env) PS C:\Users\me\Coursera_NN_visualizer_web_app_MNIST_project> conda install -c conda-forge tensorflow-gpu=2.8.0
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
PackagesNotFoundError: The following packages are not available from current channels:
- tensorflow-gpu=2.8.0
Current channels:
- https://conda.anaconda.org/conda-forge/win-64
- https://conda.anaconda.org/conda-forge/noarch
- https://repo.anaconda.com/pkgs/main/win-64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/r/win-64
- https://repo.anaconda.com/pkgs/r/noarch
- https://repo.anaconda.com/pkgs/msys2/win-64
- https://repo.anaconda.com/pkgs/msys2/noarch
To search for alternate channels that may provide the conda package you're
looking for, navigate to
https://anaconda.org
and use the search bar at the top of the page.
I have an Nvidia 3060 graphics card and can use tensorflow-gpu version 2.8.0 successfully in my anaconda base virtual environment.我有一块 Nvidia 3060 显卡,可以在我的 anaconda 基础虚拟环境中成功使用 tensorflow-gpu 2.8.0 版。 any advice?有什么建议吗?
Tnesorflow-GPU in the main
channel is at version 2.6
and from conda-forge
, only a linux version is available, see here and here main
通道中的 Tnesorflow-GPU 版本为2.6
,并且来自conda-forge
forge ,只有 linux 版本可用,请参见此处和此处
You probably used pip
to install it in your base env.您可能使用pip
将其安装在您的基本环境中。 You can do so in your new env just as well您也可以在新环境中这样做
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.