내가 업데이트하거나 버전을 설치하려고 할 때 pandas
또는 pyOpenSSL
(의 인스턴스를 sudo pip --[un]install|update [--no-use-wheel] [pandas|pyOpenSSL|xattr|stevedore]
사용하여, pip
1.5.4) 내가 얻을 :
Command python setup.py egg_info failed with error code 1 in /private/tmp/pip_build_root/pandas
Storing debug log for failure in /Users/Rax/Library/Logs/pip.log
...
TypeError: resolve() got an unexpected keyword argument 'replace_conflicting'
이 오류가 발생하는 이유와이를 방지하려면 어떻게해야합니까?
OSX 10.9.2; Python 2.7.5; setuptools
3.4.3.
오류 보고서에 대한 자세한 정보 (의 경우 pandas
) :
Downloading/unpacking pandas
Downloading pandas-0.13.1.tar.gz (6.1MB): 6.1MB downloaded
Running setup.py (path:/private/tmp/pip_build_root/pandas/setup.py) egg_info for package pandas
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/private/tmp/pip_build_root/pandas/setup.py", line 590, in <module>
**setuptools_kwargs)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 112, in setup
_setup_distribution = dist = klass(attrs)
File "/Library/Python/2.7/site-packages/setuptools/dist.py", line 239, in __init__
self.fetch_build_eggs(attrs.pop('setup_requires'))
File "/Library/Python/2.7/site-packages/setuptools/dist.py", line 264, in fetch_build_eggs
replace_conflicting=True
TypeError: resolve() got an unexpected keyword argument 'replace_conflicting'
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/private/tmp/pip_build_root/pandas/setup.py", line 590, in <module>
**setuptools_kwargs)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 112, in setup
_setup_distribution = dist = klass(attrs)
File "/Library/Python/2.7/site-packages/setuptools/dist.py", line 239, in __init__
self.fetch_build_eggs(attrs.pop('setup_requires'))
File "/Library/Python/2.7/site-packages/setuptools/dist.py", line 264, in fetch_build_eggs
replace_conflicting=True
TypeError: resolve() got an unexpected keyword argument 'replace_conflicting'
내용 /Users/Rax/Library/Logs/pip.log
:
Exception information:
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/Library/Python/2.7/site-packages/pip/commands/install.py", line 274, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/Library/Python/2.7/site-packages/pip/req.py", line 1215, in prepare_files
req_to_install.run_egg_info()
File "/Library/Python/2.7/site-packages/pip/req.py", line 321, in run_egg_info
command_desc='python setup.py egg_info')
File "/Library/Python/2.7/site-packages/pip/util.py", line 697, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command python setup.py egg_info failed with error code 1 in /private/tmp/pip_build_root/pandas
Cython - 0.20.1 - active
Flask - 0.10.1 - active
Jinja2 - 2.7.2 - active
MarkupSafe - 0.19 - active
PyRSS2Gen - 1.1 - active
Pygments - 1.6 - active
Python - 2.7.5 - active development (/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload)
Sphinx - 1.2.2 - active
Twisted - 13.2.0 - active
Werkzeug - 0.9.4 - active
altgraph - 0.11 - active
astropy - 0.3 - active
backports.ssl-match-hostname - 3.4.0.2 - active
bdist-mpkg - 0.5.0 - active
brewer2mpl - 1.3.2 - active
cffi - 0.8.2 - active
colorama - 0.2.7 - active
configobj - 5.0.1 - active
dill - 0.2b1 - active
distribute - 0.7.3 - active
docutils - 0.11 - active
ggplot - 0.4.7 - active
ipython - 1.2.1 - active
itsdangerous - 0.23 - active
macholib - 1.6 - active
matplotlib - 1.3.1 - active
modulegraph - 0.11 - active
mpltools - 0.1 - active
nose - 1.3.0 - active
numexpr - 2.3.1 - active
numpy - 1.8.0 - active
numpydoc - 0.4 - active
pandas - 0.13.1 - active
patsy - 0.2.1 - active
pika - 0.9.13 - active
pip - 1.5.4 - active
prettytable - 0.7.2 - active
progressbar - 2.2 - active
py2app - 0.8 - active
pycparser - 2.10 - active
pyparsing - 2.0.1 - active
python-dateutil - 2.2 - active
pytz - 2014.1.1 - active
pyzmq - 14.0.1 - active
readline - 6.2.4.1 - active
rpy2 - 2.3.9 - active
scikit-learn - 0.14.1 - active
scipy - 0.13.3 - active
setuptools - 3.4.3 - active
sphinx-argparse - 0.1.9 - active
sphinxcontrib-napoleon - 0.2.6 - active
sphinxcontrib-programoutput - 0.8 - active
statsmodels - 0.5.0 - active
stevedore - 0.14.1 - active
sympy - 0.7.5 - active
tornado - 3.2 - active
virtualenv-clone - 0.2.4 - active
virtualenv - 1.11.4 - active
virtualenvwrapper - 4.2 - active
websocket-client - 0.12.0 - active
wsgiref - 0.1.2 - active development (/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7)
xattr - 0.7.4 - active
yhat - 0.6.14 - active
yolk - 0.4.3 - active
zope.interface - 4.0.5 - active
FWIW, pandas
가상 환경에서 성공적으로 설치할 수 있습니다. 이 오류가 발생하고 실행되는 환경으로 다시 복사하면 다음과 같은 결과가 나타납니다 nosetests pandas
.
..SS..SS..SS..SS/Library/Python/2.7/site-packages/pandas/core/index.py:910: RuntimeWarning: tp_compare didn't return -1 or -2 for exception
result.sort()
..SS..SS..SS..SS..SSSSSSSSSS..SS..SS..SSSS.S.S...........SS..SS..SS..........................SSSSSSSSSS.SSSS.....SSSSSSSSSSSSSS.SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS.SSSS..................S.....S........................................................................................................................................................................................................................................................................SS......................................................................................................SSSS.......................SSS..............................................................................................................................................S.......................SSSSSSS...........................................................................................S......................................................................................................................................................S.........................................S..S..S....S........................................................S......S.S.......S...S..S............S............................................................................................................................................................................................S............................................................................S........................................./Library/Python/2.7/site-packages/numpy/core/_methods.py:55: RuntimeWarning: Mean of empty slice.
warnings.warn("Mean of empty slice.", RuntimeWarning)
...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................S...............................................
----------------------------------------------------------------------
Ran 4466 tests in 230.555s
OK (SKIP=330)
이것은 가상 환경에서 테스트를 실행하는 경우에도 얻는 것입니다.
원인은 여러 버전의 존재입니다 setuptools
새보다 파이썬 경로에 이전 이전 버전. 이 문제는 pip
with 호출을 시작하여 설치 목적으로 일시적으로 극복 할 수 있습니다.
PYTHONPATH=/PATH_TO_YOUR_CURRENT_PACKAGES/site-packages pip ...
다음을 실행하여 이것이 사실임을 확인할 수 있습니다.
import pkg_resources
pkg_resources.__file__
Python에서 pkg_resources.pyc
반환 된 파일이 현재 사이트 패키지의 위치에 없다는 점에 유의하십시오 .
어떤 경우에는 pkg_resources.pyc
시스템 패키지 디렉토리가 아닌 in your site packages 디렉토리가 실행 되도록하여 수정할 수도 있습니다 (예 : 후자를 삭제).
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다