Skip to content

Install dependencies #1425

Closed
Closed

Description

@hinnerk

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.

Activity

  1. josef-pkt commented on Feb 24, 2014

    @josef-pkt
    Member

    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

  2. rgommers commented on Feb 24, 2014

    @rgommers
    Member

    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.

  3. jseabold commented on Apr 23, 2014

    @jseabold
    Member

    Do we also need to adopt scipy/scipy#3566 @rgommers

  4. rgommers commented on Aug 17, 2014

    @rgommers
    Member

    @jseabold yes, done by gh-1902. Missed your question before, sorry about that.

  5. jseabold commented on Dec 3, 2014

    @jseabold
    Member

    I think this is solved. Please re-open if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions