installing on 64bit windows 7 for Python 2.7 using unofficial installers #2065

Closed
etseidler opened this Issue Jun 13, 2013 · 6 comments

Comments

Projects
None yet
4 participants
@etseidler

So I took your suggestion and installed numpy, scipy, matplotlib and then scikit-learn (in that order) all from the same website that you listed (http://www.lfd.uci.edu/~gohlke/pythonlibs/#scikit-learn which was very helpful, btw). Out of curiosity, I ran the nose tests and got the output below. I'm pretty sure I can still use most of the scikit-learn functionality, but would anyone care to comment on that? Again, my approach was to use only the installers. Am I overlooking anything?

C:\Python27\scripts>nosetests.exe sklearn --exe
...............................................................C:\Python27\lib\site-packages\sklearn\manifold\spectral_embedding.py:225: UserWarning: Graph is not fully connected, spectral embedding may not works as expected.
  warnings.warn("Graph is not fully connected, spectral embedding"
.......C:\Python27\lib\site-packages\sklearn\covariance\graph_lasso_.py:45: RuntimeWarning: invalid value encountered in absolute
  gap += alpha * (np.abs(precision_).sum()
C:\Python27\lib\site-packages\sklearn\covariance\graph_lasso_.py:46: RuntimeWarning: invalid value encountered in absolute
  - np.abs(np.diag(precision_)).sum())
C:\Python27\lib\site-packages\numpy\linalg\linalg.py:1664: RuntimeWarning: invalid value encountered in absolute
  absd = absolute(d)
C:\Python27\lib\site-packages\sklearn\covariance\graph_lasso_.py:32: RuntimeWarning: invalid value encountered in absolute
  cost += alpha * (np.abs(precision_).sum()
C:\Python27\lib\site-packages\sklearn\covariance\graph_lasso_.py:33: RuntimeWarning: invalid value encountered in absolute
  - np.abs(np.diag(precision_)).sum())
C:\Python27\lib\site-packages\sklearn\covariance\graph_lasso_.py:195: RuntimeWarning: invalid value encountered in absolute
  if np.abs(d_gap) < tol:
....SS......C:\Python27\lib\site-packages\sklearn\datasets\tests\test_base.py:124: UserWarning: Could not load sample images, PIL is not available.
  warnings.warn("Could not load sample images, PIL is not available.")
...C:\Python27\lib\site-packages\sklearn\datasets\tests\test_base.py:145: UserWarning: Could not load sample images, PIL is not available.
  warnings.warn("Could not load sample images, PIL is not available.")
.C:\Python27\lib\site-packages\sklearn\datasets\tests\test_base.py:161: UserWarning: Could not load sample images, PIL is not available.
  warnings.warn("Could not load sample images, PIL is not available.")
.....SS................................................S.........................................................S.........................................SSS......................C:\Python27\lib\site-packages\sklearn\externals\joblib\test
test_func_inspect.py:122: UserWarning: Cannot inspect object <functools.partial object at 0x000000000F7D7E08>, ignore list will not work.
  nose.tools.assert_equal(filter_args(ff, ['y'], (1, )),
...............................................................................................................................................................................................................................................
...............................................................................................................................................................................................................................................
...............................................An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (63, 0))

An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (63, 0))

....S........................................................................................................S.F...............................................................................................................................
...............................................................................................................................................................................................................................................
.........................................................................................................................................EE...........................................SSS....S....S............................................
......................................................................................
======================================================================
ERROR: sklearn.tests.test_dummy.test_stratified_strategy
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\nose-1.3.0-py2.7.egg\nose\case.py", line 197, in runTest
    self.test(*self.arg)
  File "C:\Python27\lib\site-packages\sklearn\tests\test_dummy.py", line 96, in test_stratified_strategy
    y_pred = clf.predict(X)
  File "C:\Python27\lib\site-packages\sklearn\dummy.py", line 133, in predict
    proba = self.predict_proba(X)
  File "C:\Python27\lib\site-packages\sklearn\dummy.py", line 197, in predict_proba
    out = rs.multinomial(1, class_prior_[k], size=n_samples)
  File "mtrand.pyx", line 4257, in mtrand.RandomState.multinomial (numpy\random\mtrand\mtrand.c:20210)
TypeError: unsupported operand type(s) for +: 'long' and 'tuple'

======================================================================
ERROR: sklearn.tests.test_dummy.test_stratified_strategy_multioutput
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\nose-1.3.0-py2.7.egg\nose\case.py", line 197, in runTest
    self.test(*self.arg)
  File "C:\Python27\lib\site-packages\sklearn\tests\test_dummy.py", line 115, in test_stratified_strategy_multioutput
    y_pred = clf.predict(X)
  File "C:\Python27\lib\site-packages\sklearn\dummy.py", line 133, in predict
    proba = self.predict_proba(X)
  File "C:\Python27\lib\site-packages\sklearn\dummy.py", line 197, in predict_proba
    out = rs.multinomial(1, class_prior_[k], size=n_samples)
  File "mtrand.pyx", line 4257, in mtrand.RandomState.multinomial (numpy\random\mtrand\mtrand.c:20210)
TypeError: unsupported operand type(s) for +: 'long' and 'tuple'

======================================================================
FAIL: Test BayesianRegression ARD classifier
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\nose-1.3.0-py2.7.egg\nose\case.py", line 197, in runTest
    self.test(*self.arg)
  File "C:\Python27\lib\site-packages\sklearn\linear_model\tests\test_bayes.py", line 58, in test_toy_ard_object
    assert(np.abs(clf.predict(test) - [1, 3, 4]).sum() < 1.e-3)  # identity
AssertionError

----------------------------------------------------------------------
Ran 1598 tests in 96.640s

FAILED (SKIP=16, errors=2, failures=1)

C:\Python27\scripts>
@larsmans

This comment has been minimized.

Show comment Hide comment
@larsmans

larsmans Jun 21, 2013

Member

Can you tell us the output from:

import numpy, scipy, sys
print(numpy.__version__)
print(scipy.__version__)
print(sys.version)

?

Member

larsmans commented Jun 21, 2013

Can you tell us the output from:

import numpy, scipy, sys
print(numpy.__version__)
print(scipy.__version__)
print(sys.version)

?

@etseidler

This comment has been minimized.

Show comment Hide comment
@etseidler

etseidler Jun 22, 2013

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\seidler>python
Python 2.7.2 (default, Jun 12 2011, 14:24:46) [MSC v.1500 64 bit (AMD64)]
on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy, scipy, sys
>>> print numpy.__version__
1.7.1
>>> print scipy.__version__
0.12.0
>>> print sys.version
2.7.2 (default, Jun 12 2011, 14:24:46) [MSC v.1500 64 bit (AMD64)]
>>>

On Fri, Jun 21, 2013 at 5:05 PM, Lars Buitinck notifications@github.comwrote:

Can you tell us the output from:

import numpy, scipy, sys
print(numpy.version)
print(scipy.version)
print(sys.version)

?


Reply to this email directly or view it on GitHubhttps://github.com/scikit-learn/scikit-learn/issues/2065#issuecomment-19843458
.

Eric Seidler
http://www.linkedin.com/in/etseidler

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\seidler>python
Python 2.7.2 (default, Jun 12 2011, 14:24:46) [MSC v.1500 64 bit (AMD64)]
on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy, scipy, sys
>>> print numpy.__version__
1.7.1
>>> print scipy.__version__
0.12.0
>>> print sys.version
2.7.2 (default, Jun 12 2011, 14:24:46) [MSC v.1500 64 bit (AMD64)]
>>>

On Fri, Jun 21, 2013 at 5:05 PM, Lars Buitinck notifications@github.comwrote:

Can you tell us the output from:

import numpy, scipy, sys
print(numpy.version)
print(scipy.version)
print(sys.version)

?


Reply to this email directly or view it on GitHubhttps://github.com/scikit-learn/scikit-learn/issues/2065#issuecomment-19843458
.

Eric Seidler
http://www.linkedin.com/in/etseidler

@larsmans

This comment has been minimized.

Show comment Hide comment
@larsmans

larsmans Jun 22, 2013

Member

I'm guessing it's NumPy 1.7 that's causing the issue. Hold on.

Member

larsmans commented Jun 22, 2013

I'm guessing it's NumPy 1.7 that's causing the issue. Hold on.

@larsmans

This comment has been minimized.

Show comment Hide comment
@larsmans

larsmans Jun 23, 2013

Member

I'm sorry, but I can't reproduce this with NumPy 1.7.1 and SciPy 0.12.0 on Linux.

Member

larsmans commented Jun 23, 2013

I'm sorry, but I can't reproduce this with NumPy 1.7.1 and SciPy 0.12.0 on Linux.

@etseidler

This comment has been minimized.

Show comment Hide comment
@etseidler

etseidler Jun 23, 2013

no worries, from what i can tell i can use at least most of the
functionality. i reported the issue mainly for feedback to your team.
thanks for checking this and have a good one.

On Sun, Jun 23, 2013 at 8:51 AM, Lars Buitinck notifications@github.comwrote:

I'm sorry, but I can't reproduce this with NumPy 1.7.1 and SciPy 0.12.0 on
Linux.


Reply to this email directly or view it on GitHubhttps://github.com/scikit-learn/scikit-learn/issues/2065#issuecomment-19874247
.

Eric Seidler
http://www.linkedin.com/in/etseidler

no worries, from what i can tell i can use at least most of the
functionality. i reported the issue mainly for feedback to your team.
thanks for checking this and have a good one.

On Sun, Jun 23, 2013 at 8:51 AM, Lars Buitinck notifications@github.comwrote:

I'm sorry, but I can't reproduce this with NumPy 1.7.1 and SciPy 0.12.0 on
Linux.


Reply to this email directly or view it on GitHubhttps://github.com/scikit-learn/scikit-learn/issues/2065#issuecomment-19874247
.

Eric Seidler
http://www.linkedin.com/in/etseidler

@amueller amueller added this to the 0.15.1 milestone Jul 18, 2014

@ogrisel

This comment has been minimized.

Show comment Hide comment
@ogrisel

ogrisel Jul 29, 2014

Member

This was already fixed. I built scikit-learn 0.15.0 against Christoph Gohlke's binaries for numpy and scipy.

Member

ogrisel commented Jul 29, 2014

This was already fixed. I built scikit-learn 0.15.0 against Christoph Gohlke's binaries for numpy and scipy.

@ogrisel ogrisel closed this Jul 29, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment