0

I want to clear that I am a noob at linux

Hello There Gods Of Tech!

I wanted to install PyStemmer On WSL2 (LINUX) But I run into this error.

    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.

So some history. First it told "No Module Named Cython" and that was easy enough by doing python3 -m pip install cython And Thats All!

( Pip is not on 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. message while installing

I dont know what is going on , so please help!

Some tutorial told me to do it on Linux , and I don't wanna install a whole linux distro. Someone in the comments said WSL2 works for him

Thank You!

2fast4u00
  • 1
  • 1
  • https://stackoverflow.com/search?q=%5Bpip%5D+unable+to+execute+%27x86_64-linux-gnu-gcc%27%3A+No+such+file+or+directory – phd Nov 07 '20 at 13:32
  • The error is "*unable to execute 'x86_64-linux-gnu-gcc': No such file or directory*" so you need to install compiler `gcc` and perhaps other development tools, libraries and include files. – phd Nov 07 '20 at 13:33

0 Answers0