AllenDowney / ThinkStats2

Text and supporting code for Think Stats, 2nd Edition
http://allendowney.github.io/ThinkStats2/
GNU General Public License v3.0
4.03k stars 11.31k forks source link

Update numpy version to work with this version of pandas. #50

Closed robin-norwood closed 8 years ago

robin-norwood commented 8 years ago

On my MacOS 10.11.5 installation running python3, (not using anaconda), I got the following error:

$ virtualenv venv
$ source venv/bin/activate
$ python --version
$ python --version
Python 3.5.1
$ pip install -r requirements.txt
...
$ python nsfg.py 
numpy.dtype has the wrong size, try recompiling

After the included change:

$ virtualenv venv
$ source venv/bin/activate
$ pip install -r requirements.txt
...
$ python nsfg.py 
(13593, 244)
nsfg.py: All tests passed.

I haven't gotten to other examples from the book, so I'm not sure if anything else is broken. If so, I'll just switch to using anaconda instead.

AllenDowney commented 8 years ago

Thanks!