博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Python安装setuptools遇到的MARKER_EXPR错误
阅读量:7125 次
发布时间:2019-06-28

本文共 876 字,大约阅读时间需要 2 分钟。

# 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

转载地址:http://mwrel.baihongyu.com/

你可能感兴趣的文章
电脑高手常用快捷键
查看>>
杨辉三角形
查看>>
css3 flex笔记整理
查看>>
swift 分组tableview 设置分区投或者尾部,隐藏默认间隔高度
查看>>
MySQL案例09:Last_IO_Error: Got fatal error 1236 from master when reading data from binary log
查看>>
js 图片压缩 转成base64
查看>>
文艺小青年
查看>>
[转]制作Chrome扩展
查看>>
Tcpdump抓包
查看>>
正则表达式抓取网页中的邮箱地址
查看>>
关于在主进程返回;线程陷入死循环
查看>>
Java必须了解的“递归”与“IO流”!!!
查看>>
Http协议状态码
查看>>
css3单冒号和双冒号的区别
查看>>
小X与缩写
查看>>
第一次团队会议
查看>>
018-请你说一下设计测试用例的方法
查看>>
android 链接mysql数据库
查看>>
CAKeyframeAnimation 旋转动画
查看>>
学习python的第二天
查看>>