Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

pip install error #43

Open
zyuh opened this issue Oct 9, 2022 · 0 comments
Open

pip install error #43

zyuh opened this issue Oct 9, 2022 · 0 comments

Comments

@zyuh
Copy link

zyuh commented Oct 9, 2022

Building wheels for collected packages: tsne
Building wheel for tsne (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for tsne (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [82 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-38
creating build/lib.linux-x86_64-cpython-38/tsne
copying tsne/init.py -> build/lib.linux-x86_64-cpython-38/tsne
copying tsne/_bh_sne.py -> build/lib.linux-x86_64-cpython-38/tsne
copying tsne/_generated_version.py -> build/lib.linux-x86_64-cpython-38/tsne
creating build/lib.linux-x86_64-cpython-38/tsne/tests
copying tsne/tests/init.py -> build/lib.linux-x86_64-cpython-38/tsne/tests
copying tsne/tests/test_import.py -> build/lib.linux-x86_64-cpython-38/tsne/tests
copying tsne/tests/test_iris.py -> build/lib.linux-x86_64-cpython-38/tsne/tests
copying tsne/tests/test_seed.py -> build/lib.linux-x86_64-cpython-38/tsne/tests
running egg_info
writing tsne.egg-info/PKG-INFO
writing dependency_links to tsne.egg-info/dependency_links.txt
writing requirements to tsne.egg-info/requires.txt
writing top-level names to tsne.egg-info/top_level.txt
listing git files failed - pretending there aren't any
reading manifest file 'tsne.egg-info/SOURCES.txt'
adding license file 'LICENSE.txt'
writing manifest file 'tsne.egg-info/SOURCES.txt'
copying tsne/bh_sne.pyx -> build/lib.linux-x86_64-cpython-38/tsne
creating build/lib.linux-x86_64-cpython-38/tsne/includes
creating build/lib.linux-x86_64-cpython-38/tsne/includes/bh_tsne
copying tsne/includes/bh_tsne/LICENSE -> build/lib.linux-x86_64-cpython-38/tsne/includes/bh_tsne
copying tsne/includes/bh_tsne/Readme.txt -> build/lib.linux-x86_64-cpython-38/tsne/includes/bh_tsne
copying tsne/includes/bh_tsne/compile_linux -> build/lib.linux-x86_64-cpython-38/tsne/includes/bh_tsne
copying tsne/includes/bh_tsne/compile_mac -> build/lib.linux-x86_64-cpython-38/tsne/includes/bh_tsne
copying tsne/includes/bh_tsne/fast_tsne.m -> build/lib.linux-x86_64-cpython-38/tsne/includes/bh_tsne
copying tsne/includes/bh_tsne/quadtree.cpp -> build/lib.linux-x86_64-cpython-38/tsne/includes/bh_tsne
copying tsne/includes/bh_tsne/quadtree.h -> build/lib.linux-x86_64-cpython-38/tsne/includes/bh_tsne
copying tsne/includes/bh_tsne/tsne.cpp -> build/lib.linux-x86_64-cpython-38/tsne/includes/bh_tsne
copying tsne/includes/bh_tsne/tsne.h -> build/lib.linux-x86_64-cpython-38/tsne/includes/bh_tsne
copying tsne/includes/bh_tsne/vptree.h -> build/lib.linux-x86_64-cpython-38/tsne/includes/bh_tsne
running build_ext
Running custom build_ext
cythoning tsne/bh_sne.pyx to tsne/bh_sne.cpp
building 'bh_sne' extension
creating build/temp.linux-x86_64-cpython-38
creating build/temp.linux-x86_64-cpython-38/tsne
creating build/temp.linux-x86_64-cpython-38/tsne/includes
creating build/temp.linux-x86_64-cpython-38/tsne/includes/bh_tsne
gcc -pthread -B /mnt/cache/zhouyuhang/opt/miniconda3/envs/fscil/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include -Itsne/includes/bh_tsne/ -I/tmp/pip-build-env-ck34i7ju/overlay/lib/python3.8/site-packages/numpy/core/include -I/mnt/cache/zhouyuhang/opt/miniconda3/envs/fscil/include/python3.8 -c tsne/bh_sne.cpp -o build/temp.linux-x86_64-cpython-38/tsne/bh_sne.o -msse2 -O3 -fPIC -w
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
gcc -pthread -B /mnt/cache/zhouyuhang/opt/miniconda3/envs/fscil/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include -Itsne/includes/bh_tsne/ -I/tmp/pip-build-env-ck34i7ju/overlay/lib/python3.8/site-packages/numpy/core/include -I/mnt/cache/zhouyuhang/opt/miniconda3/envs/fscil/include/python3.8 -c tsne/includes/bh_tsne/quadtree.cpp -o build/temp.linux-x86_64-cpython-38/tsne/includes/bh_tsne/quadtree.o -msse2 -O3 -fPIC -w
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
gcc -pthread -B /mnt/cache/zhouyuhang/opt/miniconda3/envs/fscil/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include -Itsne/includes/bh_tsne/ -I/tmp/pip-build-env-ck34i7ju/overlay/lib/python3.8/site-packages/numpy/core/include -I/mnt/cache/zhouyuhang/opt/miniconda3/envs/fscil/include/python3.8 -c tsne/includes/bh_tsne/tsne.cpp -o build/temp.linux-x86_64-cpython-38/tsne/includes/bh_tsne/tsne.o -msse2 -O3 -fPIC -w
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
g++ -pthread -B /mnt/cache/zhouyuhang/opt/miniconda3/envs/fscil/compiler_compat -Wl,--sysroot=/ -pthread -shared -B /mnt/cache/zhouyuhang/opt/miniconda3/envs/fscil/compiler_compat -L/mnt/cache/zhouyuhang/opt/miniconda3/envs/fscil/lib -Wl,-rpath=/mnt/cache/zhouyuhang/opt/miniconda3/envs/fscil/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-cpython-38/tsne/bh_sne.o build/temp.linux-x86_64-cpython-38/tsne/includes/bh_tsne/quadtree.o build/temp.linux-x86_64-cpython-38/tsne/includes/bh_tsne/tsne.o -L/usr/local/lib -o build/lib.linux-x86_64-cpython-38/bh_sne.cpython-38-x86_64-linux-gnu.so -lcblas
/mnt/cache/zhouyuhang/opt/miniconda3/envs/fscil/compiler_compat/ld: cannot find -lcblas
collect2: error: ld returned 1 exit status
/tmp/pip-build-env-ck34i7ju/overlay/lib/python3.8/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning: Installing 'tsne.includes.bh_tsne' as data is deprecated, please list it in packages.
!!

      ############################
      # Package would be ignored #
      ############################
      Python recognizes 'tsne.includes.bh_tsne' as an importable package,
      but it is not listed in the `packages` configuration of setuptools.
  
      'tsne.includes.bh_tsne' has been automatically added to the distribution only
      because it may contain data files, but this behavior is likely to change
      in future versions of setuptools (and therefore is considered deprecated).
  
      Please make sure that 'tsne.includes.bh_tsne' is included as a package by using
      the `packages` configuration field or the proper discovery methods
      (for example by using `find_namespace_packages(...)`/`find_namespace:`
      instead of `find_packages(...)`/`find:`).
  
      You can read more about "package discovery" and "data files" on setuptools
      documentation page.
  
  
  !!
  
    check.warn(importable)
  /tmp/pip-build-env-ck34i7ju/overlay/lib/python3.8/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /tmp/pip-install-dj7ebrgz/tsne_82536279325b40faad04bf8a3c5a67f7/tsne/bh_sne.pyx
    tree = Parsing.p_module(s, pxd, full_module_name)
  error: command '/usr/bin/g++' 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 tsne
Failed to build tsne
ERROR: Could not build wheels for tsne, which is required to install pyproject.toml-based projects

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

No branches or pull requests

1 participant