Hi,
On 2012-08-17 13:15:46 +0000, Gaurav Bhalla said:
> Hi,
>
> I am very new to both Python and Scikits, I find Scikits very
> interesting and would like to use it for my research. I am running into
> download problems unfortunately. I would be really really grateful if
> someone could help me.
>
> I am running Python 2.7, my IDLE session shows me this
>
> Python 2.7 (r27:82525, Jul 4 2010, 09:01:59) [MSC v.1500 32 bit
> (Intel)] on win32
>
> I do have the right Numpy and Scipy downloaded as well as as the
> Distribute package for win32.
>
> I get the following error message on import.
>
> ########################################################
> from sklearn import svm
> traceback (most recent call last):
> file "<stdin>", line 1, in <module>
> file "C:\Python27\lib\site-packages\sklearn\__init__.py", line 16, in <module>
>
> from . import check_build
> ImportError: cannot import name check_build
> #########################################################
>
>
> I am clueless as to why this is the case , Please help! I need to get
> set up urgently.
Quite literally, this means sys.path does not contain:
C:\Python27\lib\site-packages\sklearn. If it did, then the import would
succeed (presumably check_build.py is in that directory.)
This usually means you are running the "wrong" Python interpreter (i.e.
one without the proper sys.path loaded), but I'm not familiar enough
with SciKits to say how to run the "right" one.
You could try a quick fix, but that's only likely to get you so far.
Something like:
>>> import sys
>>> sys.path.append("C:\Python27\lib\site-packages\sklearn")
Alex
>
> Thanks in advance,
> G
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
--
Alex Clark · http://pythonpackages.com
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general