Ошибка при установке PyStemmer на WSL2 (Ubuntu)

Я хочу пояснить, что я новичок в Linux

Привет, боги техники!

Я хотел установить PyStemmer на WSL2 (LINUX), но столкнулся с этой ошибкой.

    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-xdkteqvb/pystemmer/setup.py'"'"'; __file__='"'"'/tmp/pip-install-xdkteqvb/pystemmer/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-7ar3x6pr/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/palash/.local/include/python3.8/PyStemmer
         cwd: /tmp/pip-install-xdkteqvb/pystemmer/
    Complete output (15 lines):
    running install
    running build
    running build_ext
    skipping 'src/Stemmer.c' Cython extension (up-to-date)
    building 'Stemmer' extension
    creating build
    creating build/temp.linux-x86_64-3.8
    creating build/temp.linux-x86_64-3.8/src
    creating build/temp.linux-x86_64-3.8/libstemmer_c
    creating build/temp.linux-x86_64-3.8/libstemmer_c/src_c
    creating build/temp.linux-x86_64-3.8/libstemmer_c/runtime
    creating build/temp.linux-x86_64-3.8/libstemmer_c/libstemmer
    x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Isrc -Ilibstemmer_c/include -I/usr/include/python3.8 -c src/Stemmer.c -o build/temp.linux-x86_64-3.8/src/Stemmer.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
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-xdkteqvb/pystemmer/setup.py'"'"'; __file__='"'"'/tmp/pip-install-xdkteqvb/pystemmer/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-7ar3x6pr/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/palash/.local/include/python3.8/PyStemmer Check the logs for full command output.

Итак немного истории. Сначала он сообщил No Module Named Cython, и это было достаточно просто сделать, выполнив python3 -m pip install cython И все!

( Pip не находится в сообщении PATH WARNING: The scripts pip, pip3 and pip3.8 are installed in '/home/palash/.local/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. при установке

Я не знаю, что происходит, поэтому, пожалуйста, помогите!

В одном учебнике мне сказали сделать это в Linux, а я не хочу устанавливать целый дистрибутив Linux. Кто-то в комментариях сказал, что WSL2 у него работает

Спасибо!


person 2fast4u00    schedule 07.11.2020    source источник
comment
stackoverflow.com/   -  person phd    schedule 07.11.2020
comment
Ошибка невозможно выполнить 'x86_64-linux-gnu-gcc': нет такого файла или каталога, поэтому вам необходимо установить компилятор gcc и, возможно, другие инструменты разработки, библиотеки и включаемые файлы.   -  person phd    schedule 07.11.2020