実現したいこと
「pip install neologdn」 で neologdn を入れたい
やったこと
初めに「pip install neologdn」を入力したところ、「Failed building wheel for neologdn」となり失敗しました。
その後他のサイトを参照に
「sudo apt-get install build-essential libssl-dev libffi-dev python-dev」
をいれ、その後もう一度「pip install neologdn」を行いました。
その結果下の表示がされ、インストールができませんでした。
更に
「sudo apt-get update」
「pip install --upgrade setuptools」
を試してみたのですが、変化はありませんでした。
また「pip install nltk」といった他のライブラリは通常どおりインストールができました。
どうすれば解決できるのでしょうか?よろしければご教示お願いいたします。
Ubuntu version : Ubuntu 16.04.2 LTS
python用の仮想環境のvirtualenv上で実行しています。
ubuntu
1Failed building wheel for neologdn 2 Running setup.py clean for neologdn 3Failed to build neologdn 4Installing collected packages: neologdn 5 Running setup.py install for neologdn ... error 6 Complete output from command /home/name/virtual/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-zlqy_o7q/neologdn/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-c076zv2g/install-record.txt --single-version-externally-managed --compile --install-headers /home/name/virtual/include/site/python3.5/neologdn: 7 running install 8 running build 9 running build_ext 10 building 'neologdn' extension 11 creating build 12 creating build/temp.linux-x86_64-3.5 13 x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -I/home/name/virtual/include/python3.5m -c neologdn.cpp -o build/temp.linux-x86_64-3.5/neologdn.o -std=c++11 14 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ 15 neologdn.cpp:4:20: fatal error: Python.h: No such file or directory 16 compilation terminated. 17 error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 18 19 ---------------------------------------- 20Command "/home/name/virtual/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-zlqy_o7q/neologdn/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-c076zv2g/install-record.txt --single-version-externally-managed --compile --install-headers /home/name/virtual/include/site/python3.5/neologdn" failed with error code 1 in /tmp/pip-install-zlqy_o7q/neologdn/
回答2件
あなたの回答
tips
プレビュー