sahandha / eif

Extended Isolation Forest for Anomaly Detection
Other
448 stars 119 forks source link

Error while installing eif #14

Closed PoradaKev closed 4 years ago

PoradaKev commented 4 years ago

Hi!

Trying to install eif through pip I get the following error:


(base) C:\WINDOWS\system32>pip install eif
Collecting eif
  Using cached https://files.pythonhosted.org/packages/83/b2/d87d869deeb192ab599c899b91a9ad1d3775d04f5b7adcaf7ff6daa54c24/eif-2.0.2.tar.gz
Requirement already satisfied: numpy in c:\users\o.korshun\appdata\local\continuum\anaconda3\lib\site-packages (from eif) (1.16.5)
Requirement already satisfied: cython in c:\users\o.korshun\appdata\local\continuum\anaconda3\lib\site-packages (from eif) (0.29.13)
Building wheels for collected packages: eif
  Building wheel for eif (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'C:\Users\o.korshun\AppData\Local\Continuum\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\O0ADF~1.KOR\\AppData\\Local\\Temp\\pip-install-1adywqes\\eif\\setup.py'"'"'; __file__='"'"'C:\\Users\\O0ADF~1.KOR\\AppData\\Local\\Temp\\pip-install-1adywqes\\eif\\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 'C:\Users\O0ADF~1.KOR\AppData\Local\Temp\pip-wheel-kw_2kpwv' --python-tag cp37
       cwd: C:\Users\O0ADF~1.KOR\AppData\Local\Temp\pip-install-1adywqes\eif\
  Complete output (60 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-3.7
  copying eif_old.py -> build\lib.win-amd64-3.7
  copying version.py -> build\lib.win-amd64-3.7
  running egg_info
  writing eif.egg-info\PKG-INFO
  writing dependency_links to eif.egg-info\dependency_links.txt
  writing requirements to eif.egg-info\requires.txt
  writing top-level names to eif.egg-info\top_level.txt
  reading manifest file 'eif.egg-info\SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  writing manifest file 'eif.egg-info\SOURCES.txt'
  running build_ext
  cythoning _eif.pyx to _eif.cpp
  building 'eif' extension
  creating build\temp.win-amd64-3.7
  creating build\temp.win-amd64-3.7\Release
  C:\Users\o.korshun\AppData\Local\Continuum\anaconda3\Library\mingw-w64\bin\gcc.exe -mdll -O -Wall -DMS_WIN64 -IC:\Users\o.korshun\AppData\Local\Continuum\anaconda3\lib\site-packages\numpy\core\include -IC:\Users\o.korshun\AppData\Local\Continuum\anaconda3\include -IC:\Users\o.korshun\AppData\Local\Continuum\anaconda3\include -c _eif.cpp -o build\temp.win-amd64-3.7\Release\_eif.o -Wcpp
  In file included from C:/Users/o.korshun/AppData/Local/Continuum/anaconda3/Library/mingw-w64/include/c++/5.3.0/random:35:0,
                   from eif.hxx:5,
                   from _eif.cpp:614:
  C:/Users/o.korshun/AppData/Local/Continuum/anaconda3/Library/mingw-w64/include/c++/5.3.0/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
   #error This file requires compiler and library support for the \
    ^
  In file included from C:\Users\o.korshun\AppData\Local\Continuum\anaconda3\lib\site-packages\numpy\core\include/numpy/ndarraytypes.h:1822:0,
                   from C:\Users\o.korshun\AppData\Local\Continuum\anaconda3\lib\site-packages\numpy\core\include/numpy/ndarrayobject.h:12,
                   from C:\Users\o.korshun\AppData\Local\Continuum\anaconda3\lib\site-packages\numpy\core\include/numpy/arrayobject.h:4,
                   from _eif.cpp:612:
  C:\Users\o.korshun\AppData\Local\Continuum\anaconda3\lib\site-packages\numpy\core\include/numpy/npy_1_7_deprecated_api.h:15:77: note: #pragma message: C:\Users\o.korshun\AppData\Local\Continuum\anaconda3\lib\site-packages\numpy\core\include/numpy/npy_1_7_deprecated_api.h(14) : Warning Msg: Using deprecated NumPy API, disable it with #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
                            "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION")
                                                                               ^
  In file included from _eif.cpp:614:0:
  eif.hxx:11:28: error: 'std::mt19937_64' has not been declared
   #define RANDOM_ENGINE std::mt19937_64
                              ^
  eif.hxx:65:55: note: in expansion of macro 'RANDOM_ENGINE'
           void build_tree (double*, int, int, int, int, RANDOM_ENGINE&, int);
                                                         ^
  eif.hxx:11:28: error: 'std::mt19937_64' has not been declared
   #define RANDOM_ENGINE std::mt19937_64
                              ^
  eif.hxx:66:44: note: in expansion of macro 'RANDOM_ENGINE'
           Node* add_node (double*, int, int, RANDOM_ENGINE&);
                                              ^
  eif.hxx:11:28: error: 'std::mt19937_64' has not been declared
   #define RANDOM_ENGINE std::mt19937_64
                              ^
  eif.hxx:132:63: note: in expansion of macro 'RANDOM_ENGINE'
   inline std::vector<int> sample_without_replacement (int, int, RANDOM_ENGINE&);
                                                                 ^
  _eif.cpp: In function 'PyTypeObject* __Pyx_ImportType(PyObject*, const char*, const char*, size_t, __Pyx_ImportType_CheckSize)':
  _eif.cpp:8085:53: warning: unknown conversion type character 'z' in format [-Wformat=]
               module_name, class_name, size, basicsize);
                                                       ^
  _eif.cpp:8085:53: warning: unknown conversion type character 'z' in format [-Wformat=]
  _eif.cpp:8085:53: warning: too many arguments for format [-Wformat-extra-args]
  error: command 'C:\\Users\\o.korshun\\AppData\\Local\\Continuum\\anaconda3\\Library\\mingw-w64\\bin\\gcc.exe' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for eif
  Running setup.py clean for eif
Failed to build eif
Installing collected packages: eif
    Running setup.py install for eif ... error
    ERROR: Command errored out with exit status 1:
     command: 'C:\Users\o.korshun\AppData\Local\Continuum\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\O0ADF~1.KOR\\AppData\\Local\\Temp\\pip-install-1adywqes\\eif\\setup.py'"'"'; __file__='"'"'C:\\Users\\O0ADF~1.KOR\\AppData\\Local\\Temp\\pip-install-1adywqes\\eif\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\O0ADF~1.KOR\AppData\Local\Temp\pip-record-yqa9lmac\install-record.txt' --single-version-externally-managed --compile
         cwd: C:\Users\O0ADF~1.KOR\AppData\Local\Temp\pip-install-1adywqes\eif\
    Complete output (60 lines):
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.7
    copying eif_old.py -> build\lib.win-amd64-3.7
    copying version.py -> build\lib.win-amd64-3.7
    running egg_info
    writing eif.egg-info\PKG-INFO
    writing dependency_links to eif.egg-info\dependency_links.txt
    writing requirements to eif.egg-info\requires.txt
    writing top-level names to eif.egg-info\top_level.txt
    reading manifest file 'eif.egg-info\SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    writing manifest file 'eif.egg-info\SOURCES.txt'
    running build_ext
    skipping '_eif.cpp' Cython extension (up-to-date)
    building 'eif' extension
    creating build\temp.win-amd64-3.7
    creating build\temp.win-amd64-3.7\Release
    C:\Users\o.korshun\AppData\Local\Continuum\anaconda3\Library\mingw-w64\bin\gcc.exe -mdll -O -Wall -DMS_WIN64 -IC:\Users\o.korshun\AppData\Local\Continuum\anaconda3\lib\site-packages\numpy\core\include -IC:\Users\o.korshun\AppData\Local\Continuum\anaconda3\include -IC:\Users\o.korshun\AppData\Local\Continuum\anaconda3\include -c _eif.cpp -o build\temp.win-amd64-3.7\Release\_eif.o -Wcpp
    In file included from C:/Users/o.korshun/AppData/Local/Continuum/anaconda3/Library/mingw-w64/include/c++/5.3.0/random:35:0,
                     from eif.hxx:5,
                     from _eif.cpp:614:
    C:/Users/o.korshun/AppData/Local/Continuum/anaconda3/Library/mingw-w64/include/c++/5.3.0/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
     #error This file requires compiler and library support for the \
      ^
    In file included from C:\Users\o.korshun\AppData\Local\Continuum\anaconda3\lib\site-packages\numpy\core\include/numpy/ndarraytypes.h:1822:0,
                     from C:\Users\o.korshun\AppData\Local\Continuum\anaconda3\lib\site-packages\numpy\core\include/numpy/ndarrayobject.h:12,
                     from C:\Users\o.korshun\AppData\Local\Continuum\anaconda3\lib\site-packages\numpy\core\include/numpy/arrayobject.h:4,
                     from _eif.cpp:612:
    C:\Users\o.korshun\AppData\Local\Continuum\anaconda3\lib\site-packages\numpy\core\include/numpy/npy_1_7_deprecated_api.h:15:77: note: #pragma message: C:\Users\o.korshun\AppData\Local\Continuum\anaconda3\lib\site-packages\numpy\core\include/numpy/npy_1_7_deprecated_api.h(14) : Warning Msg: Using deprecated NumPy API, disable it with #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
                              "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION")
                                                                                 ^
    In file included from _eif.cpp:614:0:
    eif.hxx:11:28: error: 'std::mt19937_64' has not been declared
     #define RANDOM_ENGINE std::mt19937_64
                                ^
    eif.hxx:65:55: note: in expansion of macro 'RANDOM_ENGINE'
             void build_tree (double*, int, int, int, int, RANDOM_ENGINE&, int);
                                                           ^
    eif.hxx:11:28: error: 'std::mt19937_64' has not been declared
     #define RANDOM_ENGINE std::mt19937_64
                                ^
    eif.hxx:66:44: note: in expansion of macro 'RANDOM_ENGINE'
             Node* add_node (double*, int, int, RANDOM_ENGINE&);
                                                ^
    eif.hxx:11:28: error: 'std::mt19937_64' has not been declared
     #define RANDOM_ENGINE std::mt19937_64
                                ^
    eif.hxx:132:63: note: in expansion of macro 'RANDOM_ENGINE'
     inline std::vector<int> sample_without_replacement (int, int, RANDOM_ENGINE&);
                                                                   ^
    _eif.cpp: In function 'PyTypeObject* __Pyx_ImportType(PyObject*, const char*, const char*, size_t, __Pyx_ImportType_CheckSize)':
    _eif.cpp:8085:53: warning: unknown conversion type character 'z' in format [-Wformat=]
                 module_name, class_name, size, basicsize);
                                                         ^
    _eif.cpp:8085:53: warning: unknown conversion type character 'z' in format [-Wformat=]
    _eif.cpp:8085:53: warning: too many arguments for format [-Wformat-extra-args]
    error: command 'C:\\Users\\o.korshun\\AppData\\Local\\Continuum\\anaconda3\\Library\\mingw-w64\\bin\\gcc.exe' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\o.korshun\AppData\Local\Continuum\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\O0ADF~1.KOR\\AppData\\Local\\Temp\\pip-install-1adywqes\\eif\\setup.py'"'"'; __file__='"'"'C:\\Users\\O0ADF~1.KOR\\AppData\\Local\\Temp\\pip-install-1adywqes\\eif\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\O0ADF~1.KOR\AppData\Local\Temp\pip-record-yqa9lmac\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.
RutujaWanjari commented 4 years ago

I too got same error while installing it in my aws sagemaker ubuntu environment.

ameresj commented 4 years ago

The issue is: eif.hxx:11:28: error: 'std::mt19937_64' has not been declared So you have to change to c++11 for mingw: In setup.py change: extra_compile_args=['-std=c++11', '-Wcpp']

tomas-gajarsky commented 4 years ago

I seem to have a similar problem and the tip from @ameresj did not solve it. The original error message:

ERROR: Complete output from command /home/ubuntu/anaconda3/envs/home_rec_p36/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-wpautfv5/eif/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exe[2/446]
)' install --record /tmp/pip-record-wpuywccp/install-record.txt --single-version-externally-managed --compile:
    ERROR: running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.6
    copying eif_old.py -> build/lib.linux-x86_64-3.6
    copying version.py -> build/lib.linux-x86_64-3.6
    running egg_info
    writing eif.egg-info/PKG-INFO
    writing dependency_links to eif.egg-info/dependency_links.txt
    writing requirements to eif.egg-info/requires.txt
    writing top-level names to eif.egg-info/top_level.txt
    reading manifest file 'eif.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no files found matching 'Readme.md'
    writing manifest file 'eif.egg-info/SOURCES.txt'
    running build_ext
    skipping '_eif.cpp' Cython extension (up-to-date)
    building 'eif' extension
    creating build/temp.linux-x86_64-3.6
    gcc -pthread -B /home/ubuntu/anaconda3/envs/home_rec_p36/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ubuntu/anaconda3/envs/home_rec_p36/lib/python3.6/site-packages/numpy/core/include -I/home/ubuntu/anaconda3/envs/home_rec_p36/include/python3.6m -c _eif.cpp -o build/temp.l
inux-x86_64-3.6/_eif.o -Wcpp
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    In file included from /home/ubuntu/anaconda3/envs/home_rec_p36/lib/python3.6/site-packages/numpy/core/include/numpy/ndarraytypes.h:1832:0,
                     from /home/ubuntu/anaconda3/envs/home_rec_p36/lib/python3.6/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
                     from /home/ubuntu/anaconda3/envs/home_rec_p36/lib/python3.6/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                     from _eif.cpp:612:
    /home/ubuntu/anaconda3/envs/home_rec_p36/lib/python3.6/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
     #warning "Using deprecated NumPy API, disable it with " \
      ^
    In file included from /usr/include/c++/5/random:35:0,
                     from eif.hxx:5,
                     from _eif.cpp:614:
    /usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
     #error This file requires compiler and library support \
      ^
    In file included from _eif.cpp:614:0:
    eif.hxx:11:28: error: 'std::mt19937_64' has not been declared
     #define RANDOM_ENGINE std::mt19937_64
                                ^
    eif.hxx:65:55: note: in expansion of macro 'RANDOM_ENGINE'
             void build_tree (double*, int, int, int, int, RANDOM_ENGINE&, int);
                                                           ^
    eif.hxx:11:28: error: 'std::mt19937_64' has not been declared
     #define RANDOM_ENGINE std::mt19937_64
                                ^
    eif.hxx:66:44: note: in expansion of macro 'RANDOM_ENGINE'
             Node* add_node (double*, int, int, RANDOM_ENGINE&);
                                                ^
    eif.hxx:11:28: error: 'std::mt19937_64' has not been declared
     #define RANDOM_ENGINE std::mt19937_64
                                ^
    eif.hxx:132:63: note: in expansion of macro 'RANDOM_ENGINE'
     inline std::vector<int> sample_without_replacement (int, int, RANDOM_ENGINE&);
                                                                   ^
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command "/home/ubuntu/anaconda3/envs/home_rec_p36/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-wpautfv5/eif/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-wpuywccp/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-wpautfv5/eif/
c3SamanehAminikhanghahi commented 4 years ago

I seem to have a similar problem and the tip from @ameresj did not solve it. The original error message:

ERROR: Complete output from command /home/ubuntu/anaconda3/envs/home_rec_p36/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-wpautfv5/eif/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exe[2/446]
)' install --record /tmp/pip-record-wpuywccp/install-record.txt --single-version-externally-managed --compile:
    ERROR: running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.6
    copying eif_old.py -> build/lib.linux-x86_64-3.6
    copying version.py -> build/lib.linux-x86_64-3.6
    running egg_info
    writing eif.egg-info/PKG-INFO
    writing dependency_links to eif.egg-info/dependency_links.txt
    writing requirements to eif.egg-info/requires.txt
    writing top-level names to eif.egg-info/top_level.txt
    reading manifest file 'eif.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no files found matching 'Readme.md'
    writing manifest file 'eif.egg-info/SOURCES.txt'
    running build_ext
    skipping '_eif.cpp' Cython extension (up-to-date)
    building 'eif' extension
    creating build/temp.linux-x86_64-3.6
    gcc -pthread -B /home/ubuntu/anaconda3/envs/home_rec_p36/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ubuntu/anaconda3/envs/home_rec_p36/lib/python3.6/site-packages/numpy/core/include -I/home/ubuntu/anaconda3/envs/home_rec_p36/include/python3.6m -c _eif.cpp -o build/temp.l
inux-x86_64-3.6/_eif.o -Wcpp
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    In file included from /home/ubuntu/anaconda3/envs/home_rec_p36/lib/python3.6/site-packages/numpy/core/include/numpy/ndarraytypes.h:1832:0,
                     from /home/ubuntu/anaconda3/envs/home_rec_p36/lib/python3.6/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
                     from /home/ubuntu/anaconda3/envs/home_rec_p36/lib/python3.6/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                     from _eif.cpp:612:
    /home/ubuntu/anaconda3/envs/home_rec_p36/lib/python3.6/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
     #warning "Using deprecated NumPy API, disable it with " \
      ^
    In file included from /usr/include/c++/5/random:35:0,
                     from eif.hxx:5,
                     from _eif.cpp:614:
    /usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
     #error This file requires compiler and library support \
      ^
    In file included from _eif.cpp:614:0:
    eif.hxx:11:28: error: 'std::mt19937_64' has not been declared
     #define RANDOM_ENGINE std::mt19937_64
                                ^
    eif.hxx:65:55: note: in expansion of macro 'RANDOM_ENGINE'
             void build_tree (double*, int, int, int, int, RANDOM_ENGINE&, int);
                                                           ^
    eif.hxx:11:28: error: 'std::mt19937_64' has not been declared
     #define RANDOM_ENGINE std::mt19937_64
                                ^
    eif.hxx:66:44: note: in expansion of macro 'RANDOM_ENGINE'
             Node* add_node (double*, int, int, RANDOM_ENGINE&);
                                                ^
    eif.hxx:11:28: error: 'std::mt19937_64' has not been declared
     #define RANDOM_ENGINE std::mt19937_64
                                ^
    eif.hxx:132:63: note: in expansion of macro 'RANDOM_ENGINE'
     inline std::vector<int> sample_without_replacement (int, int, RANDOM_ENGINE&);
                                                                   ^
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command "/home/ubuntu/anaconda3/envs/home_rec_p36/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-wpautfv5/eif/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-wpuywccp/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-wpautfv5/eif/

find any solution? I am having the same issue

tomas-gajarsky commented 4 years ago

find any solution? I am having the same issue

I was able to install eif 2.0.2 into a Python 3.7 environment on macos, but I had to install Cython package beforehand. However, I am still having the same problem as before on Ubuntu 16.04. It is a shame, since I like how the authors improved the isolation forest algorithm. @mgckind can we expect that you will look into this problem?

c3SamanehAminikhanghahi commented 4 years ago

find any solution? I am having the same issue

I was able to install eif 2.0.2 into a Python 3.7 environment on macos, but I had to install Cython package beforehand. However, I am still having the same problem as before on Ubuntu 16.04. It is a shame, since I like how the authors improved the isolation forest algorithm. @mgckind can we expect that you will look into this problem?

mine fixed with reinstalling openssl

mgckind commented 4 years ago

I'll give i a try a soon as possible, I've been swamped with work lately, thanks for those helping out!

Dainean commented 4 years ago

I seem to have found a solution that works on my windows 10 system. Keep in mind, I did install Visual Studio 2019 before hand as a c++ compiler. The fix is frustratingly easy, but seems to work just fine:

Download the package, clone or fork it if you want.

In setup.py, remove the following line: extra_compile_args=['-Wcpp'],

so that it looks like:

      ext_modules=[Extension("eif",
                 sources=["_eif.pyx", "eif.cxx"],
                 include_dirs=[numpy.get_include()]
                 language="c++")],

Go to the folder where you downloaded it run it with: python .\setup.py install

And it worked. Not sure what the extra compile args were required for, and still testing for problems down the line, but al;l the added notebooks seem to function just fine.

mgckind commented 4 years ago

Thanks @Dainean !!! I'll wait for others to confirm this works.

Dainean commented 4 years ago

Made a branch on my own github with the adjustments stated above, and ran it again, this time on the university linux based network rather then my own windows based computer. The normal method would not run / work, yet this adjustment did.

pip install git+https://github.com/dainean/eif.git

mgckind commented 4 years ago

Nice! Would you like to make a PR to the repo? @Dainean I'll soon create a Contributors page as well to give proper credit too, thanks!

zinebaly commented 4 years ago

@mgckind @Dainean FYI, None of the solutions above works for me! I am using Arch linux.

If I find a solution I will report here.

Thanks for the package though ;)

mgckind commented 4 years ago

Thanks @zinebaly , yes let us know, too bad it didn't work, im sure the python version will work although is much slower it gives the same results

PuhongDuan commented 4 years ago

When I install eif module with pip, there is the error. Could you help me to solve it? Many thanks!

============================================================== Collecting eif==2.0.2 Using cached eif-2.0.2.tar.gz (1.6 MB) Requirement already satisfied: numpy in d:\program files\anaconda\lib\site-packages (from eif==2.0.2) (1.18.2) Requirement already satisfied: cython in d:\program files\anaconda\lib\site-packages (from eif==2.0.2) (0.28.5) Building wheels for collected packages: eif Building wheel for eif (setup.py) ... error ERROR: Command errored out with exit status 1: command: 'd:\program files\anaconda\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\73528\AppData\Local\Temp\pip-install-ma1xwulc\eif\setup.py'"'"'; file='"'"'C:\Users\73528\AppData\Local\Temp\pip-install-ma1xwulc\eif\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 'C:\Users\73528\AppData\Local\Temp\pip-wheel-so127zqk' cwd: C:\Users\73528\AppData\Local\Temp\pip-install-ma1xwulc\eif\ Complete output (23 lines): running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-3.5 copying eif_old.py -> build\lib.win-amd64-3.5 copying version.py -> build\lib.win-amd64-3.5 running egg_info writing eif.egg-info\PKG-INFO writing top-level names to eif.egg-info\top_level.txt writing dependency_links to eif.egg-info\dependency_links.txt writing requirements to eif.egg-info\requires.txt reading manifest file 'eif.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'eif.egg-info\SOURCES.txt' running build_ext cythoning _eif.pyx to _eif.cpp building 'eif' extension creating build\temp.win-amd64-3.5 creating build\temp.win-amd64-3.5\Release D:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD "-Id:\program files\anaconda\lib\site-packages\numpy\core\include" "-Id:\program files\anaconda\include" "-Id:\program files\anaconda\include" "-ID:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-ID:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10150.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\shared" "-IC:\Program Files (x86)\Windows Kits\8.1\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\winrt" /EHsc /Tp_eif.cpp /Fobuild\temp.win-amd64-3.5\Release_eif.obj -Wcpp cl: 命令行 error D8021 :无效的数值参数“/Wcpp” error: command 'D:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe' failed with exit status 2

ERROR: Failed building wheel for eif Running setup.py clean for eif Failed to build eif Installing collected packages: eif Running setup.py install for eif ... error ERROR: Command errored out with exit status 1: command: 'd:\program files\anaconda\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\73528\AppData\Local\Temp\pip-install-ma1xwulc\eif\setup.py'"'"'; file='"'"'C:\Users\73528\AppData\Local\Temp\pip-install-ma1xwulc\eif\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\73528\AppData\Local\Temp\pip-record-7wtdrlv7\install-record.txt' --single-version-externally-managed --compile --install-headers 'd:\program files\anaconda\Include\eif' cwd: C:\Users\73528\AppData\Local\Temp\pip-install-ma1xwulc\eif\ Complete output (23 lines): running install running build running build_py creating build creating build\lib.win-amd64-3.5 copying eif_old.py -> build\lib.win-amd64-3.5 copying version.py -> build\lib.win-amd64-3.5 running egg_info writing top-level names to eif.egg-info\top_level.txt writing eif.egg-info\PKG-INFO writing dependency_links to eif.egg-info\dependency_links.txt writing requirements to eif.egg-info\requires.txt reading manifest file 'eif.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'eif.egg-info\SOURCES.txt' running build_ext skipping '_eif.cpp' Cython extension (up-to-date) building 'eif' extension creating build\temp.win-amd64-3.5 creating build\temp.win-amd64-3.5\Release D:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD "-Id:\program files\anaconda\lib\site-packages\numpy\core\include" "-Id:\program files\anaconda\include" "-Id:\program files\anaconda\include" "-ID:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-ID:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10150.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\shared" "-IC:\Program Files (x86)\Windows Kits\8.1\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\winrt" /EHsc /Tp_eif.cpp /Fobuild\temp.win-amd64-3.5\Release_eif.obj -Wcpp cl: 命令行 error D8021 :无效的数值参数“/Wcpp” error: command 'D:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe' failed with exit status 2

ERROR: Command errored out with exit status 1: 'd:\program files\anaconda\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\73528\AppData\Local\Temp\pip-install-ma1xwulc\eif\setup.py'"'"'; file='"'"'C:\Users\73528\AppData\Local\Temp\pip-install-ma1xwulc\eif\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\73528\AppData\Local\Temp\pip-record-7wtdrlv7\install-record.txt' --single-version-externally-managed --compile --install-headers 'd:\program files\anaconda\Include\eif' Check the logs for full command output.###

zinebaly commented 4 years ago

@mgckind @PuhongDuan

Here is how I managed to install eif with no issue:

1) Created a new python virtual environment. 2) Installed numpy and cython in the virtual environment. 3) git cloned the master branch of eif. 4) then I went to the directory where eif is cloned and did pip install . (but make sure that the virtual environment is activated!).

This has worked for me on Archlinux and on Manjaro.

CoteDave commented 4 years ago

Hi same problem here, can't install (windows 10), building wheel fail. Anyone have been able to find a solution yet ?

dlsflh commented 4 years ago

When I install eif module with pip, there is the error. Could you help me to solve it? Many thanks!

==============================================================

Collecting eif==2.0.2 Using cached eif-2.0.2.tar.gz (1.6 MB) Requirement already satisfied: numpy in d:\program files\anaconda\lib\site-packages (from eif==2.0.2) (1.18.2) Requirement already satisfied: cython in d:\program files\anaconda\lib\site-packages (from eif==2.0.2) (0.28.5) Building wheels for collected packages: eif Building wheel for eif (setup.py) ... error ERROR: Command errored out with exit status 1: command: 'd:\program files\anaconda\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\73528\AppData\Local\Temp\pip-install-ma1xwulc\eif\setup.py'"'"'; file='"'"'C:\Users\73528\AppData\Local\Temp\pip-install-ma1xwulc\eif\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 'C:\Users\73528\AppData\Local\Temp\pip-wheel-so127zqk' cwd: C:\Users\73528\AppData\Local\Temp\pip-install-ma1xwulc\eif Complete output (23 lines): running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-3.5 copying eif_old.py -> build\lib.win-amd64-3.5 copying version.py -> build\lib.win-amd64-3.5 running egg_info writing eif.egg-info\PKG-INFO writing top-level names to eif.egg-info\top_level.txt writing dependency_links to eif.egg-info\dependency_links.txt writing requirements to eif.egg-info\requires.txt reading manifest file 'eif.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'eif.egg-info\SOURCES.txt' running build_ext cythoning _eif.pyx to _eif.cpp building 'eif' extension creating build\temp.win-amd64-3.5 creating build\temp.win-amd64-3.5\Release D:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD "-Id:\program files\anaconda\lib\site-packages\numpy\core\include" "-Id:\program files\anaconda\include" "-Id:\program files\anaconda\include" "-ID:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-ID:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10150.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\shared" "-IC:\Program Files (x86)\Windows Kits\8.1\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\winrt" /EHsc /Tp_eif.cpp /Fobuild\temp.win-amd64-3.5\Release_eif.obj -Wcpp cl: 命令行 error D8021 :无效的数值参数“/Wcpp” error: command 'D:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe' failed with exit status 2 ERROR: Failed building wheel for eif Running setup.py clean for eif Failed to build eif Installing collected packages: eif Running setup.py install for eif ... error ERROR: Command errored out with exit status 1: command: 'd:\program files\anaconda\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\73528\AppData\Local\Temp\pip-install-ma1xwulc\eif\setup.py'"'"'; file='"'"'C:\Users\73528\AppData\Local\Temp\pip-install-ma1xwulc\eif\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\73528\AppData\Local\Temp\pip-record-7wtdrlv7\install-record.txt' --single-version-externally-managed --compile --install-headers 'd:\program files\anaconda\Include\eif' cwd: C:\Users\73528\AppData\Local\Temp\pip-install-ma1xwulc\eif Complete output (23 lines): running install running build running build_py creating build creating build\lib.win-amd64-3.5 copying eif_old.py -> build\lib.win-amd64-3.5 copying version.py -> build\lib.win-amd64-3.5 running egg_info writing top-level names to eif.egg-info\top_level.txt writing eif.egg-info\PKG-INFO writing dependency_links to eif.egg-info\dependency_links.txt writing requirements to eif.egg-info\requires.txt reading manifest file 'eif.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'eif.egg-info\SOURCES.txt' running build_ext skipping '_eif.cpp' Cython extension (up-to-date) building 'eif' extension creating build\temp.win-amd64-3.5 creating build\temp.win-amd64-3.5\Release D:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD "-Id:\program files\anaconda\lib\site-packages\numpy\core\include" "-Id:\program files\anaconda\include" "-Id:\program files\anaconda\include" "-ID:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-ID:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10150.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\shared" "-IC:\Program Files (x86)\Windows Kits\8.1\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\winrt" /EHsc /Tp_eif.cpp /Fobuild\temp.win-amd64-3.5\Release_eif.obj -Wcpp cl: 命令行 error D8021 :无效的数值参数“/Wcpp” error: command 'D:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe' failed with exit status 2

ERROR: Command errored out with exit status 1: 'd:\program files\anaconda\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\73528\AppData\Local\Temp\pip-install-ma1xwulc\eif\setup.py'"'"'; file='"'"'C:\Users\73528\AppData\Local\Temp\pip-install-ma1xwulc\eif\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\73528\AppData\Local\Temp\pip-record-7wtdrlv7\install-record.txt' --single-version-externally-managed --compile --install-headers 'd:\program files\anaconda\Include\eif' Check the logs for full command output.###

老哥好,就像上面有人提到过的在setup.py文件中注释掉“extra_compile_args=['-Wcpp'],”这一行就可以了。

Just # “extra_compile_args=['-Wcpp'],”. It works for me.

emigre459 commented 4 years ago

For anyone finding this issue that likes to work in conda, I found conda install cython then pip install eif did the trick on Mac OSX.

Geethen commented 4 years ago

I have also tried all the above suggestions without any success in python version 3.6 and 3.8 virtual envs, both on windows 10. Any additional suggestions?

ABHIINAV12 commented 4 years ago

Made a branch on my own github with the adjustments stated above, and ran it again, this time on the university linux based network rather then my own windows based computer. The normal method would not run / work, yet this adjustment did.

pip install git+https://github.com/dainean/eif.git

thanks !! worked for me on windows 10

PoradaKev commented 4 years ago

Worked for me as well! Thank you

yuxiangru commented 4 years ago

I seem to have found a solution that works on my windows 10 system. Keep in mind, I did install Visual Studio 2019 before hand as a c++ compiler. The fix is frustratingly easy, but seems to work just fine:

Download the package, clone or fork it if you want.

In setup.py, remove the following line: extra_compile_args=['-Wcpp'],

so that it looks like:

      ext_modules=[Extension("eif",
                 sources=["_eif.pyx", "eif.cxx"],
                 include_dirs=[numpy.get_include()]
                 language="c++")],

Go to the folder where you downloaded it run it with: python .\setup.py install

And it worked. Not sure what the extra compile args were required for, and still testing for problems down the line, but al;l the added notebooks seem to function just fine.

I try it, and this solution can work!!!

joeldias commented 3 years ago

Made a branch on my own github with the adjustments stated above, and ran it again, this time on the university linux based network rather then my own windows based computer. The normal method would not run / work, yet this adjustment did.

pip install git+https://github.com/dainean/eif.git

This worked for me

DiegoBetancourtC commented 3 years ago

None of the above solutions seems to fix it for me. I'm running Centos 7. The way I fixed this issue was by upgrading the version of gcc to 7.x.x instead of the old 4.x.x. This may not work for you if you have other dependencies with this compiler's version, but if you are just trying to have eif running, upgrading may help you.

In order to understand why the gcc is presenting problems, @pausz comment may shed some light to understand the reason behind it:

...The following line in the error message:

... error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.

means that the compiler does not know it has to use features of the C++11 standard.

From gcc 5.1.0 onward, the default standard changed from C90 to C11, thus a compiler like gcc 7.2.0 (on Artemis) would not produce errors. However for gcc 4.8.5, you need to explicitly pass the flag -std=c++11...

Although I have used the flag -std=c++11 in the extra compile args, it didn't work for me.

What worked for me in Centos 7:

yum -y update
yum -y install centos-release-scl
yum -y install devtoolset-7-gcc*
/usr/bin/scl enable devtoolset-7 bash
gcc --version

  gcc (GCC) 7.3.1 20180303 (Red Hat 7.3.1-5)
  Copyright (C) 2017 Free Software Foundation, Inc.
  This is free software; see the source for copying conditions.  There is NO
  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

${PYTHON_HOME}/bin/python3 -m pip install --upgrade pip
${PYTHON_HOME}/bin/python3 -m pip install cython==0.29.21
${PYTHON_HOME}/bin/python3 -m pip install eif==2.0.2

Taken from StackOverflow

hmao2022 commented 2 years ago

Made a branch on my own github with the adjustments stated above, and ran it again, this time on the university linux based network rather then my own windows based computer. The normal method would not run / work, yet this adjustment did.

pip install git+https://github.com/dainean/eif.git

Thank you so much!! It worked!!

omegabonobo commented 1 year ago

Made a branch on my own github with the adjustments stated above, and ran it again, this time on the university linux based network rather then my own windows based computer. The normal method would not run / work, yet this adjustment did.

pip install git+https://github.com/dainean/eif.git

This is what worked for me the first time on my Windows 11 laptop. My laptop fried and I just tried to re-run my code on MacOSX and this pip install git+https://github.com/dainean/eif.git is failing for me. I've done a pip install cython and of course numpy is there as well... Any idea ? I'm trying to figure out if it's a folder path change or something like that since it's a different laptop I'm running it from.

`Collecting git+https://github.com/dainean/eif.git Cloning https://github.com/dainean/eif.git to /private/var/folders/qv/182dxs7n5db0zwnkzck6zrnc0000gn/T/pip-req-build-s9mjrh42 Running command git clone --filter=blob:none --quiet https://github.com/dainean/eif.git /private/var/folders/qv/182dxs7n5db0zwnkzck6zrnc0000gn/T/pip-req-build-s9mjrh42 Resolved https://github.com/dainean/eif.git to commit 81748708b5ee1a849b7b86819da2cbc0c28cbe9a Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [20 lines of output] Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in main() File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel return hook(config_settings) ^^^^^^^^^^^^^^^^^^^^^ File "/private/var/folders/qv/182dxs7n5db0zwnkzck6zrnc0000gn/T/pip-build-env-10g9b3e0/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 355, in get_requires_for_build_wheel return self._get_build_requires(config_settings, requirements=['wheel']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/private/var/folders/qv/182dxs7n5db0zwnkzck6zrnc0000gn/T/pip-build-env-10g9b3e0/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 325, in _get_build_requires self.run_setup() File "/private/var/folders/qv/182dxs7n5db0zwnkzck6zrnc0000gn/T/pip-build-env-10g9b3e0/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 507, in run_setup super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script) File "/private/var/folders/qv/182dxs7n5db0zwnkzck6zrnc0000gn/T/pip-build-env-10g9b3e0/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 341, in run_setup exec(code, locals()) File "", line 3, in ModuleNotFoundError: No module named 'numpy' [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip. `