Command "python setup.py egg_info" failed with error code 1

1,278 views
Skip to first unread message

Noel Redard Ayala

unread,
Nov 2, 2015, 7:43:00 PM11/2/15
to pystatsmodels
Hey guys, please help me. I've been trying to install statsmodels using: pip3 install --upgrade statsmodels 
on my MAC OS X 10.7.5

Collecting statsmodels
  Using cached statsmodels-0.6.1.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 20, in <module>
      File "/private/var/folders/tg/x97wmtys35jfhx06xf_0_nnm0000gn/T/pip-build-1thxgb1y/statsmodels/setup.py", line 393, in <module>
        install_requires) = check_dependency_versions(min_versions)
      File "/private/var/folders/tg/x97wmtys35jfhx06xf_0_nnm0000gn/T/pip-build-1thxgb1y/statsmodels/setup.py", line 137, in check_dependency_versions
        from pandas.version import short_version as pversion
      File "/usr/local/lib/python3.5/site-packages/pandas/__init__.py", line 44, in <module>
        from pandas.core.api import *
      File "/usr/local/lib/python3.5/site-packages/pandas/core/api.py", line 9, in <module>
        from pandas.core.groupby import Grouper
      File "/usr/local/lib/python3.5/site-packages/pandas/core/groupby.py", line 16, in <module>
        from pandas.core.frame import DataFrame
      File "/usr/local/lib/python3.5/site-packages/pandas/core/frame.py", line 41, in <module>
        from pandas.core.series import Series
      File "/usr/local/lib/python3.5/site-packages/pandas/core/series.py", line 2864, in <module>
        import pandas.tools.plotting as _gfx
      File "/usr/local/lib/python3.5/site-packages/pandas/tools/plotting.py", line 28, in <module>
        import pandas.tseries.converter as conv
      File "/usr/local/lib/python3.5/site-packages/pandas/tseries/converter.py", line 7, in <module>
        import matplotlib.units as units
      File "/usr/local/lib/python3.5/site-packages/matplotlib/__init__.py", line 1131, in <module>
        rcParams = rc_params()
      File "/usr/local/lib/python3.5/site-packages/matplotlib/__init__.py", line 975, in rc_params
        return rc_params_from_file(fname, fail_on_error)
      File "/usr/local/lib/python3.5/site-packages/matplotlib/__init__.py", line 1100, in rc_params_from_file
        config_from_file = _rc_params_in_file(fname, fail_on_error)
      File "/usr/local/lib/python3.5/site-packages/matplotlib/__init__.py", line 1018, in _rc_params_in_file
        with _open_file_or_url(fname) as fd:
      File "/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/python3.5/contextlib.py", line 59, in __enter__
        return next(self.gen)
      File "/usr/local/lib/python3.5/site-packages/matplotlib/__init__.py", line 1000, in _open_file_or_url
        encoding = locale.getdefaultlocale()[1]
      File "/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/python3.5/locale.py", line 559, in getdefaultlocale
        return _parse_localename(localename)
      File "/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/python3.5/locale.py", line 487, in _parse_localename
        raise ValueError('unknown locale: %s' % localename)
    ValueError: unknown locale: UTF-8
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/tg/x97wmtys35jfhx06xf_0_nnm0000gn/T/pip-build-1thxgb1y/statsmodels

josef...@gmail.com

unread,
Nov 2, 2015, 7:49:49 PM11/2/15
to pystatsmodels
This fails in installing matplotlib

try 
pip --install matplotlib

if that fails, then this might be a question for the matplotlib mailing list

If you already have matplotlib and pandas and patsy installed, then you could also just use --no-dep
pip3 install --upgrade --no-deps statsmodels

which would only install statsmodels.

Hopefully someone knows this better than my minimal pip and non-existing Mac OS knowledge.

Josef

Ralf Gommers

unread,
Nov 3, 2015, 1:41:59 AM11/3/15
to pystat...@googlegroups.com
Correction: it fails in importing matplotlib (``import matplotlib.units as units``).

So you have a broken matplotlib install.

``pip install`` won't re-install, so maybe try instead:

    pip install --upgrade --no-deps matplotlib

Ralf

Noel Redard Ayala

unread,
Nov 3, 2015, 7:10:53 PM11/3/15
to pystatsmodels
It says requirement already up to date….It doesn't work.

MacBook-Pro-de-Noel:~ NONO$ pip3 install --upgrade --no-deps matplotlib
Requirement already up-to-date: matplotlib in /usr/local/lib/python3.5/site-packages

Nathaniel Smith

unread,
Nov 3, 2015, 7:13:38 PM11/3/15
to pystatsmodels
Allegedly pip install has a --force-reinstall option that might be useful here
--
Nathaniel J. Smith -- http://vorpus.org

Noel Redard Ayala

unread,
Nov 3, 2015, 8:25:29 PM11/3/15
to pystatsmodels
I installed previous version of Matplotlib, doing pip3 install matplotlib==1.4.3, and it worked, now I don't have problems with python3.5, pandas, statsmodels and matplotlib!!!

Installing Matplotlib 1.5.0 has some crashes with pandas(0.17.0) and statsmodels (0.6.1) installations.

Thanks all for your help.
Reply all
Reply to author
Forward
0 new messages