我安装了 Python 3.6 anaconda,并希望通过 conda install basemap 包进行安装。但是,我收到以下错误:
UnsatisfiableError: The following specifications were found to be in conflict: - basemap - zict Use "conda info " to see the dependencies for each package.
我看到安装 basemap 的依赖项是Python 2.7。尽管我运行的是 3.6,但为何向我提供了旧版 Python 发行版的 basemap 版本?作为克服此 UnSAT 错误的下一步行动,您建议采取什么措施?
致以诚挚的问候
编辑: 现在我收到以下错误,使用
conda install -c conda-forge basemap
谢谢你的想法。现在我收到以下消息:
(base) C:\Users\someuser>conda install -c conda-forge basemap Solving environment: failed
>>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<
$ C:\Users\someuser\Anaconda3\Scripts\conda install -c conda-forge basemap
environment variables: REMOVED HERE!
PYTHONIOENCODING=1252 REQUESTS_CA_BUNDLE=<not set> SSL_CERT_FILE=<not set> active environment : base active env location : C:\Users\someuser\Anaconda3 shell level : 1 user config file : C:\Users\someuser\.condarc populated config files : C:\Users\someuser\.condarc conda version : 4.5.2 conda-build version : 3.4.1 python version : 3.6.4.final.0 base environment : C:\Users\someuser\Anaconda3 (writable) channel URLs : https://conda.anaconda.org/conda-forge/win-64 https://conda.anaconda.org/conda-forge/noarch https://pypi.python.org/simple/win-64 https://pypi.python.org/simple/noarch https://repo.anaconda.com/pkgs/main/win-64 https://repo.anaconda.com/pkgs/main/noarch https://repo.anaconda.com/pkgs/free/win-64 https://repo.anaconda.com/pkgs/free/noarch https://repo.anaconda.com/pkgs/r/win-64 https://repo.anaconda.com/pkgs/r/noarch https://repo.anaconda.com/pkgs/pro/win-64 https://repo.anaconda.com/pkgs/pro/noarch https://repo.anaconda.com/pkgs/msys2/win-64 https://repo.anaconda.com/pkgs/msys2/noarch package cache : C:\Users\someuser\Anaconda3\pkgs C:\Users\someuser\AppData\Local\conda\conda\pkgs envs directories : C:\Users\someuser\Anaconda3\envs C:\Users\someuser\AppData\Local\conda\conda\envs C:\Users\someuser\.conda\envs platform : win-64 user-agent : conda/4.5.2 requests/2.18.4 CPython/3.6.4 Windows/10 Windows/10.0.16299 administrator : False netrc file : None offline mode : False
V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V
CondaHTTPError: HTTP 404 NOT FOUND for url https://pypi.python.org/simple/noarch/repodata.json Elapsed: 00:00.179536
The remote server could not find the noarch directory for the requested channel with url: https://pypi.python.org/simple
As of conda 4.3, a valid channel must contain a
noarch/repodata.json
and associatednoarch/repodata.json.bz2
file, even ifnoarch/repodata.json
is empty. please request that the channel administrator createnoarch/repodata.json
and associatednoarch/repodata.json.bz2
files. $ mkdir noarch $ echo '{}' > noarch/repodata.json $ bzip2 -k noarch/repodata.jsonYou will need to adjust your conda configuration to proceed. Use
conda config --show channels
to view your configuration's current state. Further configuration help can be found at https://conda.io/docs/config.html.A reportable application error has occurred. Conda has prepared the above report. If submitted, this report will be used by core maintainers to improve future releases of conda. Would you like conda to send this report to the core maintainers? [y/N]:
知道这里出了什么问题吗?链接https://pypi.python.org/simple/noarch/repodata.json确实没有找到/可用。
最佳答案
尝试“conda install -c conda-forge basemap ”
关于python - 安装 basemap 时出现 UnsatisfiableError,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50215247/