PackagesNotFoundError: - package_name. Help!!!
1
0
Entering edit mode
3.1 years ago
cypiao • 0

Need some help here! I was trying to create a environment named bioinfo, but error just every where. Newbie here, try to call for help. What should I do to fix it?

(base) puchiyuandeMacBook-Pro:~ cypiao$ conda info

     active environment : base
    active env location : /Users/cypiao/opt/anaconda3
            shell level : 2
       user config file : /Users/cypiao/.condarc
 populated config files : /Users/cypiao/.condarc
          conda version : 4.10.3
    conda-build version : 3.21.4
         python version : 3.8.8.final.0
       virtual packages : __osx=10.16=0
                          __unix=0=0
                          __archspec=1=x86_64
       base environment : /Users/cypiao/opt/anaconda3  (writable)
      conda av data dir : /Users/cypiao/opt/anaconda3/etc/conda
  conda av metadata url : None
           channel URLs : https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/osx-64
                          https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/noarch
                          https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/osx-64
                          https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/noarch
                          https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/osx-64
                          https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/noarch
                          https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/osx-64
                          https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/noarch
                          https://conda.anaconda.org/conda-forge/osx-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://conda.anaconda.org/bioconda/osx-64
                          https://conda.anaconda.org/bioconda/noarch
                          https://repo.anaconda.com/pkgs/main/osx-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/osx-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /Users/cypiao/opt/anaconda3/pkgs
                          /Users/cypiao/.conda/pkgs
       envs directories : /Users/cypiao/opt/anaconda3/envs
                          /Users/cypiao/.conda/envs
               platform : osx-64
             user-agent : conda/4.10.3 requests/2.25.1 CPython/3.8.8 Darwin/20.6.0 OSX/10.16
                UID:GID : 501:20
             netrc file : None
           offline mode : False

(base) puchiyuandeMacBook-Pro:~ cypiao$ conda create -n bioinfo python=3.8
Collecting package metadata (current_repodata.json): done
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed

PackagesNotFoundError: The following packages are not available from current channels:

  - package_name

Current channels:

  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/osx-64
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/noarch
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/osx-64
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/noarch
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/osx-64
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/noarch
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/osx-64
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/noarch
  - https://conda.anaconda.org/conda-forge/osx-64
  - https://conda.anaconda.org/conda-forge/noarch
  - https://conda.anaconda.org/bioconda/osx-64
  - https://conda.anaconda.org/bioconda/noarch
  - https://repo.anaconda.com/pkgs/main/osx-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/r/osx-64
  - https://repo.anaconda.com/pkgs/r/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.
package_name PackagesNotFoundError • 1.6k views
ADD COMMENT
0
Entering edit mode

Hi cypiao, welcome to the community. Since your command creates an environment with only python 3.8 in it, rather than anything specifically related to bioinformatics (other than the name), you might have more luck with a forum more dedicated to general conda troubleshooting, rather than bioinformatics forum. You could try the resources listed here:https://docs.conda.io/en/latest/help-support.html

ADD REPLY
1
Entering edit mode
3.1 years ago

this is a really weird error that frankly should not happen, the package that was not found is called

package_name

that means something got really messed up there.

here is what I found googling:

https://stackoverflow.com/questions/35224186/conda-create-environment-fails-with-error-no-packages-found

https://stackoverflow.com/questions/42026224/packagenotfounderror-when-creating-new-conda-environment

see if any of those help? Did you run conda config by any chance as one of the posts mention?

ADD COMMENT
0
Entering edit mode

thanks man, problem solved!

ADD REPLY

Login before adding your answer.

Traffic: 2014 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6