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

Could not install bottleneck #11

Open
Tigershan opened this issue Dec 24, 2020 · 2 comments
Open

Could not install bottleneck #11

Tigershan opened this issue Dec 24, 2020 · 2 comments

Comments

@Tigershan
Copy link

Hello! When I use the requirements.txt to install libraries, it failed with the error:
ERROR:Could not build wheels for bottleneck which use PEP 517 and cannot be installed directly
Could you please tell me how to fix it? Thank you!
The whole error messages are as below:

ERROR: Command errored out with exit status 1:
command: /home/tigershan/anaconda3/envs/ArtLine/bin/python /home/tigershan/anaconda3/envs/ArtLine/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmp3rj4usov
cwd: /tmp/pip-install-ne7kzdj5/bottleneck_4132ceeb7f0a474ca245fb029b472ac0
Complete output (122 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.7
creating build/lib.linux-x86_64-3.7/bottleneck
copying bottleneck/init.py -> build/lib.linux-x86_64-3.7/bottleneck
copying bottleneck/_version.py -> build/lib.linux-x86_64-3.7/bottleneck
copying bottleneck/_pytesttester.py -> build/lib.linux-x86_64-3.7/bottleneck
creating build/lib.linux-x86_64-3.7/bottleneck/tests
copying bottleneck/tests/move_test.py -> build/lib.linux-x86_64-3.7/bottleneck/tests
copying bottleneck/tests/init.py -> build/lib.linux-x86_64-3.7/bottleneck/tests
copying bottleneck/tests/nonreduce_test.py -> build/lib.linux-x86_64-3.7/bottleneck/tests
copying bottleneck/tests/input_modification_test.py -> build/lib.linux-x86_64-3.7/bottleneck/tests
copying bottleneck/tests/nonreduce_axis_test.py -> build/lib.linux-x86_64-3.7/bottleneck/tests
copying bottleneck/tests/reduce_test.py -> build/lib.linux-x86_64-3.7/bottleneck/tests
copying bottleneck/tests/list_input_test.py -> build/lib.linux-x86_64-3.7/bottleneck/tests
copying bottleneck/tests/memory_test.py -> build/lib.linux-x86_64-3.7/bottleneck/tests
copying bottleneck/tests/util.py -> build/lib.linux-x86_64-3.7/bottleneck/tests
copying bottleneck/tests/scalar_input_test.py -> build/lib.linux-x86_64-3.7/bottleneck/tests
creating build/lib.linux-x86_64-3.7/bottleneck/src
copying bottleneck/src/bn_template.py -> build/lib.linux-x86_64-3.7/bottleneck/src
copying bottleneck/src/init.py -> build/lib.linux-x86_64-3.7/bottleneck/src
copying bottleneck/src/bn_config.py -> build/lib.linux-x86_64-3.7/bottleneck/src
creating build/lib.linux-x86_64-3.7/bottleneck/benchmark
copying bottleneck/benchmark/init.py -> build/lib.linux-x86_64-3.7/bottleneck/benchmark
copying bottleneck/benchmark/autotimeit.py -> build/lib.linux-x86_64-3.7/bottleneck/benchmark
copying bottleneck/benchmark/bench.py -> build/lib.linux-x86_64-3.7/bottleneck/benchmark
copying bottleneck/benchmark/bench_detailed.py -> build/lib.linux-x86_64-3.7/bottleneck/benchmark
creating build/lib.linux-x86_64-3.7/bottleneck/slow
copying bottleneck/slow/init.py -> build/lib.linux-x86_64-3.7/bottleneck/slow
copying bottleneck/slow/move.py -> build/lib.linux-x86_64-3.7/bottleneck/slow
copying bottleneck/slow/reduce.py -> build/lib.linux-x86_64-3.7/bottleneck/slow
copying bottleneck/slow/nonreduce.py -> build/lib.linux-x86_64-3.7/bottleneck/slow
copying bottleneck/slow/nonreduce_axis.py -> build/lib.linux-x86_64-3.7/bottleneck/slow
UPDATING build/lib.linux-x86_64-3.7/bottleneck/_version.py
set build/lib.linux-x86_64-3.7/bottleneck/_version.py to '1.3.2'
running build_ext
running config
compiling '_configtest.c':

#pragma GCC diagnostic error "-Wattributes"

int attribute((optimize("O3"))) have_attribute_optimize_opt_3(void*);

int main(void)
{
return 0;
}

gcc -pthread -B /home/tigershan/anaconda3/envs/ArtLine/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -c _configtest.c -o _configtest.o
failure.
removing: _configtest.c _configtest.o
compiling '_configtest.c':

#ifndef __cplusplus
static inline int static_func (void)
{
return 0;
}
inline int nostatic_func (void)
{
return 0;
}
#endif
int main(void) {
int r1 = static_func();
int r2 = nostatic_func();
return r1 + r2;
}

gcc -pthread -B /home/tigershan/anaconda3/envs/ArtLine/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -c _configtest.c -o _configtest.o
failure.
removing: _configtest.c _configtest.o
compiling '_configtest.c':

#ifndef __cplusplus
static inline int static_func (void)
{
return 0;
}
inline int nostatic_func (void)
{
return 0;
}
#endif
int main(void) {
int r1 = static_func();
int r2 = nostatic_func();
return r1 + r2;
}

gcc -pthread -B /home/tigershan/anaconda3/envs/ArtLine/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -c _configtest.c -o _configtest.o
failure.
removing: _configtest.c _configtest.o
compiling '_configtest.c':

#ifndef __cplusplus
static __inline int static_func (void)
{
return 0;
}
__inline int nostatic_func (void)
{
return 0;
}
#endif
int main(void) {
int r1 = static_func();
int r2 = nostatic_func();
return r1 + r2;
}

gcc -pthread -B /home/tigershan/anaconda3/envs/ArtLine/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -c _configtest.c -o _configtest.o
failure.
removing: _configtest.c configtest.o
building 'bottleneck.reduce' extension
creating build/temp.linux-x86_64-3.7
creating build/temp.linux-x86_64-3.7/bottleneck
creating build/temp.linux-x86_64-3.7/bottleneck/src
gcc -pthread -B /home/tigershan/anaconda3/envs/ArtLine/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/tmp/pip-build-env-ryeao30
/overlay/lib/python3.7/site-packages/numpy/core/include -I/home/tigershan/anaconda3/envs/ArtLine/include/python3.7m -Ibottleneck/src -c bottleneck/src/reduce.c -o build/temp.linux-x86_64-3.7/bottleneck/src/reduce.o -O2
error: command 'gcc' failed with exit status 1

ERROR: Failed building wheel for bottleneck
Failed to build bottleneck
ERROR: Could not build wheels for bottleneck which use PEP 517 and cannot be installed directly

@vijishmadhavan
Copy link
Owner

vijishmadhavan commented Dec 24, 2020 via email

@Tigershan
Copy link
Author

Let me check, Colab notebook ryt?

On Thu, 24 Dec, 2020, 7:31 pm Tigershan, @.**> wrote: Hello! When I use the requirements.txt to install libraries, it failed with the error: ERROR:Could not build wheels for bottleneck which use PEP 517 and cannot be installed directly Could you please tell me how to fix it? Thank you! The whole error messages are as below: ERROR: Command errored out with exit status 1: command: /home/tigershan/anaconda3/envs/ArtLine/bin/python /home/tigershan/anaconda3/envs/ArtLine/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmp3rj4usov cwd: /tmp/pip-install-ne7kzdj5/bottleneck_4132ceeb7f0a474ca245fb029b472ac0 Complete output (122 lines): running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-3.7 creating build/lib.linux-x86_64-3.7/bottleneck copying bottleneck/init.py -> build/lib.linux-x86_64-3.7/bottleneck copying bottleneck/_version.py -> build/lib.linux-x86_64-3.7/bottleneck copying bottleneck/_pytesttester.py -> build/lib.linux-x86_64-3.7/bottleneck creating build/lib.linux-x86_64-3.7/bottleneck/tests copying bottleneck/tests/move_test.py -> build/lib.linux-x86_64-3.7/bottleneck/tests copying bottleneck/tests/init.py -> build/lib.linux-x86_64-3.7/bottleneck/tests copying bottleneck/tests/nonreduce_test.py -> build/lib.linux-x86_64-3.7/bottleneck/tests copying bottleneck/tests/input_modification_test.py -> build/lib.linux-x86_64-3.7/bottleneck/tests copying bottleneck/tests/nonreduce_axis_test.py -> build/lib.linux-x86_64-3.7/bottleneck/tests copying bottleneck/tests/reduce_test.py -> build/lib.linux-x86_64-3.7/bottleneck/tests copying bottleneck/tests/list_input_test.py -> build/lib.linux-x86_64-3.7/bottleneck/tests copying bottleneck/tests/memory_test.py -> build/lib.linux-x86_64-3.7/bottleneck/tests copying bottleneck/tests/util.py -> build/lib.linux-x86_64-3.7/bottleneck/tests copying bottleneck/tests/scalar_input_test.py -> build/lib.linux-x86_64-3.7/bottleneck/tests creating build/lib.linux-x86_64-3.7/bottleneck/src copying bottleneck/src/bn_template.py -> build/lib.linux-x86_64-3.7/bottleneck/src copying bottleneck/src/init.py -> build/lib.linux-x86_64-3.7/bottleneck/src copying bottleneck/src/bn_config.py -> build/lib.linux-x86_64-3.7/bottleneck/src creating build/lib.linux-x86_64-3.7/bottleneck/benchmark copying bottleneck/benchmark/init.py -> build/lib.linux-x86_64-3.7/bottleneck/benchmark copying bottleneck/benchmark/autotimeit.py -> build/lib.linux-x86_64-3.7/bottleneck/benchmark copying bottleneck/benchmark/bench.py -> build/lib.linux-x86_64-3.7/bottleneck/benchmark copying bottleneck/benchmark/bench_detailed.py -> build/lib.linux-x86_64-3.7/bottleneck/benchmark creating build/lib.linux-x86_64-3.7/bottleneck/slow copying bottleneck/slow/init.py -> build/lib.linux-x86_64-3.7/bottleneck/slow copying bottleneck/slow/move.py -> build/lib.linux-x86_64-3.7/bottleneck/slow copying bottleneck/slow/reduce.py -> build/lib.linux-x86_64-3.7/bottleneck/slow copying bottleneck/slow/nonreduce.py -> build/lib.linux-x86_64-3.7/bottleneck/slow copying bottleneck/slow/nonreduce_axis.py -> build/lib.linux-x86_64-3.7/bottleneck/slow UPDATING build/lib.linux-x86_64-3.7/bottleneck/_version.py set build/lib.linux-x86_64-3.7/bottleneck/_version.py to '1.3.2' running build_ext running config compiling '_configtest.c': #pragma GCC diagnostic error "-Wattributes" int attribute((optimize("O3"))) have_attribute_optimize_opt_3(void); int main(void) { return 0; } gcc -pthread -B /home/tigershan/anaconda3/envs/ArtLine/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -c _configtest.c -o _configtest.o failure. removing: _configtest.c _configtest.o compiling '_configtest.c': #ifndef __cplusplus static inline int static_func (void) { return 0; } inline int nostatic_func (void) { return 0; } #endif int main(void) { int r1 = static_func(); int r2 = nostatic_func(); return r1 + r2; } gcc -pthread -B /home/tigershan/anaconda3/envs/ArtLine/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -c _configtest.c -o _configtest.o failure. removing: _configtest.c _configtest.o compiling '_configtest.c': #ifndef __cplusplus static inline int static_func (void) { return 0; } inline int nostatic_func (void) { return 0; } #endif int main(void) { int r1 = static_func(); int r2 = nostatic_func(); return r1 + r2; } gcc -pthread -B /home/tigershan/anaconda3/envs/ArtLine/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -c _configtest.c -o _configtest.o failure. removing: _configtest.c _configtest.o compiling '_configtest.c': #ifndef __cplusplus static __inline int static_func (void) { return 0; } __inline int nostatic_func (void) { return 0; } #endif int main(void) { int r1 = static_func(); int r2 = nostatic_func(); return r1 + r2; } gcc -pthread -B /home/tigershan/anaconda3/envs/ArtLine/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -c _configtest.c -o _configtest.o failure. removing: _configtest.c configtest.o building 'bottleneck.reduce' extension creating build/temp.linux-x86_64-3.7 creating build/temp.linux-x86_64-3.7/bottleneck creating build/temp.linux-x86_64-3.7/bottleneck/src gcc -pthread -B /home/tigershan/anaconda3/envs/ArtLine/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/tmp/pip-build-env-ryeao30/overlay/lib/python3.7/site-packages/numpy/core/include -I/home/tigershan/anaconda3/envs/ArtLine/include/python3.7m -Ibottleneck/src -c bottleneck/src/reduce.c -o build/temp.linux-x86_64-3.7/bottleneck/src/reduce.o -O2 error: command 'gcc' failed with exit status 1 ERROR: Failed building wheel for bottleneck Failed to build bottleneck ERROR: Could not build wheels for bottleneck which use PEP 517 and cannot be installed directly — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#11>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMVUYPJRORSP4RQZGZER7JLSWNCSVANCNFSM4VIHGZJA .

No, I run it locally.

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