<div dir="ltr">Hello Sebastian <div><br></div><div>Thanks for some insight.. So here are some of my responses </div><div><br></div><div>1) <span style="font-size:13px">$ python -c 'import numpy; print(numpy.__version__)'</span></div><div><p style="margin:0px;font-size:12px;line-height:normal;font-family:'Andale Mono';color:rgb(41,249,20);background-color:rgb(0,0,0)"><span style="">1.8.0rc1</span></p></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><font face="tahoma,sans-serif">2) </font><span style="color:rgb(41,249,20);font-family:'Andale Mono';font-size:12px;background-color:rgb(0,0,0)"> </span><span style="color:rgb(41,249,20);font-family:'Andale Mono';font-size:12px;background-color:rgb(0,0,0)">python -c 'import numpy; print(scipy.__version__)'</span></div><div><p style="margin:0px;font-size:12px;line-height:normal;font-family:'Andale Mono';color:rgb(41,249,20);background-color:rgb(0,0,0)"><span style="">Traceback (most recent call last):</span></p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:'Andale Mono';color:rgb(41,249,20);background-color:rgb(0,0,0)"><span style=""> File "<string>", line 1, in <module></span></p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:'Andale Mono';color:rgb(41,249,20);background-color:rgb(0,0,0)"><span style="">NameError: name 'scipy' is not defined</span></p><p style="margin:0px;font-size:12px;line-height:normal;font-family:'Andale Mono';color:rgb(41,249,20);background-color:rgb(0,0,0)"><span style=""><br></span></p></div><div><font face="tahoma,sans-serif"><br></font></div><div><font face="tahoma,sans-serif">And I installed everything using pip install numpy/scikit-learn </font></div><div><font face="tahoma,sans-serif">and so on. </font></div><div><font face="tahoma,sans-serif">But when I tried to do this </font></div><div><p style="margin:0px;font-size:12px;line-height:normal;font-family:'Andale Mono';color:rgb(41,249,20);background-color:rgb(0,0,0)"><span style="">pip install --upgrade scipy</span></p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:'Andale Mono';color:rgb(41,249,20);background-color:rgb(0,0,0)"><span style="">Requirement already up-to-date: scipy in /Library/Python/2.7/site-packages</span></p>
<p style="margin:0px;font-size:12px;line-height:normal;font-family:'Andale Mono';color:rgb(41,249,20);background-color:rgb(0,0,0)"><span style="">Requirement already up-to-date: numpy>=1.6.2 in /Library/Python/2.7/site-packages (from scipy)</span></p><p style="margin:0px;font-size:12px;line-height:normal;font-family:'Andale Mono';color:rgb(41,249,20);background-color:rgb(0,0,0)"><br></p></div><div><font face="tahoma,sans-serif"><br></font></div><div><font face="tahoma,sans-serif">So not sure why it is not being defined. </font></div><div><font face="tahoma,sans-serif">Thanks,<br>Ruchika<br>----------------------------------------<br>Dr Ruchika Nayyar,<br>Post Doctoral Fellow for ATLAS Collaboration<br>University of Arizona <br></font></div><font face="tahoma,sans-serif">Arizona, USA.<br></font><div><font face="tahoma,sans-serif">--------------------------------------------<br></font></div></div></div></div>
<br><div class="gmail_quote">On Wed, Jun 1, 2016 at 10:46 AM, Sebastian Raschka <span dir="ltr"><<a href="mailto:mail@sebastianraschka.com" target="_blank">mail@sebastianraschka.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi Ruchika,<br>
<br>
could you maybe post the results from<br>
<br>
$ python -c 'import numpy; print(numpy.__version__)'<br>
1.11.0<br>
$ python -c 'import numpy; print(scipy.__version__)'<br>
0.17.0<br>
<br>
just to make sure that these are indeed the latest versions? However, I suspect that this is more of a compile rather than a version issue since scikit should work fine on older versions of NumPy and SciPy — e.g., one of the CI tests is running with NUMPY_VERSION=“1.6.2” and SCIPY_VERSION="0.11.0"<br>
<br>
Does NumPy run correctly if you run some examples without scikit-learn?<br>
E.g., you may want to run<br>
<br>
import numpy<br>
numpy.test('full')<br>
<br>
import scipy<br>
scipy.test('full’)<br>
<br>
to narrow down the problem further.<br>
<br>
And how did you compile & install scikit-learn?<br>
<br>
Best,<br>
Sebastian<br>
<div><div class="h5"><br>
> On Jun 1, 2016, at 1:24 PM, Ruchika Nayyar <<a href="mailto:ruchika.work@gmail.com">ruchika.work@gmail.com</a>> wrote:<br>
><br>
><br>
> Thanks,<br>
> Ruchika<br>
> ----------------------------------------<br>
> Dr Ruchika Nayyar,<br>
> Post Doctoral Fellow for ATLAS Collaboration<br>
> University of Arizona<br>
> Arizona, USA.<br>
> --------------------------------------------<br>
><br>
> ---------- Forwarded message ----------<br>
> From: <<a href="mailto:scikit-learn-owner@python.org">scikit-learn-owner@python.org</a>><br>
> Date: Wed, Jun 1, 2016 at 10:23 AM<br>
> Subject: ValueError<br>
> To: <a href="mailto:ruchika.work@gmail.com">ruchika.work@gmail.com</a><br>
><br>
><br>
> This list allows posts by subscribers only. Please subscribe at<br>
> <a href="https://mail.python.org/mailman/listinfo/scikit-learn" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/scikit-learn</a> to post to the<br>
> list.<br>
><br>
><br>
><br>
> ---------- Forwarded message ----------<br>
> From: Ruchika Nayyar <<a href="mailto:ruchika.work@gmail.com">ruchika.work@gmail.com</a>><br>
> To: <a href="mailto:scikit-learn@python.org">scikit-learn@python.org</a><br>
> Cc:<br>
> Date: Wed, 1 Jun 2016 10:23:14 -0700<br>
> Subject: ValueError<br>
> Hi<br>
><br>
> I am new to scikit-learn and while writing a python script to do a simple BDT using scikit-learn. I see error when I do this:<br>
><br>
> from sklearn import datasets<br>
><br>
><br>
> Traceback (most recent call last):<br>
> File "bdt.py", line 12, in <module><br>
> from sklearn import datasets<br>
> File "/Library/Python/2.7/site-packages/sklearn/__init__.py", line 57, in <module><br>
> from .base import clone<br>
> File "/Library/Python/2.7/site-packages/sklearn/base.py", line 11, in <module><br>
> from .utils.fixes import signature<br>
> File "/Library/Python/2.7/site-packages/sklearn/utils/__init__.py", line 10, in <module><br>
> from .murmurhash import murmurhash3_32<br>
> File "numpy.pxd", line 155, in init sklearn.utils.murmurhash (sklearn/utils/murmurhash.c:5029)<br>
> ValueError: numpy.dtype has the wrong size, try recompiling<br>
><br>
><br>
> I have already tried to uninstall numpy/scipy and pandas. They all are the latest and compatible version but something is not right. Can you tell me what I am doing wrong?<br>
><br>
> Thanks,<br>
> Ruchika<br>
> ----------------------------------------<br>
> Dr Ruchika Nayyar,<br>
> Post Doctoral Fellow for ATLAS Collaboration<br>
> University of Arizona<br>
> Arizona, USA.<br>
> --------------------------------------------<br>
><br>
><br>
</div></div>> _______________________________________________<br>
> scikit-learn mailing list<br>
> <a href="mailto:scikit-learn@python.org">scikit-learn@python.org</a><br>
> <a href="https://mail.python.org/mailman/listinfo/scikit-learn" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/scikit-learn</a><br>
<br>
_______________________________________________<br>
scikit-learn mailing list<br>
<a href="mailto:scikit-learn@python.org">scikit-learn@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/scikit-learn" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/scikit-learn</a><br>
</blockquote></div><br></div></div>