conda环境下安装Spyder
Installing Spyder in a conda environment
我已经使用 Anaconda 提示为 qcodes
创建了一个 conda
环境,如下所示,
conda create -n qcodes
conda activate qcodes
conda config --add channels conda-forge --env
conda config --set channel_priority strict --env
conda install qcodes
由于 Spyder 不在我尝试安装的环境中,
conda install spyder
这给了我以下错误,
Collecting package metadata (current_repodata.json): done
Solving 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.
ResolvePackageNotFound:
- python=3.1
我尝试使用
更新 conda
conda update conda
得到...
PackageNotInstalledError: Package is not installed in prefix.
prefix: C:\Users\nr2-roberts\.conda\envs\qcodes
package name: conda
我和conda update anaconda
一样
有人知道这是怎么回事吗?
您的 qcodes 环境中似乎有 python 3.10。 conda 上没有(目前)与 Python 3.10 兼容的 Spyder 软件包(无论是在默认频道还是 conda-forge 频道)。我建议你重新创建你的环境,但是在做 conda install qcodes
时做 conda install qcodes python=3.9
我已经使用 Anaconda 提示为 qcodes
创建了一个 conda
环境,如下所示,
conda create -n qcodes
conda activate qcodes
conda config --add channels conda-forge --env
conda config --set channel_priority strict --env
conda install qcodes
由于 Spyder 不在我尝试安装的环境中,
conda install spyder
这给了我以下错误,
Collecting package metadata (current_repodata.json): done
Solving 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.
ResolvePackageNotFound:
- python=3.1
我尝试使用
更新conda
conda update conda
得到...
PackageNotInstalledError: Package is not installed in prefix.
prefix: C:\Users\nr2-roberts\.conda\envs\qcodes
package name: conda
我和conda update anaconda
有人知道这是怎么回事吗?
您的 qcodes 环境中似乎有 python 3.10。 conda 上没有(目前)与 Python 3.10 兼容的 Spyder 软件包(无论是在默认频道还是 conda-forge 频道)。我建议你重新创建你的环境,但是在做 conda install qcodes
时做 conda install qcodes python=3.9