2016-03-18 3 views
3

vor kurzem habe ich die Anaconda installiert, aber wenn ich es geöffnet habe, habe ich diesen Fehler: Error fetching package index Could not find URL: https://pypi.python.org/pypi/osx-64/ auch wenn ich den Befehl conda install ... habe ich Using Anaconda Cloud api site https://api.anaconda.org Fetching package metadata: .....Error: Could not find URL: https://pypi.python.org/pypi/osx-64/. und ich kann keine Pakete installieren.Conda Fehler: konnte nicht gefunden url

und dies ist 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 .

Antwort

6

Bearbeiten Sie Ihre Datei ~/.condarc und entfernen Sie die Zeilen, die pypi.* enthalten. Dies sind keine gültigen Conda-Kanäle.

1

Sie sollten die Datei condarc wie erwähnt bearbeiten. Es ist versteckt, so dass Sie es möglicherweise nicht sofort finden.

Sie können es wie diese finden, von Ihnen zu Hause Ordner:

find . -name ".condarc" 
4

ich es gelöst, indem die folgenden Befehle in der Klemme durchgeführt:

  1. Conda info

  2. cd zur Konfigurationsdatei (cd/Users/select/the/Ordner/wo/config/file/ist)

  3. offen .condarc (textEdit App geöffnet, um die Datei automatisch)

    Vom textEdit: löschen https://pypi.python.org/pypi/ und speichern und schließen .condarc Datei

  4. Conda info (zu überprüfen, es gelöscht)

  5. Conda Update Conda

  6. Conda Update anaconda
1

MiniConda Installieren

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

Im gleichen Ordner früheren Conda Es wird alle Conda verwandtes Problem

Works für mich als Charme

lösen