Chinaunix首页 | 论坛 | 博客
  • 博客访问: 8048983
  • 博文数量: 594
  • 博客积分: 13065
  • 博客等级: 上将
  • 技术积分: 10324
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-26 16:44
个人简介

推荐: blog.csdn.net/aquester https://github.com/eyjian https://www.cnblogs.com/aquester http://blog.chinaunix.net/uid/20682147.html

文章分类

全部博文(594)

分类: Python/Ruby

2017-04-18 12:18:50

# python setup.py install
Traceback (most recent call last):
  File "setup.py", line 11, in
    import setuptools
  File "/home/zhangsan/setuptools-34.4.1/setuptools/__init__.py", line 12, in
    import setuptools.version
  File "/home/zhangsan/setuptools-34.4.1/setuptools/version.py", line 1, in
    import pkg_resources
  File "/home/zhangsan/setuptools-34.4.1/pkg_resources/__init__.py", line 72, in
    import packaging.requirements
  File "/usr/local/lib/python2.7/site-packages/packaging/requirements.py", line 59, in
    MARKER_EXPR = originalTextFor(MARKER_EXPR())("marker")
TypeError: __call__() takes exactly 2 arguments (1 given)


对于这个错误,只需要提示找到requirements.py的59行,将
MARKER_EXPR = originalTextFor(MARKER_EXPR())("marker")
改成:
MARKER_EXPR = originalTextFor(MARKER_EXPR)("marker")
即可。

如果在安装psycopg2遇到错误:
Error: pg_config executable not found.

则表示需要安装包postgresql-devel:
yum install postgresql-devel
阅读(12343) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~