Conda error: could not find url

I installed anaconda recently, but when I open, I got this error: Error fetching package index Could not find URL: https://pypi.python.org/pypi/osx-64/also when I use the command conda install ..., I got Using Anaconda Cloud api site https://api.anaconda.org Fetching package metadata: .....Error: Could not find URL: https://pypi.python.org/pypi/osx-64/. and I can not install packages.

and this conda info: platform : osx-64 conda version : 3.19.1 conda-build version : 1.19.0 python version : 3.5.1.final.0 requests version : 2.9.1 root environment : //anaconda (writable) default environment : //anaconda envs directories : //anaconda/envs package cache : //anaconda/pkgs channel URLs : https://pypi.python.org/pypi/osx-64/ https://pypi.python.org/pypi/noarch/ https://repo.continuum.io/pkgs/free/osx-64/ https://repo.continuum.io/pkgs/free/noarch/ https://repo.continuum.io/pkgs/pro/osx-64/ https://repo.continuum.io/pkgs/pro/noarch/ config file : /Users/saman/.condarc is foreign system : False .

+4
source share
5 answers

Modify the file ~/.condarcand cross off lines containing pypi.*. These are invalid conda channels.

+8
source

I resolved it by applying the following commands in the terminal:

  • Condo Information

  • cd for the configuration file (cd / Users / select / the / folder / where / config / file / is)

  • .condarc( textEdit )

    textEdit: https://pypi.python.org/pypi/ .condarc

  • ( )

  • conda update conda

  • conda update anaconda
+4

condarc, . , .

, , :

find . -name ".condarc"
+1

MiniConda

sh Miniconda2-latest-Linux-x86_64.sh -f

+1

osx El Capitan 10.11.6 Anaconda 4.1.1 :

vi ./.condarc

enter image description here

, pypi: https://pypi.python.org/pypi/osx-64/

0
source

All Articles