Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linux installation error #128

Open
kakaisi opened this issue Apr 7, 2024 · 1 comment
Open

linux installation error #128

kakaisi opened this issue Apr 7, 2024 · 1 comment

Comments

@kakaisi
Copy link

kakaisi commented Apr 7, 2024

Hello, author. Can you help me see how to solve the problems encountered in installing pycistopic?

Building wheel for annoy (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [27 lines of output]
/home/fang/4t/conda/envs/pycistopic/lib/python3.11/site-packages/setuptools/init.py:80: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!

          ********************************************************************************
          Requirements should be satisfied by a PEP 517 installer.
          If you are using pip, you can try `pip install --use-pep517`.
          ********************************************************************************
  
  !!
    dist.fetch_build_eggs(dist.setup_requires)
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-cpython-311
  creating build/lib.linux-x86_64-cpython-311/annoy
  copying annoy/__init__.py -> build/lib.linux-x86_64-cpython-311/annoy
  copying annoy/__init__.pyi -> build/lib.linux-x86_64-cpython-311/annoy
  copying annoy/py.typed -> build/lib.linux-x86_64-cpython-311/annoy
  running build_ext
  building 'annoy.annoylib' extension
  creating build/temp.linux-x86_64-cpython-311
  creating build/temp.linux-x86_64-cpython-311/src
  gcc -pthread -B /home/fang/4t/conda/envs/pycistopic/compiler_compat -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/fang/4t/conda/envs/pycistopic/include -fPIC -O2 -isystem /home/fang/4t/conda/envs/pycistopic/include -fPIC -I/home/fang/4t/conda/envs/pycistopic/include/python3.11 -c src/annoymodule.cc -o build/temp.linux-x86_64-cpython-311/src/annoymodule.o -D_CRT_SECURE_NO_WARNINGS -fpermissive -march=native -O3 -ffast-math -fno-associative-math -DANNOYLIB_MULTITHREADED_BUILD -std=c++14
  gcc: fatal error: cannot execute ‘cc1plus’: execvp: No such file or directory
  compilation terminated.
  error: command '/usr/bin/gcc' failed with exit code 1
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for annoy
Running setup.py clean for annoy
Successfully built pycisTopic
Failed to build annoy
ERROR: Could not build wheels for annoy, which is required to install pyproject.toml-based projects

@ghuls
Copy link
Member

ghuls commented Apr 8, 2024

You need to have C++ compiler installed: e.g. g++.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants