python - pip 或 pip3 installrequirements.txt 的问题我应该做什么来修复此错误?

标签 python linux pip setup.py kali-linux

运行任一命令行时遇到以下错误;

# Using pip
pip install requirements.txt
# Using pip3
pip3 install requirements.txt

ERROR: Command errored out with exit status 1: command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-evkbiocv/poster/setup.py'"'"'; file='"'"'/tmp/pip-install-evkbiocv/poster/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-evkbiocv/poster/pip-egg-info
cwd: /tmp/pip-install-evkbiocv/poster/
Complete output (10 lines):
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-install-evkbiocv/poster/setup.py", line 2, in
import poster
File "/tmp/pip-install-evkbiocv/poster/poster/init.py", line 29, in
import poster.streaminghttp
File "/tmp/pip-install-evkbiocv/poster/poster/streaminghttp.py", line 61
print "send:", repr(value)
^
SyntaxError: invalid syntax
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.`

我做错了什么以及如何解决它?

最佳答案

poster — 最新版本于 2011 年发布。显然该包是针对 Python 2 的,已被废弃。

对于 HTTP 使用 requests .

关于python - pip 或 pip3 installrequirements.txt 的问题我应该做什么来修复此错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60460813/

相关文章:

python - 如何比较 Pandas 数据框列中可用的十进制数?

未调用 Python 父类(super class) __init__ 方法

Python 3 静态成员

python - 如何在 Python 中的 if 语句内运行函数

java - 在 -XX :OnOutOfMemoryError using shell script gives: Unrecognized option: -9 上重新启动进程

Linux Expect SFTP + 放置文件

python - python 中的实际导入名称列表

linux - 纪元时间/时间戳 wireshark vs perf trace

tensorflow - 如果所需的setuptools版本早于默认版本,如何安装Keras?

python - "pip install unroll": "python setup.py egg_info" failed with error code 1