You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The installation of statsmodels fails during a load of undeclared dependencies missing:
./bin/pip install statsmodels
Downloading/unpacking statsmodels
Running setup.py egg_info for package statsmodels
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/Users/user/Documents/Project-001/virtual/build/statsmodels/setup.py", line 463, in <module>
check_dependency_versions(min_versions)
File "/Users/user/Documents/Project-001/virtual/build/statsmodels/setup.py", line 114, in check_dependency_versions
raise ImportError("statsmodels requires scipy")
ImportError: statsmodels requires scipy
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/Users/user/Documents/Project-001/virtual/build/statsmodels/setup.py", line 463, in <module>
check_dependency_versions(min_versions)
File "/Users/user/Documents/Project-001/virtual/build/statsmodels/setup.py", line 114, in check_dependency_versions
raise ImportError("statsmodels requires scipy")
ImportError: statsmodels requires scipy
How do I integrate this piece of software into an automated installation process? Please assume an isolated installation and no touching or installation of global packages.
Currently we import several dependencies to check that they are installed. So the install requires that numpy, scipy and pandas are already installed, when scipy is installed.
The installation itself doesn't require the dependencies now (we dropped using numpy distutils in setup.py, but we might use it again if we need numpy for compiling c extension.)
Note, same as scipy, statsmodels also requires cython if you want to install from the github source, but not if installing from a source distribution. The source distribution includes the c files.
This is the same issue and same set of possible solutions as scipy/scipy#3379. Let's focus the discussion there, statsmodels could take over a solution from scipy if we arrive at one.
Activity
josef-pkt commentedon Feb 24, 2014
Currently we import several dependencies to check that they are installed. So the install requires that numpy, scipy and pandas are already installed, when scipy is installed.
The installation itself doesn't require the dependencies now (we dropped using numpy distutils in setup.py, but we might use it again if we need numpy for compiling c extension.)
Note, same as scipy, statsmodels also requires cython if you want to install from the github source, but not if installing from a source distribution. The source distribution includes the c files.
partially related #1267
jseabold commentedon Feb 24, 2014
You'll need to meet the dependencies before you can install.
http://statsmodels.sourceforge.net/devel/install.html#dependencies
rgommers commentedon Feb 24, 2014
This is the same issue and same set of possible solutions as scipy/scipy#3379. Let's focus the discussion there, statsmodels could take over a solution from scipy if we arrive at one.
jseabold commentedon Apr 23, 2014
Do we also need to adopt scipy/scipy#3566 @rgommers
rgommers commentedon Aug 17, 2014
@jseabold yes, done by gh-1902. Missed your question before, sorry about that.
jseabold commentedon Dec 3, 2014
I think this is solved. Please re-open if needed.