Python安装setuptools遇到的MARKER_EXPR错误
来源:互联网 发布:mac专用64位win8系统 编辑:程序博客网 时间:2024/06/08 05:53
# python setup.py install
Traceback (most recent call last):
File "setup.py", line 11, in <module>
import setuptools
File "/home/zhangsan/setuptools-34.4.1/setuptools/__init__.py", line 12, in <module>
import setuptools.version
File "/home/zhangsan/setuptools-34.4.1/setuptools/version.py", line 1, in <module>
import pkg_resources
File "/home/zhangsan/setuptools-34.4.1/pkg_resources/__init__.py", line 72, in <module>
import packaging.requirements
File "/usr/local/lib/python2.7/site-packages/packaging/requirements.py", line 59, in <module>
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")
即可。
Traceback (most recent call last):
File "setup.py", line 11, in <module>
import setuptools
File "/home/zhangsan/setuptools-34.4.1/setuptools/__init__.py", line 12, in <module>
import setuptools.version
File "/home/zhangsan/setuptools-34.4.1/setuptools/version.py", line 1, in <module>
import pkg_resources
File "/home/zhangsan/setuptools-34.4.1/pkg_resources/__init__.py", line 72, in <module>
import packaging.requirements
File "/usr/local/lib/python2.7/site-packages/packaging/requirements.py", line 59, in <module>
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")
即可。
2 0
- Python安装setuptools遇到的MARKER_EXPR错误
- Python--Setuptools的安装
- [完]Python 安装setuptools,解决使用Matplotlib遇到的问题
- Python安装setuptools的脚本
- python 安装setuptools时出现错误
- Python 安装setuptools报‘ascii’错误
- python的pip安装、setuptools安装
- python安装python-setuptools
- Python安装setuptools遇到错误:UnicodeDecodeError : 'ascii' codec can't decode byte 0xe0 in position 0
- 安装python软件找不到setuptools的解决方案
- 安装python软件找不到setuptools的解决方案
- python中pip和setuptools的安装
- python安装之setuptools
- cygwin 安装 python setuptools
- python setuptools安装方法
- python setuptools安装
- python setuptools安装
- python下setuptools安装
- 去除字符串首尾空格,中间多个空格只保留一个
- window.location window.location.href 跳转url区别
- C#学习之IntPtr类型
- 10.数组
- 15分钟建立和经营自己的VPN服务器,即使你不懂编程
- Python安装setuptools遇到的MARKER_EXPR错误
- openresty扫描代码全局变量
- Java-变量isnull和isEmpty
- numpy在centos下的安装
- 动画
- 数组名和指针的深入理解
- 二叉树的路径和
- MySQL问题总结
- 初学SpringMVC的框架简单搭建以及工作原理实例