python MARKER_EXPR = originalTextFor(MARKER_EXPR())("marker") TypeError: __call__() takes exactly 2
2017-04-27 15:57
1196 查看
在安装cffi模块时,报了一下错误:
[root@localhost blog]# pip install cffi
Traceback (most recent call last):
File "/usr/bin/pip", line 5, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 72, in <module>
import packaging.requirements
File "/usr/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)
尝试升级pip:
python -m pip install --upgrade --force pip
发现还是不行
后面对setuptool进行升级:
pip install setuptools==33.1.1
再重新安装cffi就可以了
[root@localhost blog]# pip install cffi
Traceback (most recent call last):
File "/usr/bin/pip", line 5, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 72, in <module>
import packaging.requirements
File "/usr/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)
尝试升级pip:
python -m pip install --upgrade --force pip
发现还是不行
后面对setuptool进行升级:
pip install setuptools==33.1.1
再重新安装cffi就可以了
相关文章推荐
- import redis MARKER_EXPR = originalTextFor(MARKER_EXPR())("marker")
- MARKER_EXPR = originalTextFor(MARKER_EXPR())("marker") TypeError解决方法
- python安装pbkdf2 遇到错误TypeError: __call__() takes exactly 2 arguments (1 given)
- python pip install 报错TypeError: unsupported operand type(s) for -=: 'Retry' and 'int' Command "python setup.py egg_info" failed with error code 1 in
- python安装某模块时出现 TypeError: __call__() takes exactly
- 解决python中TypeError: not enough arguments for format stringj
- Python: TypeError: XXX() takes exactly 1 argument (2 given)
- java Error:"The method xxx is undefind for the type of xxx"
- [Python][转]Exception AttributeError: "'NoneType' object has no attribute
- Python初学者错误:TypeError: unsupported operand type(s) for +: 'int' and 'str'
- PHP中header('content-type:text/html;charset="utf-8')和error_reporting()的作用
- JsBridge "Uncaught TypeError: Cannot call method 'callHandler' of undefined", source
- python TypeError: unsupported operand type(s) for +: 'int' and 'str' [closed]
- 解决python中TypeError: not enough arguments for format string
- SQL Server error "Xml data type is not supported in distributed queries" and workaround for it
- LinkageError之loader (instance of xxx) previously initiated loading for a different type with name "lib/MyData"
- Domain=com.alamofire.error.serialization.response Code=-1016 "Request failed: unacceptable content-type: text/html"
- /hue/hue/Makefile.vars:42: *** "Error: must have python development packages for 2.6 or 2.7. Could n
- python "".join() 出错TypeError: sequence item 0: expected string
- import Tkinter error, no module named tkinter: "Python may not be configured for Tk”