问题描述
使用 conda
安装 gdal
时出现错误如下
E:\>conda install gdal==2.4.4
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
解决办法
先执行如下命令,再 npm install
。
E:\>conda install gdal==2.4.4
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.
CondaError: KeyboardInterrupt
Terminate batch job (Y/N)? y
E:\>conda update
CondaValueError: no package names supplied
# If you want to update to a newer version of Anaconda, type:
#
# $ conda update --prefix d:\Anaconda3 anaconda
然后
E:\>conda update --prefix d:\Anaconda3 anaconda
Collecting package metadata (current_repodata.json): done
Solving environment: done
==> WARNING: A newer version of conda exists. <==
current version: 4.10.1
latest version: 4.10.3
Please update conda by running
$ conda update -n base -c defaults conda
## Package Plan ##
environment location: d:\Anaconda3
added / updated specs:
- anaconda
The following packages will be downloaded:
package | build
---------------------------|-----------------
_anaconda_depends-2020.07 | py38_0 6 KB
alabaster-0.7.12 | py_0 15 KB conda-forge
# 略 #
zope.event-4.5.0 | pyh9f0ad1d_0 9 KB conda-forge
zope.interface-5.4.0 | py38h294d835_0 318 KB conda-forge
zstd-1.5.0 | h6255e5f_0 1004 KB conda-forge
------------------------------------------------------------
Total: 667.1 MB
The following NEW packages will be INSTALLED:
_anaconda_depends pkgs/main/win-64::_anaconda_depends-2020.07-py38_0
c-blosc2 conda-forge/win-64::c-blosc2-2.0.4-h09319c2_1
# 略 #
tomli conda-forge/noarch::tomli-1.2.2-pyhd8ed1ab_0
typing-extensions conda-forge/noarch::typing-extensions-3.10.0.2-hd8ed1ab_0
ucrt conda-forge/win-64::ucrt-10.0.20348.0-h57928b3_0
websocket-client conda-forge/win-64::websocket-client-0.57.0-py38haa244fe_4
The following packages will be REMOVED:
brotli-1.0.9-ha925a31_2
jupyter-packaging-0.7.12-pyhd3eb1b0_0
The following packages will be UPDATED:
anaconda-client pkgs/main/win-64::anaconda-client-1.7~ --> conda-forge/noarch::anaconda-client-1.8.0-pyhd8ed1ab_0
anaconda-project pkgs/main::anaconda-project-0.9.1-pyh~ --> conda-forge::anaconda-project-0.10.2-pyhd8ed1ab_0
anyio pkgs/main::anyio-2.2.0-py38haa95532_2 --> conda-forge::anyio-3.3.4-py38haa244fe_0
argh pkgs/main/win-64::argh-0.26.2-py38_0 --> conda-forge/noarch::argh-0.26.2-pyh9f0ad1d_1002
# 略 #
zlib pkgs/main::zlib-1.2.11-h62dcd97_4 --> conda-forge::zlib-1.2.11-h8ffe710_1013
zope.interface pkgs/main::zope.interface-5.3.0-py38h~ --> conda-forge::zope.interface-5.4.0-py38h294d835_0
zstd pkgs/main::zstd-1.4.5-h04227a9_0 --> conda-forge::zstd-1.5.0-h6255e5f_0
The following packages will be SUPERSEDED by a higher-priority channel:
alabaster pkgs/main::alabaster-0.7.12-pyhd3eb1b~ --> conda-forge::alabaster-0.7.12-py_0
appdirs pkgs/main::appdirs-1.4.4-py_0 --> conda-forge::appdirs-1.4.4-pyh9f0ad1d_0
asn1crypto pkgs/main::asn1crypto-1.4.0-py_0 --> conda-forge::asn1crypto-1.4.0-pyh9f0ad1d_0
# 略 #
yaml pkgs/main --> conda-forge
yapf pkgs/main::yapf-0.31.0-pyhd3eb1b0_0 --> conda-forge::yapf-0.31.0-pyhd8ed1ab_0
zict pkgs/main::zict-2.0.0-pyhd3eb1b0_0 --> conda-forge::zict-2.0.0-py_0
zope.event pkgs/main/win-64::zope.event-4.5.0-py~ --> conda-forge/noarch::zope.event-4.5.0-pyh9f0ad1d_0
The following packages will be DOWNGRADED:
anaconda 2021.05-py38_0 --> custom-py38_1
Proceed ([y]/n)?
...
entrypoints-0.3 | 8 KB | ############################################################################ | 100%
werkzeug-2.0.1 | 219 KB | ############################################################################ | 100%
yaml-0.2.5 | 61 KB | ############################################################################ | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: | Enabling notebook extension jupyter-js-widgets/extension...
- Validating: ok
done
E:\>conda update --all