【问题标题】:pip install [all] not installing dependenciespip install [all] 不安装依赖项
【发布时间】:2013-11-20 23:46:22
【问题描述】:

我正在尝试使用pip install statsmodels[all] 安装statsmodels 及其所有依赖项。

问题:为什么它仍然告诉我缺少依赖项?

输出:

Downloading/unpacking statsmodels[all]
  Using download cache from /Users/mynusername/.pip/cache/https%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2Fs%2Fstatsmodels%2Fstatsmodels-0.5.0.tar.gz
  Running setup.py egg_info for package statsmodels
    Traceback (most recent call last):
      File "<string>", line 16, in <module>
      File "/Users/mynusername/.virtualenvs/datasci/build/statsmodels/setup.py", line 463, in <module>
        check_dependency_versions(min_versions)
      File "/Users/mynusername/.virtualenvs/datasci/build/statsmodels/setup.py", line 122, in check_dependency_versions
        raise ImportError("statsmodels requires patsy. http://patsy.readthedocs.org")
    ImportError: statsmodels requires patsy. http://patsy.readthedocs.org
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 16, in <module>

  File "/Users/mynusername/.virtualenvs/datasci/build/statsmodels/setup.py", line 463, in <module>

    check_dependency_versions(min_versions)

  File "/Users/mynusername/.virtualenvs/datasci/build/statsmodels/setup.py", line 122, in check_dependency_versions

    raise ImportError("statsmodels requires patsy. http://patsy.readthedocs.org")

ImportError: statsmodels requires patsy. http://patsy.readthedocs.org

【问题讨论】:

    标签: python python-2.7 pip statsmodels


    【解决方案1】:

    因为我们选择不需要打包工具为您安装依赖项。

    【讨论】:

    • 因为当我想安装或更新 需要 numpy 的软件包时,pip 通过尝试更新它来卸载我的 numpy 时,我“讨厌”它。 pip 实际上并没有设法在 Windows 上安装 numpy,因为它不使用二进制文件。
    猜你喜欢
    • 2018-09-27
    • 2021-04-11
    • 2016-08-21
    • 1970-01-01
    • 2011-01-20
    • 2020-09-21
    • 2017-07-07
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多