pip安装line-profiler出错,最开始是读条的,但是下载到一半报错,重复试也是这样子

慕飒潇湘 2019-12-13 04:10:59
(python3.7.4) [root@s204 pkgs]# pip install line-profiler
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting line-profiler
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/14/fc/ecf4e238bb601ff829068e5a72cd1bd67b0ee0ae379db172eb6a0779c6b6/line_profiler-2.1.2.tar.gz
Requirement already satisfied: IPython>=0.13 in /root/anaconda3/envs/python3.7.4/lib/python3.7/site-packages (from line-profiler) (7.10.1)
Requirement already satisfied: pickleshare in /root/anaconda3/envs/python3.7.4/lib/python3.7/site-packages (from IPython>=0.13->line-profiler) (0.7.5)
Requirement already satisfied: decorator in /root/anaconda3/envs/python3.7.4/lib/python3.7/site-packages (from IPython>=0.13->line-profiler) (4.4.1)
Requirement already satisfied: pygments in /root/anaconda3/envs/python3.7.4/lib/python3.7/site-packages (from IPython>=0.13->line-profiler) (2.5.2)
Requirement already satisfied: jedi>=0.10 in /root/anaconda3/envs/python3.7.4/lib/python3.7/site-packages (from IPython>=0.13->line-profiler) (0.15.1)
Requirement already satisfied: pexpect; sys_platform != "win32" in /root/anaconda3/envs/python3.7.4/lib/python3.7/site-packages (from IPython>=0.13->line-profiler) (4.7.0)
Requirement already satisfied: traitlets>=4.2 in /root/anaconda3/envs/python3.7.4/lib/python3.7/site-packages (from IPython>=0.13->line-profiler) (4.3.3)
Requirement already satisfied: prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0 in /root/anaconda3/envs/python3.7.4/lib/python3.7/site-packages (from IPython>=0.13->line-profiler) (3.0.2)
Requirement already satisfied: setuptools>=18.5 in /root/anaconda3/envs/python3.7.4/lib/python3.7/site-packages (from IPython>=0.13->line-profiler) (42.0.1.post20191125)
Requirement already satisfied: backcall in /root/anaconda3/envs/python3.7.4/lib/python3.7/site-packages (from IPython>=0.13->line-profiler) (0.1.0)
Requirement already satisfied: parso>=0.5.0 in /root/anaconda3/envs/python3.7.4/lib/python3.7/site-packages (from jedi>=0.10->IPython>=0.13->line-profiler) (0.5.1)
Requirement already satisfied: ptyprocess>=0.5 in /root/anaconda3/envs/python3.7.4/lib/python3.7/site-packages (from pexpect; sys_platform != "win32"->IPython>=0.13->line-profiler) (0.6.0)
Requirement already satisfied: ipython-genutils in /root/anaconda3/envs/python3.7.4/lib/python3.7/site-packages (from traitlets>=4.2->IPython>=0.13->line-profiler) (0.2.0)
Requirement already satisfied: six in /root/anaconda3/envs/python3.7.4/lib/python3.7/site-packages (from traitlets>=4.2->IPython>=0.13->line-profiler) (1.13.0)
Requirement already satisfied: wcwidth in /root/anaconda3/envs/python3.7.4/lib/python3.7/site-packages (from prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0->IPython>=0.13->line-profiler) (0.1.7)
Building wheels for collected packages: line-profiler
Building wheel for line-profiler (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /root/anaconda3/envs/python3.7.4/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-nzabfix9/line-profiler/setup.py'"'"'; __file__='"'"'/tmp/pip-install-nzabfix9/line-profiler/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-02kbzxwz --python-tag cp37
cwd: /tmp/pip-install-nzabfix9/line-profiler/
Complete output (66 lines):
Could not import Cython. Using the available pre-generated C file.
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.7
copying line_profiler.py -> build/lib.linux-x86_64-3.7
copying kernprof.py -> build/lib.linux-x86_64-3.7
copying line_profiler_py35.py -> build/lib.linux-x86_64-3.7
running build_ext
building '_line_profiler' extension
creating build/temp.linux-x86_64-3.7
gcc -pthread -B /root/anaconda3/envs/python3.7.4/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/root/anaconda3/envs/python3.7.4/include/python3.7m -c _line_profiler.c -o build/temp.linux-x86_64-3.7/_line_profiler.o
In file included from _line_profiler.c:476:0:
unset_trace.h:1:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
void unset_trace();
^
_line_profiler.c: In function ‘__Pyx__ExceptionSave’:
_line_profiler.c:7890:19: error: ‘PyThreadState’ has no member named ‘exc_type’
*type = tstate->exc_type;
^
_line_profiler.c:7891:20: error: ‘PyThreadState’ has no member named ‘exc_value’
*value = tstate->exc_value;
^
_line_profiler.c:7892:17: error: ‘PyThreadState’ has no member named ‘exc_traceback’
*tb = tstate->exc_traceback;
^
_line_profiler.c: In function ‘__Pyx__ExceptionReset’:
_line_profiler.c:7899:22: error: ‘PyThreadState’ has no member named ‘exc_type’
tmp_type = tstate->exc_type;
^
_line_profiler.c:7900:23: error: ‘PyThreadState’ has no member named ‘exc_value’
tmp_value = tstate->exc_value;
^
_line_profiler.c:7901:20: error: ‘PyThreadState’ has no member named ‘exc_traceback’
tmp_tb = tstate->exc_traceback;
^
_line_profiler.c:7902:11: error: ‘PyThreadState’ has no member named ‘exc_type’
tstate->exc_type = type;
^
_line_profiler.c:7903:11: error: ‘PyThreadState’ has no member named ‘exc_value’
tstate->exc_value = value;
^
_line_profiler.c:7904:11: error: ‘PyThreadState’ has no member named ‘exc_traceback’
tstate->exc_traceback = tb;
^
_line_profiler.c: In function ‘__Pyx__GetException’:
_line_profiler.c:7959:22: error: ‘PyThreadState’ has no member named ‘exc_type’
tmp_type = tstate->exc_type;
^
_line_profiler.c:7960:23: error: ‘PyThreadState’ has no member named ‘exc_value’
tmp_value = tstate->exc_value;
^
_line_profiler.c:7961:20: error: ‘PyThreadState’ has no member named ‘exc_traceback’
tmp_tb = tstate->exc_traceback;
^
_line_profiler.c:7962:11: error: ‘PyThreadState’ has no member named ‘exc_type’
tstate->exc_type = local_type;
^
_line_profiler.c:7963:11: error: ‘PyThreadState’ has no member named ‘exc_value’
tstate->exc_value = local_value;
^
_line_profiler.c:7964:11: error: ‘PyThreadState’ has no member named ‘exc_traceback’
tstate->exc_traceback = local_tb;
^
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for line-profiler
Running setup.py clean for line-profiler
Failed to build line-profiler
Installing collected packages: line-profiler
Running setup.py install for line-profiler ... error
ERROR: Command errored out with exit status 1:
command: /root/anaconda3/envs/python3.7.4/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-nzabfix9/line-profiler/setup.py'"'"'; __file__='"'"'/tmp/pip-install-nzabfix9/line-profiler/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-8u8gvfm7/install-record.txt --single-version-externally-managed --compile
cwd: /tmp/pip-install-nzabfix9/line-profiler/
Complete output (66 lines):
Could not import Cython. Using the available pre-generated C file.
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.7
copying line_profiler.py -> build/lib.linux-x86_64-3.7
copying kernprof.py -> build/lib.linux-x86_64-3.7
copying line_profiler_py35.py -> build/lib.linux-x86_64-3.7
running build_ext
building '_line_profiler' extension
creating build/temp.linux-x86_64-3.7
gcc -pthread -B /root/anaconda3/envs/python3.7.4/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/root/anaconda3/envs/python3.7.4/include/python3.7m -c _line_profiler.c -o build/temp.linux-x86_64-3.7/_line_profiler.o
In file included from _line_profiler.c:476:0:
unset_trace.h:1:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
void unset_trace();
^
_line_profiler.c: In function ‘__Pyx__ExceptionSave’:
_line_profiler.c:7890:19: error: ‘PyThreadState’ has no member named ‘exc_type’
*type = tstate->exc_type;
^
_line_profiler.c:7891:20: error: ‘PyThreadState’ has no member named ‘exc_value’
*value = tstate->exc_value;
^
_line_profiler.c:7892:17: error: ‘PyThreadState’ has no member named ‘exc_traceback’
*tb = tstate->exc_traceback;
^
_line_profiler.c: In function ‘__Pyx__ExceptionReset’:
_line_profiler.c:7899:22: error: ‘PyThreadState’ has no member named ‘exc_type’
tmp_type = tstate->exc_type;
^
_line_profiler.c:7900:23: error: ‘PyThreadState’ has no member named ‘exc_value’
tmp_value = tstate->exc_value;
^
_line_profiler.c:7901:20: error: ‘PyThreadState’ has no member named ‘exc_traceback’
tmp_tb = tstate->exc_traceback;
^
_line_profiler.c:7902:11: error: ‘PyThreadState’ has no member named ‘exc_type’
tstate->exc_type = type;
^
_line_profiler.c:7903:11: error: ‘PyThreadState’ has no member named ‘exc_value’
tstate->exc_value = value;
^
_line_profiler.c:7904:11: error: ‘PyThreadState’ has no member named ‘exc_traceback’
tstate->exc_traceback = tb;
^
_line_profiler.c: In function ‘__Pyx__GetException’:
...全文
224 回复 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

37,744

社区成员

发帖
与我相关
我的任务
社区描述
JavaScript,VBScript,AngleScript,ActionScript,Shell,Perl,Ruby,Lua,Tcl,Scala,MaxScript 等脚本语言交流。
社区管理员
  • 脚本语言(Perl/Python)社区
  • WuKongSecurity@BOB
加入社区
  • 近7日
  • 近30日
  • 至今

试试用AI创作助手写篇文章吧