简体   繁体   中英

PackageNotFoundError when creating new Conda environment

After installing Anaconda or Miniconda and trying to create first environment, I'm getting the following error:

PackageNotFoundError: Package not found: '' Package missing in current osx-64 channels: - package_name

It turns out that when you first run conda config ( .condarc is created) by default it contains

create_default_packages:
  - tensorflow
  - PACKAGE_NAME
channels:
  - conda-forge
  - defaults

So it tries to fetch a package called PACKAGE_NAME which surprisingly does not exist.

Simply removing - PACKAGE_NAME line from .condarc fixes the issue.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM