[Chicago] Fun in learning ML

Randy Baxley randy7771026 at gmail.com
Sun Feb 1 05:02:08 CET 2015


user at freegeekchicago:/usr/lib/python2.7/dist-packages$ sudo easy_install
statsmodels
[sudo] password for user:
Searching for statsmodels
Best match: statsmodels 0.6.1
Adding statsmodels 0.6.1 to easy-install.pth file

Using /usr/local/lib/python2.7/dist-packages
Processing dependencies for statsmodels
Finished processing dependencies for statsmodels
user at freegeekchicago:/usr/lib/python2.7/dist-packages$

but still

/usr/bin/python2.7 "/home/user/PycharmProjects/ml/linear regression.py"
Traceback (most recent call last):
  File "/home/user/PycharmProjects/ml/linear regression.py", line 1, in
<module>
    import statsmodels.api as sm
  File "/usr/local/lib/python2.7/dist-packages/statsmodels/api.py", line
13, in <module>
    from .discrete.discrete_model import (Poisson, Logit, Probit,
  File
"/usr/local/lib/python2.7/dist-packages/statsmodels/discrete/discrete_model.py",
line 40, in <module>
    from pandas.core.api import get_dummies
ImportError: cannot import name get_dummies

Process finished with exit code 1

with

import statsmodels.api as sm
# import statsmodels.api, numpy, scipy, matplotlib, pandas, sympy, nose as sm




On Sat, Jan 31, 2015 at 8:22 PM, Joshua Herman <zitterbewegung at gmail.com>
wrote:

> Dear Randy,
> Try doing easy_install statsmodels and then comment out your import of all
> of those packages and uncomment the statsmodels object.
> Sincerely,
> Joshua Herman
>
> On Sat, Jan 31, 2015 at 5:32 PM, Randy Baxley <randy7771026 at gmail.com>
> wrote:
>
>> Yes, I have loaded the stats package just do not seem to have got it in
>> the right place therefore the need for some remedial linux / xubuntu help
>> by someone who uses statsmodels and Pycharm.  I loaded Octave today so will
>> try to get through the first exercise with that.
>>
>> On Sat, Jan 31, 2015 at 5:08 PM, Joshua Herman <zitterbewegung at gmail.com>
>> wrote:
>>
>>> Hi randy you appear to be referencing an object that you commented out
>>> that isn't initialized have you installed the stats package?
>>> On Fri, Jan 30, 2015 at 12:43 PM Randy Baxley <randy7771026 at gmail.com>
>>> wrote:
>>>
>>>> So there is a list of things people need to know for learning to do ML
>>>> projects with Python.
>>>>
>>>> Add to that list for old legacy IBM programmers how to add packages
>>>> using linux.
>>>>
>>>> I have obviously gotten some things in the wrong place.  I have
>>>> individually gotten the second list of imports.  I think it possible a lot
>>>> of individual modules though did not load during these processes or in
>>>> loading statsmodels.
>>>>
>>>> Here in the attachmentsis the current state of my fun in Pycharm.
>>>>
>>>> I think I need some day long workshops in making linux and Pycharm work
>>>> for me.
>>>>
>>>>
>>>> _______________________________________________
>>>> Chicago mailing list
>>>> Chicago at python.org
>>>> https://mail.python.org/mailman/listinfo/chicago
>>>>
>>>
>>> _______________________________________________
>>> Chicago mailing list
>>> Chicago at python.org
>>> https://mail.python.org/mailman/listinfo/chicago
>>>
>>>
>>
>> _______________________________________________
>> Chicago mailing list
>> Chicago at python.org
>> https://mail.python.org/mailman/listinfo/chicago
>>
>>
>
> _______________________________________________
> Chicago mailing list
> Chicago at python.org
> https://mail.python.org/mailman/listinfo/chicago
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/chicago/attachments/20150131/aa01a4ff/attachment.html>


More information about the Chicago mailing list