когда я выполняю установку pip3 imread, я получаю следующую ошибку:
Collecting imread
Using cached imread-0.7.4.tar.gz (151 kB)
Requirement already satisfied: numpy in ./Library/Python/3.7/lib/python/site-packages (from imread) (1.17.4)
Building wheels for collected packages: imread
Building wheel for imread (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/xt/0v5vcz0s2dg46z8x7j6c4yf80000gn/T/pip-install-yzh0j2tc/imread/setup.py'"'"'; __file__='"'"'/private/var/folders/xt/0v5vcz0s2dg46z8x7j6c4yf80000gn/T/pip-install-yzh0j2tc/imread/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 /private/var/folders/xt/0v5vcz0s2dg46z8x7j6c4yf80000gn/T/pip-wheel-th30_vsf
cwd: /private/var/folders/xt/0v5vcz0s2dg46z8x7j6c4yf80000gn/T/pip-install-yzh0j2tc/imread/
Complete output (125 lines):
sh: pkg-config: command not found
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-3.7
creating build/lib.macosx-10.9-x86_64-3.7/imread
copying imread/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/imread
copying imread/imread_version.py -> build/lib.macosx-10.9-x86_64-3.7/imread
copying imread/ijrois.py -> build/lib.macosx-10.9-x86_64-3.7/imread
copying imread/special.py -> build/lib.macosx-10.9-x86_64-3.7/imread
copying imread/imread.py -> build/lib.macosx-10.9-x86_64-3.7/imread
creating build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/test_tiff.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/test_rois.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/test_webp.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/test_jpeg.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/test_imread_from_blob.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/test_imread.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/test_xcf.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/test_formats.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/test_imsave.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/test_error.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/test_bad.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/test_png.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/test_bmp.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
creating build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/good.png -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/bit1.png -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/1_webp_a.webp -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/rois.zip -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/rgba.png -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/ghsystem_flame.jpg -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/star1.bmp -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/stack.tiff -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/T -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/0186-0099.roi -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/error.unknown -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/error.png -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/error.jpg -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/good -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/arange512_16bit.png -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/diag.xcf -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/palette_zero.png -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/py-installer-indexed.bmp -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/mono.tif -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/error.tif -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/error.webp -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
creating build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files
creating build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/TIFF
copying imread/tests/data/bad-files/TIFF/00r00.tiff -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/TIFF
creating build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/BMP
creating build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/BMP/00r
copying imread/tests/data/bad-files/BMP/00r/00r05.bmp -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/BMP/00r
copying imread/tests/data/bad-files/BMP/00r/00r04.bmp -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/BMP/00r
copying imread/tests/data/bad-files/BMP/00r/00r06.bmp -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/BMP/00r
copying imread/tests/data/bad-files/BMP/00r/00r03.bmp -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/BMP/00r
copying imread/tests/data/bad-files/BMP/00r/00r02.bmp -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/BMP/00r
copying imread/tests/data/bad-files/BMP/00r/00r00.bmp -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/BMP/00r
copying imread/tests/data/bad-files/BMP/00r/00r01.bmp -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/BMP/00r
creating build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM
creating build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/00r
copying imread/tests/data/bad-files/LSM/00r/00r03.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/00r
copying imread/tests/data/bad-files/LSM/00r/00r02.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/00r
copying imread/tests/data/bad-files/LSM/00r/00r00.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/00r
copying imread/tests/data/bad-files/LSM/00r/00r01.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/00r
creating build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/02r
copying imread/tests/data/bad-files/LSM/02r/02r00.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/02r
copying imread/tests/data/bad-files/LSM/02r/02r01.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/02r
copying imread/tests/data/bad-files/LSM/02r/02r02.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/02r
creating build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/01r
copying imread/tests/data/bad-files/LSM/01r/01r01.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/01r
copying imread/tests/data/bad-files/LSM/01r/01r00.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/01r
copying imread/tests/data/bad-files/LSM/01r/01r02.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/01r
creating build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/03w
copying imread/tests/data/bad-files/LSM/03w/03w03.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/03w
copying imread/tests/data/bad-files/LSM/03w/03w02.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/03w
copying imread/tests/data/bad-files/LSM/03w/03w00.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/03w
copying imread/tests/data/bad-files/LSM/03w/03w01.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/03w
running build_ext
building 'imread._imread' extension
creating build/temp.macosx-10.9-x86_64-3.7
creating build/temp.macosx-10.9-x86_64-3.7/imread
creating build/temp.macosx-10.9-x86_64-3.7/imread/lib
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -DPY_ARRAY_UNIQUE_SYMBOL=MahotasImread_PyArray_API_Symbol -DIMREAD_EXCLUDE_WEBP=1 -I/usr/local/include -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/Users/matinsaurralde/Library/Python/3.7/lib/python/site-packages/numpy/core/include -c imread/_imread.cpp -o build/temp.macosx-10.9-x86_64-3.7/imread/_imread.o -stdlib=libc++
In file included from imread/_imread.cpp:20:
imread/lib/base.h:138:46: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
void push_back(std::unique_ptr<Image>&& p) { content.push_back(p.release()); }
^
1 warning generated.
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -DPY_ARRAY_UNIQUE_SYMBOL=MahotasImread_PyArray_API_Symbol -DIMREAD_EXCLUDE_WEBP=1 -I/usr/local/include -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/Users/matinsaurralde/Library/Python/3.7/lib/python/site-packages/numpy/core/include -c imread/lib/formats.cpp -o build/temp.macosx-10.9-x86_64-3.7/imread/lib/formats.o -stdlib=libc++
In file included from imread/lib/formats.cpp:4:
In file included from imread/lib/formats.h:6:
imread/lib/base.h:138:46: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
void push_back(std::unique_ptr<Image>&& p) { content.push_back(p.release()); }
^
In file included from imread/lib/formats.cpp:9:
imread/lib/_tiff.h:41:37: warning: 'STKFormat::read_multi' hides overloaded virtual function [-Woverloaded-virtual]
std::unique_ptr<image_list> read_multi(byte_source* s, ImageFactory* f);
^
imread/lib/base.h:239:45: note: hidden overloaded virtual function 'ImageFormat::read_multi' declared here: different number of parameters (3 vs 2)
virtual std::unique_ptr<image_list> read_multi(byte_source* src, ImageFactory* factory, const options_map&) {
^
2 warnings generated.
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -DPY_ARRAY_UNIQUE_SYMBOL=MahotasImread_PyArray_API_Symbol -DIMREAD_EXCLUDE_WEBP=1 -I/usr/local/include -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/Users/matinsaurralde/Library/Python/3.7/lib/python/site-packages/numpy/core/include -c imread/lib/numpy.cpp -o build/temp.macosx-10.9-x86_64-3.7/imread/lib/numpy.o -stdlib=libc++
In file included from imread/lib/numpy.cpp:4:
In file included from imread/lib/numpy.h:8:
imread/lib/base.h:138:46: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
void push_back(std::unique_ptr<Image>&& p) { content.push_back(p.release()); }
^
1 warning generated.
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -DPY_ARRAY_UNIQUE_SYMBOL=MahotasImread_PyArray_API_Symbol -DIMREAD_EXCLUDE_WEBP=1 -I/usr/local/include -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/Users/matinsaurralde/Library/Python/3.7/lib/python/site-packages/numpy/core/include -c imread/lib/_bmp.cpp -o build/temp.macosx-10.9-x86_64-3.7/imread/lib/_bmp.o -stdlib=libc++
In file included from imread/lib/_bmp.cpp:5:
imread/lib/base.h:138:46: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
void push_back(std::unique_ptr<Image>&& p) { content.push_back(p.release()); }
^
imread/lib/_bmp.cpp:108:12: error: calling a private constructor of class 'std::__1::unique_ptr<Image, std::__1::default_delete<Image> >'
return output;
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:2535:3: note: declared private here
unique_ptr(unique_ptr&);
^
1 warning and 1 error generated.
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for imread
Running setup.py clean for imread
Failed to build imread
Installing collected packages: imread
Running setup.py install for imread ... error
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/xt/0v5vcz0s2dg46z8x7j6c4yf80000gn/T/pip-install-yzh0j2tc/imread/setup.py'"'"'; __file__='"'"'/private/var/folders/xt/0v5vcz0s2dg46z8x7j6c4yf80000gn/T/pip-install-yzh0j2tc/imread/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/xt/0v5vcz0s2dg46z8x7j6c4yf80000gn/T/pip-record-7oz3j6hu/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/imread
cwd: /private/var/folders/xt/0v5vcz0s2dg46z8x7j6c4yf80000gn/T/pip-install-yzh0j2tc/imread/
Complete output (125 lines):
sh: pkg-config: command not found
running install
running build
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-3.7
creating build/lib.macosx-10.9-x86_64-3.7/imread
copying imread/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/imread
copying imread/imread_version.py -> build/lib.macosx-10.9-x86_64-3.7/imread
copying imread/ijrois.py -> build/lib.macosx-10.9-x86_64-3.7/imread
copying imread/special.py -> build/lib.macosx-10.9-x86_64-3.7/imread
copying imread/imread.py -> build/lib.macosx-10.9-x86_64-3.7/imread
creating build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/test_tiff.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/test_rois.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/test_webp.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/test_jpeg.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/test_imread_from_blob.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/test_imread.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/test_xcf.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/test_formats.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/test_imsave.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/test_error.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/test_bad.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/test_png.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/test_bmp.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
creating build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/good.png -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/bit1.png -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/1_webp_a.webp -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/rois.zip -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/rgba.png -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/ghsystem_flame.jpg -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/star1.bmp -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/stack.tiff -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/T -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/0186-0099.roi -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/error.unknown -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/error.png -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/error.jpg -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/good -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/arange512_16bit.png -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/diag.xcf -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/palette_zero.png -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/py-installer-indexed.bmp -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/mono.tif -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/error.tif -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/error.webp -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
creating build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files
creating build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/TIFF
copying imread/tests/data/bad-files/TIFF/00r00.tiff -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/TIFF
creating build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/BMP
creating build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/BMP/00r
copying imread/tests/data/bad-files/BMP/00r/00r05.bmp -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/BMP/00r
copying imread/tests/data/bad-files/BMP/00r/00r04.bmp -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/BMP/00r
copying imread/tests/data/bad-files/BMP/00r/00r06.bmp -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/BMP/00r
copying imread/tests/data/bad-files/BMP/00r/00r03.bmp -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/BMP/00r
copying imread/tests/data/bad-files/BMP/00r/00r02.bmp -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/BMP/00r
copying imread/tests/data/bad-files/BMP/00r/00r00.bmp -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/BMP/00r
copying imread/tests/data/bad-files/BMP/00r/00r01.bmp -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/BMP/00r
creating build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM
creating build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/00r
copying imread/tests/data/bad-files/LSM/00r/00r03.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/00r
copying imread/tests/data/bad-files/LSM/00r/00r02.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/00r
copying imread/tests/data/bad-files/LSM/00r/00r00.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/00r
copying imread/tests/data/bad-files/LSM/00r/00r01.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/00r
creating build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/02r
copying imread/tests/data/bad-files/LSM/02r/02r00.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/02r
copying imread/tests/data/bad-files/LSM/02r/02r01.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/02r
copying imread/tests/data/bad-files/LSM/02r/02r02.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/02r
creating build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/01r
copying imread/tests/data/bad-files/LSM/01r/01r01.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/01r
copying imread/tests/data/bad-files/LSM/01r/01r00.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/01r
copying imread/tests/data/bad-files/LSM/01r/01r02.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/01r
creating build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/03w
copying imread/tests/data/bad-files/LSM/03w/03w03.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/03w
copying imread/tests/data/bad-files/LSM/03w/03w02.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/03w
copying imread/tests/data/bad-files/LSM/03w/03w00.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/03w
copying imread/tests/data/bad-files/LSM/03w/03w01.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/03w
running build_ext
building 'imread._imread' extension
creating build/temp.macosx-10.9-x86_64-3.7
creating build/temp.macosx-10.9-x86_64-3.7/imread
creating build/temp.macosx-10.9-x86_64-3.7/imread/lib
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -DPY_ARRAY_UNIQUE_SYMBOL=MahotasImread_PyArray_API_Symbol -DIMREAD_EXCLUDE_WEBP=1 -I/usr/local/include -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/Users/matinsaurralde/Library/Python/3.7/lib/python/site-packages/numpy/core/include -c imread/_imread.cpp -o build/temp.macosx-10.9-x86_64-3.7/imread/_imread.o -stdlib=libc++
In file included from imread/_imread.cpp:20:
imread/lib/base.h:138:46: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
void push_back(std::unique_ptr<Image>&& p) { content.push_back(p.release()); }
^
1 warning generated.
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -DPY_ARRAY_UNIQUE_SYMBOL=MahotasImread_PyArray_API_Symbol -DIMREAD_EXCLUDE_WEBP=1 -I/usr/local/include -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/Users/matinsaurralde/Library/Python/3.7/lib/python/site-packages/numpy/core/include -c imread/lib/formats.cpp -o build/temp.macosx-10.9-x86_64-3.7/imread/lib/formats.o -stdlib=libc++
In file included from imread/lib/formats.cpp:4:
In file included from imread/lib/formats.h:6:
imread/lib/base.h:138:46: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
void push_back(std::unique_ptr<Image>&& p) { content.push_back(p.release()); }
^
In file included from imread/lib/formats.cpp:9:
imread/lib/_tiff.h:41:37: warning: 'STKFormat::read_multi' hides overloaded virtual function [-Woverloaded-virtual]
std::unique_ptr<image_list> read_multi(byte_source* s, ImageFactory* f);
^
imread/lib/base.h:239:45: note: hidden overloaded virtual function 'ImageFormat::read_multi' declared here: different number of parameters (3 vs 2)
virtual std::unique_ptr<image_list> read_multi(byte_source* src, ImageFactory* factory, const options_map&) {
^
2 warnings generated.
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -DPY_ARRAY_UNIQUE_SYMBOL=MahotasImread_PyArray_API_Symbol -DIMREAD_EXCLUDE_WEBP=1 -I/usr/local/include -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/Users/matinsaurralde/Library/Python/3.7/lib/python/site-packages/numpy/core/include -c imread/lib/numpy.cpp -o build/temp.macosx-10.9-x86_64-3.7/imread/lib/numpy.o -stdlib=libc++
In file included from imread/lib/numpy.cpp:4:
In file included from imread/lib/numpy.h:8:
imread/lib/base.h:138:46: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
void push_back(std::unique_ptr<Image>&& p) { content.push_back(p.release()); }
^
1 warning generated.
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -DPY_ARRAY_UNIQUE_SYMBOL=MahotasImread_PyArray_API_Symbol -DIMREAD_EXCLUDE_WEBP=1 -I/usr/local/include -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/Users/matinsaurralde/Library/Python/3.7/lib/python/site-packages/numpy/core/include -c imread/lib/_bmp.cpp -o build/temp.macosx-10.9-x86_64-3.7/imread/lib/_bmp.o -stdlib=libc++
In file included from imread/lib/_bmp.cpp:5:
imread/lib/base.h:138:46: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
void push_back(std::unique_ptr<Image>&& p) { content.push_back(p.release()); }
^
imread/lib/_bmp.cpp:108:12: error: calling a private constructor of class 'std::__1::unique_ptr<Image, std::__1::default_delete<Image> >'
return output;
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:2535:3: note: declared private here
unique_ptr(unique_ptr&);
^
1 warning and 1 error generated.
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/xt/0v5vcz0s2dg46z8x7j6c4yf80000gn/T/pip-install-yzh0j2tc/imread/setup.py'"'"'; __file__='"'"'/private/var/folders/xt/0v5vcz0s2dg46z8x7j6c4yf80000gn/T/pip-install-yzh0j2tc/imread/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/xt/0v5vcz0s2dg46z8x7j6c4yf80000gn/T/pip-record-7oz3j6hu/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/imread Check the logs for full command output.
Я уже пробовал с pip3 install imread --no-cache-dir
, когда читал в другом месте, но не работал вообще. Я уже сделал brew install gcc
, но это не сработало. Я удалил и переустановил инструменты командной строки через терминал с xcode-select --install
, но все еще не работает.
Я могу прочитать в первых строках, что он говорит: «Требование уже выполнено», но я проверил, и imread определенно не установлены.
Среда :
macOS Catalina 10.15.4
python 3.7.7 ( Я попытался установить его в python 2.7, используя только pip, но все еще не работает).
версия pip = pip 20.1 из /Library/Frameworks/Python.framework/Versions /3.7/lib/python3.7/site-packages/pip (python 3.7)
если кто-нибудь сможет найти решение, я был бы очень признателен! Я часами искал решение и не могу его найти!