質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Python

Pythonは、コードの読みやすさが特徴的なプログラミング言語の1つです。 強い型付け、動的型付けに対応しており、後方互換性がないバージョン2系とバージョン3系が使用されています。 商用製品の開発にも無料で使用でき、OSだけでなく仮想環境にも対応。Unicodeによる文字列操作をサポートしているため、日本語処理も標準で可能です。

Q&A

0回答

363閲覧

WSLの仮想環境上でCLTKをインストール

junjun7613

総合スコア6

Python

Pythonは、コードの読みやすさが特徴的なプログラミング言語の1つです。 強い型付け、動的型付けに対応しており、後方互換性がないバージョン2系とバージョン3系が使用されています。 商用製品の開発にも無料で使用でき、OSだけでなく仮想環境にも対応。Unicodeによる文字列操作をサポートしているため、日本語処理も標準で可能です。

0グッド

0クリップ

投稿2018/03/28 15:48

前提・実現したいこと

WSL上の仮想環境(venv)でCLTK(classical language tool kits)をインストールしようとして、
以下のように入力しました。
sudo apt update
sudo apt install git
sudo apt-get install python-setuptools
sudo apt install python-virtualenv
virtualenv -p python3 ~/venv
source ~/venv/bin/activate
pip3 install cltk

しかし、以下のようなエラーメッセージが表示され、インストールが成功しません。

発生している問題・エラーメッセージ

エラーメッセージ Collecting cltk Requirement already satisfied: pyuca in ./venv/lib/python3.5/site-packages (from cltk) Collecting regex (from cltk) Using cached regex-2018.02.21.tar.gz Requirement already satisfied: nltk in ./venv/lib/python3.5/site-packages (from cltk) Requirement already satisfied: whoosh in ./venv/lib/python3.5/site-packages (from cltk) Requirement already satisfied: python-crfsuite in ./venv/lib/python3.5/site-packages (from cltk) Requirement already satisfied: gitpython in ./venv/lib/python3.5/site-packages (from cltk) Requirement already satisfied: pyyaml in ./venv/lib/python3.5/site-packages (from cltk) Requirement already satisfied: six in ./venv/lib/python3.5/site-packages (from nltk->cltk) Requirement already satisfied: gitdb2>=2.0.0 in ./venv/lib/python3.5/site-packages (from gitpython->cltk) Requirement already satisfied: smmap2>=2.0.0 in ./venv/lib/python3.5/site-packages (from gitdb2>=2.0.0->gitpython->cltk) Building wheels for collected packages: regex Running setup.py bdist_wheel for regex ... error Complete output from command /home/junjun7613/venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-5cuq5_yv/regex/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/tmph59x3a7vpip-wheel- --python-tag cp35: /home/junjun7613/venv/lib/python3.5/site-packages/setuptools/dist.py:397: UserWarning: Normalizing '2018.02.21' to '2018.2.21' normalized_version, running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-3.5 copying regex_3/regex.py -> build/lib.linux-x86_64-3.5 copying regex_3/_regex_core.py -> build/lib.linux-x86_64-3.5 copying regex_3/test_regex.py -> build/lib.linux-x86_64-3.5 running build_ext building '_regex' extension creating build/temp.linux-x86_64-3.5 creating build/temp.linux-x86_64-3.5/regex_3 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/junjun7613/venv/include/python3.5m -c regex_3/_regex.c -o build/temp.linux-x86_64-3.5/regex_3/_regex.o unable to execute 'x86_64-linux-gnu-gcc': No such file or directory error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 ---------------------------------------- Failed building wheel for regex Running setup.py clean for regex Failed to build regex Installing collected packages: regex, cltk Running setup.py install for regex ... error Complete output from command /home/junjun7613/venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-5cuq5_yv/regex/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-kg20k791-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/junjun7613/venv/include/site/python3.5/regex: /home/junjun7613/venv/lib/python3.5/site-packages/setuptools/dist.py:397: UserWarning: Normalizing '2018.02.21' to '2018.2.21' normalized_version, running install running build running build_py creating build creating build/lib.linux-x86_64-3.5 copying regex_3/regex.py -> build/lib.linux-x86_64-3.5 copying regex_3/_regex_core.py -> build/lib.linux-x86_64-3.5 copying regex_3/test_regex.py -> build/lib.linux-x86_64-3.5 running build_ext building '_regex' extension creating build/temp.linux-x86_64-3.5 creating build/temp.linux-x86_64-3.5/regex_3 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/junjun7613/venv/include/python3.5m -c regex_3/_regex.c -o build/temp.linux-x86_64-3.5/regex_3/_regex.o unable to execute 'x86_64-linux-gnu-gcc': No such file or directory error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 ---------------------------------------- Command "/home/junjun7613/venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-5cuq5_yv/regex/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-kg20k791-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/junjun7613/venv/include/site/python3.5/regex" failed with error code 1 in /tmp/pip-build-5cuq5_yv/regex/ ### 該当のソースコード ```ここに言語名を入力 ソースコード

試したこと

ここに問題に対して試したことを記載してください。

補足情報(FW/ツールのバージョンなど)

ここにより詳細な情報を記載してください。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問