我们创造的多种东西 利用Conda:
conda create --name py38 python=3.8
conda create --name py39 python=3.9
conda activate py39
Sometimes, trying to install a package in one of these environments, like so:
conda install somepackage
will fail with an error like:
conda.exceptions.PackagesNotFoundError: The following packages are not available from current channels"
但是,利用Pip将同一包裹安装到由Conda创建的同一环境中,可能会取得成功:
conda activate py39
conda install pip
python -m pip install somepackage
为什么发生这种情况?