前提・実現したいこと
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/ツールのバージョンなど)
ここにより詳細な情報を記載してください。
あなたの回答
tips
プレビュー