# 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
相关文章
- 04-26TensorFlow-GPU+cuda8+cudnn6+anaconda安装遇到的版本错误
- 04-26python中的setuptools错误
- 04-26python学习中遇到的错误及解决办法
- 04-26安装.NET Core遇到的错误
- 04-26python – Pip Requirements.txt –global-option导致其他软件包的安装错误. “选项未被识别”
- 04-26Python 3.6.4 / win10 使用pip安装keras时遇到依赖的PyYAML安装出错
- 04-26python2.7安装matplotlib遇到的问题及解决方法
- 04-26python工程遇到的错误
- 04-26paddle的安装,遇到错误Could not fetch URL https://mirror.baidu.com/pypi/simple/paddlepaddle/
- 04-26python安装pyhs2遇到的问题