conda update scikit-learn (auch scipy und numpy)
Ich glaube, ich habe mit pip install ein Durcheinander gemacht, wenn ich conda verwenden soll. Infolgedessen konnte ich das scikit-learn-Paket nicht auf die neueste Version aktualisieren. Ich habe scikit-learn sowohl mit conda als auch mit pip deinstalliert und dann mit conda erneut installiert, aber jetzt habe ich ein Problem mit import sklearn:
Python 2.7.11 |Anaconda custom (x86_64)| (default, Dec 6 2015, 18:57:58)
[GCC 4.2.1 (Apple Inc. build 5577)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
from sklearn import metrics
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/bowang/anaconda/lib/python2.7/site-packages/sklearn/metrics/__init__.py", line 7, in <module>
from .ranking import auc
ImportError: No module named ranking
Auch scheint es Verwechslungen mit der tatsächlich verwendeten Version von sklearn / numpy / scipy zu geben:
$ conda update scikit-learn
Using Anaconda Cloud api site https://api.anaconda.org
Fetching package metadata: ......
Solving package specifications: .........
# All requested packages already installed.
# packages in environment at /Users/bowang/anaconda:
#
scikit-learn 0.15.2 np18py27_0 http://repo.continuum.io/pkgs/free/osx-64/scikit-learn-0.15.2-np18py27_0.tar.bz2
$ conda update scipy
Using Anaconda Cloud api site https://api.anaconda.org
Fetching package metadata: ......
Solving package specifications: .........
# All requested packages already installed.
# packages in environment at /Users/bowang/anaconda:
#
scipy 0.14.0 np18py27_0 http://repo.continuum.io/pkgs/free/osx-64/scipy-0.14.0-np18py27_0.tar.bz2
Above zeigt, dass ich immer noch nicht auf die neuesten Versionen aktualisieren kann, aber:
$ python
Python 2.7.11 |Anaconda custom (x86_64)| (default, Dec 6 2015, 18:57:58)
[GCC 4.2.1 (Apple Inc. build 5577)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
>>> import scipy
>>> scipy.__version__
'0.17.0'
>>> import numpy
>>> numpy.__version__
'1.11.0'
>>> import sklearn
>>> sklearn.__version__
'0.17.1'
Gibt es eine Möglichkeit, all die Verwirrungen hier zu beseitigen und mir zu erlauben, die neuesten Versionen von sklearn / numpy / scipy zu aktualisieren und damit zu verwenden? Vielen Dank