1

我刚刚从 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.ymland 曼巴卡在包裹上

4

1 回答 1

2

经过大量研究,我偶然发现Mamba 在混合 conda forge 默认值并且未明确指定 Python 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

这解决了问题。

于 2021-08-04T05:11:01.953 回答