(seg_keras) C:\Users\86157>conda install "Keras == 2.5.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: - keras==2.5.0 Current channels: - 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.
时间: 2023-06-24 08:05:52 浏览: 71
这个错误提示是因为当前的 conda channels 中没有 `keras==2.5.0` 这个版本的 Keras 包。你可以尝试添加其他的 channels,或者使用其他的安装方式。比如使用 pip 安装可以这样执行命令:`pip install keras==2.5.0`。另外,你也可以尝试安装其他版本的 Keras,或者安装 TensorFlow,它已经内置了 Keras。
相关问题
(seg_keras) C:\Users\86157> (seg_keras) C:\Users\86157>pip install spyder‑kernels==2.1.* ERROR: Invalid requirement: 'spyder‑kernels==2.1.*'
这个错误可能是因为你在命令行中输入了多余的空格。请尝试以下命令来安装 `spyder-kernels`:
```
pip install spyder-kernels==2.1.*
```
如果仍然出现错误,请确保你的 pip 版本是最新的,并且在命令中没有其他字符或空格。你也可以尝试使用管理员权限运行命令提示符窗口。
# If Anaconda3 is installed conda create -n seg_keras python=3.7 # create a virtual environment with python 3.7
This command creates a new virtual environment in Anaconda3 called "seg_keras" with Python version 3.7 installed. This environment is isolated from other Python environments on your system and allows you to install specific packages and dependencies for your project without affecting the rest of your system. Once you create the environment, you can activate it using the command "conda activate seg_keras" and then install the necessary packages for your project.