曼巴无法创建环境

Posted

技术标签:

【中文标题】曼巴无法创建环境【英文标题】:mamba fails to create env 【发布时间】:2021-08-04 05:11:01 【问题描述】:

我刚刚从 anaconda.com 安装了 Anaconda。安装进行得很顺利。之后,我试图从这个 environment.yml 文件创建一个新环境。 (nbdev.yml)


name: nbdev
channels:
  - fastai
  - defaults
  - conda-forge
dependencies:
  - _r-mutex
  - _tflow_select
  - absl-py
  - alabaster
  - asn1crypto
  - astor
  - astroid
  - attrs
  - babel
  - backcall
  - backports
  - backports.functools_lru_cache
  - blas
  - bleach
  - bwidget
  - bzip2
  - c-ares
  - ca-certificates
  - cairo
  - certifi
  - cffi
  - chardet
  - cloudpickle
  - compiler-rt
  - constantly
  - cryptography
  - curl
  - cycler
  - cython
  - dbus
  - decorator
  - defusedxml
  - docutils
  - entrypoints
  - expat
  - fastcache
  - flake8
  - fontconfig
  - freetype
  - fribidi
  - gast
  - gettext
  - glib
  - gmp
  - gmpy2
  - graphite2
  - grpcio
  - gsl
  - h5py
  - harfbuzz
  - hdf5
  - html5lib
  - icu
  - idna
  - imagesize
  - intel-openmp
  - ipykernel
  - ipython
  - ipython_genutils
  - isort
  - jbig
  - jedi
  - jinja2
  - jpeg
  - jsonschema
  - jupyter_client
  - jupyter_contrib_core
  - jupyter_contrib_nbextensions
  - jupyter_core
  - jupyter_highlight_selected_word
  - jupyter_latex_envs
  - jupyter_nbextensions_configurator
  - keras-applications
  - keras-preprocessing
  - keyring
  - krb5
  - lazy-object-proxy
  - libcurl
  - libcxx
  - libcxxabi
  - libedit
  - libffi
  - libgcc
  - libgfortran
  - libiconv
  - libopenblas
  - libpng
  - libprotobuf
  - libsodium
  - libssh2
  - libtiff
  - libxml2
  - libxslt
  - llvm
  - llvm-openmp
  - lxml
  - make
  - markdown
  - markupsafe
  - matplotlib
  - mccabe
  - mistune
  - mkl
  - mkl_fft
  - mkl_random
  - mock
  - mpc
  - mpfr
  - mpmath
  - nbconvert
  - nbformat
  - ncurses
  - nomkl
  - notebook
  - numpy
  - numpy-base
  - numpydoc
  - olefile
  - openblas
  - openblas-devel
  - openssl
  - packaging
  - pandas
  - pandoc
  - pandocfilters
  - pango
  - pari
  - parso
  - patsy
  - pbr
  - pcre
  - perl
  - pexpect
  - pickleshare
  - pillow
  - pip
  - pixman
  - prometheus_client
  - prompt_toolkit
  - protobuf
  - psutil
  - ptyprocess
  - pycodestyle
  - pycparser
  - pyflakes
  - pygments
  - pylint
  - pyopenssl
  - pyparsing
  - pyqt
  - pyrsistent
  - pysocks
  - python
  - python-dateutil
  - python-symengine
  - pytz
  - pyyaml
  - pyzmq
  - qt
  - qtawesome
  - qtconsole
  - qtpy
  - qutip
  - r-base
  - r-clisymbols
  - readline
  - reportlab
  - requests
  - rope
  - scikit-learn
  - scipy
  - send2trash
  - setuptools
  - simplegeneric
  - sip
  - six
  - snowballstemmer
  - sphinx
  - sphinxcontrib
  - sphinxcontrib-applehelp
  - sphinxcontrib-devhelp
  - sphinxcontrib-htmlhelp
  - sphinxcontrib-jsmath
  - sphinxcontrib-qthelp
  - sphinxcontrib-serializinghtml
  - sphinxcontrib-websupport
  - spyder
  - spyder-kernels
  - sqlite
  - symengine
  - symmetrica
  - sympow
  - sympy
  - tensorboard
  - tensorflow
  - tensorflow-base
  - tensorflow-estimator
  - termcolor
  - terminado
  - testpath
  - tk
  - tktable
  - tornado
  - traitlets
  - typed-ast
  - typing
  - urllib3
  - wcwidth
  - webencodings
  - werkzeug
  - wheel
  - wrapt
  - wurlitzer
  - xz
  - yaml
  - zeromq
  - tqdm
  - zlib
  - zstd
  - pytest
  - numba
  - hypothesis
  - pytest-cov
  - mypy
  - pytest-xdist
  - watchdog
  - pytest-runner
  - coveralls
  - doctr
  - gitpython
  - pre-commit
  - tox
  - cookiecutter
  - pdbpp
  - sphinx-autobuild
  - sphinx-autodoc-typehints
  - sphinx_rtd_theme
  - travis-encrypt
  - twine
  - nbval
  - nbsphinx
  - watermark
  - ipyparallel
  - unittest2pytest
  - pytest-benchmark
  - pytest-repeat
  - pytest-subtests
  - fastcore
  - fastscript
  - asttokens
  - cached-property
  - crayons
  - executing
  - flask
  - humanize
  - ipywidgets
  - itsdangerous
  - jsonpickle
  - jupyter
  - littleutils
  - nbconvert
  - outdated
  - portpicker
  - sqlalchemy
  - widgetsnbextension
  - nbdime
  - rich
  - mayavi
  - pip:
    - birdseye
    - icecream
    - nbdev==1.1.12
    - snoop
    - git-remote-dropbox
    - odeintw
    - cyberbrain
    - cheap-repr
    - jupyter-console
    - get-port
    - flask-humanize
    - msgpack
    - jupyterlab-widgets
    - varname
    - blacktex

prefix: /anaconda3/envs/nbdev

我试过conda env create -f nbdev.yml 但它只是卡在解决环境问题上。然后我了解到mamba 是 conda 的快速替代品。 所以我输入了mamba env create -f nbdev.yml 和 .

【问题讨论】:

【参考方案1】:

经过大量研究,我偶然发现了Mamba doesn't find a solution when mixing conda forge defaults and not specifying Python explicitly 1102。所以我只是从

编辑了 nbdev.yml
name: nbdev
channels:
  - fastai
  - defaults
  - conda-forge
dependencies:
  - _r-mutex
  - _tflow_select
  - absl-py
  - alabaster

name: nbdev
channels:
  - fastai
  - defaults
  - conda-forge
dependencies:
  - python
  - _r-mutex
  - _tflow_select
  - absl-py
  - alabaster

这解决了问题。

【讨论】:

以上是关于曼巴无法创建环境的主要内容,如果未能解决你的问题,请参考以下文章

2020-01-27曼巴走了,但他还在

原创 | 上帝带走了科比,却永远带不走科比的曼巴精神

“曼巴”精神延续:当KB Token与元宇宙碰撞奇幻妙想

“曼巴”精神的延续:当KB Token与元宇宙碰撞的奇幻妙想

33643分!曼巴精神永不熄,数据回顾科比20年职业生涯辉煌

无法在 AWS 中使用 RDS 创建弹性 Beanstalk 环境