Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/ant/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ubuntu 从requirement txt安装程序包失败_Ubuntu - Fatal编程技术网

Ubuntu 从requirement txt安装程序包失败

Ubuntu 从requirement txt安装程序包失败,ubuntu,Ubuntu,我在中阅读了rnn教程,并按照安装过程设置了环境。但是我犯了一个错误,对此我一无所知。我在Ubuntu 14的virtualenv中设置了它。我已经搜索了类似的问题并使用了他们的解决方案,但它不起作用 我尝试过的方法是: 1.更新gcc 2.重新安装python开发人员 3.安装libxxx(很抱歉名称不准确,但这些文件太乱,我记不起来了) 注:1。我不是ubuntu的专家,所以如果你能帮助我,希望你能提供一个详细的解释或解决方案,如果你是可用的。 2.我试图重新安装ubuntu,但它不起作用

我在中阅读了rnn教程,并按照安装过程设置了环境。但是我犯了一个错误,对此我一无所知。我在Ubuntu 14的
virtualenv
中设置了它。我已经搜索了类似的问题并使用了他们的解决方案,但它不起作用

我尝试过的方法是: 1.更新
gcc
2.重新安装python开发人员 3.安装
libxxx
(很抱歉名称不准确,但这些文件太乱,我记不起来了)

注:1。我不是ubuntu的专家,所以如果你能帮助我,希望你能提供一个详细的解释或解决方案,如果你是可用的。 2.我试图重新安装ubuntu,但它不起作用

creating build/temp.linux-x86_64-2.7/Modules/2.x

x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DHAVE_RL_CALLBACK -DHAVE_RL_CATCH_SIGNAL -DHAVE_RL_COMPLETION_APPEND_CHARACTER -DHAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK -DHAVE_RL_COMPLETION_MATCHES -DHAVE_RL_COMPLETION_SUPPRESS_APPEND -DHAVE_RL_PRE_INPUT_HOOK -I. -I/usr/include/python2.7 -c Modules/2.x/readline.c -o build/temp.linux-x86_64-2.7/Modules/2.x/readline.o

In file included from Modules/2.x/readline.c:31:0:

./readline/readline.h:385:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]

 extern int rl_message ();

 ^

x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/Modules/2.x/readline.o readline/libreadline.a readline/libhistory.a -lncurses -o build/lib.linux-x86_64-2.7/gnureadline.so

/usr/bin/ld: cannot find -lncurses

collect2: error: ld returned 1 exit status

error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

----------------------------------------
Cleaning up...
Command /home/shuyu-lyu/venv/bin/python -c "import setuptools, tokenize;__file__='/home/shuyu-lyu/venv/build/gnureadline/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-xF2y3k-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/shuyu-lyu/venv/include/site/python2.7 failed with error code 1 in /home/shuyu-lyu/venv/build/gnureadline
Traceback (most recent call last):
  File "/home/shuyu-lyu/venv/bin/pip", line 11, in <module>
    sys.exit(main())
  File "/home/shuyu-lyu/venv/local/lib/python2.7/site-packages/pip/__init__.py", line 185, in main
    return command.main(cmd_args)
  File "/home/shuyu-lyu/venv/local/lib/python2.7/site-packages/pip/basecommand.py", line 161, in main
    text = '\n'.join(complete_log)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 66: ordinal not in range(128)
创建build/temp.linux-x86_64-2.7/Modules/2.x
x86_64-linux-gnu-gcc-pthread-fno严格别名-DNDEBUG-g-fwrapv-O2-Wall-Wstrict原型-fPIC-DHAVE_RL_回调-DHAVE_RL_CATCH_信号-DHAVE_RL_COMPLETION_追加字符-DHAVE_RL_COMPLETION_显示_匹配_HOOK-DHAVE_RL_完成_匹配-DHAVE_完成_完成_抑制_追加-DHAVE_RL_预输入_HOOK-I/n2-c Modules/2.x/readline.c-o build/temp.linux-x86_64-2.7/Modules/2.x/readline.o
在Modules/2.x/readline.c:31:0中包含的文件中:
./readline/readline.h:385:1:警告:函数声明不是原型[-Wstrict-prototype]
外部内部rl_消息();
^
x86_64-linux-gnu-gcc-pthread-shared-Wl,-O1-Wl,-b符号函数-Wl,-b符号函数-Wl,-z,relro-fno严格别名-DNDEBUG-g-fwrapv-O2-Wall-Wstrict原型-D_FORTIFY_SOURCE=2-g-fstack protector-param=ssp buffer size=4-Wformat-Werror=format security build/temp.linux-x86_64-2.7/Modules/2.x/readline.o readline/libreadline.a readline/libhistory.a-lncurses-o-build/lib/lib.linux-x86_64-2.7/gnureadline.so
/usr/bin/ld:找不到-lncurses
collect2:错误:ld返回了1个退出状态
错误:命令“x86_64-linux-gnu-gcc”失败,退出状态为1
----------------------------------------
清理。。。
Command/home/shuyu-lyu/venv/bin/python-c“导入setuptools,tokenize;_文件uuu=”/home/shuyu-lyu/venv/build/gnureadline/setup.py';exec(编译(getattr(tokenize,'open',open open)(uu文件uu).read().replace('\r\n','n'),u文件uu,'exec'))”安装--record/tmp/pip-xF2y3k-record/install-record.txt--外部管理的单一版本--编译--install headers/home/shuyu-lyu/venv/include/site/python2.7失败,错误代码为/home/shuyu-lyu/venv/build/gnureadline中的1
回溯(最近一次呼叫最后一次):
文件“/home/shuyu-lyu/venv/bin/pip”,第11行,in
sys.exit(main())
文件“/home/shuyu-lyu/venv/local/lib/python2.7/site-packages/pip/_-init__.py”,主文件第185行
return command.main(cmd_args)
文件“/home/shuyu-lyu/venv/local/lib/python2.7/site-packages/pip/basecommand.py”,第161行,在main中
text='\n'.连接(完成日志)
UnicodeDecodeError:“ascii”编解码器无法解码位置66处的字节0xe2:序号不在范围内(128)

看起来好像没有安装ncurses库。如果你在Ubuntu上,你应该首先用

sudo apt-get install libncurses5-dev libncursesw5-dev

看起来没有安装ncurses库。如果你在Ubuntu上,你应该首先用

sudo apt-get install libncurses5-dev libncursesw5-dev