AllenDowney / ThinkStats2

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

Requirements.txt file for libraries #160

Closed mpalaiokostas closed 2 years ago

mpalaiokostas commented 4 years ago

I am facing some SciPy issues when trying to execute nsfg.py

To me, it looks like I have an incompatible SciPy version but I could not find anywhere a list of library versions that are required for the execution of the code.

Is it possible for someone to provide a working requirements.txt, please?

The traceback is as follows:

Traceback (most recent call last):

  File "c:/Users/---/ThinkStats2-master/code/nsfg.py", line 12, in <module>
    import thinkstats2

  File "c:\Users\---\ThinkStats2-master\code\thinkstats2.py", line 39, in <module>
    import scipy

  File "C:\Users\---\AppData\Roaming\Python\Python37\site-packages\scipy\__init__.py", line 119, in <module>
    from scipy._lib._ccallback import LowLevelCallable

  File "C:\Users\---\AppData\Roaming\Python\Python37\site-packages\scipy\_lib\_ccallback.py", line 1, in <module>
    from . import _ccallback_c

ImportError: cannot import name '_ccallback_c' from 'scipy._lib' (C:\Users\---\AppData\Roaming\Python\Python37\site-packages\scipy\_lib\__init__.py)