Hi i've trie to install sklearn on macOS but i'm getting an error :
error: Command "gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -DUSE_VENDOR_BLAS=1 -Iscipy/sparse/linalg/dsolve/SuperLU/SRC -I/private/var/folders/8x/7jm2njhs7wb7vny_wchsj_q80000gn/T/pip-build-env-95_yvt7g/overlay/lib/python3.9/site-packages/numpy/core/include -c scipy/sparse/linalg/dsolve/SuperLU/SRC/clacon2.c -o build/temp.macosx-10.9-x86_64-3.9/scipy/sparse/linalg/dsolve/SuperLU/SRC/clacon2.o -MMD -MF build/temp.macosx-10.9-x86_64-3.9/scipy/sparse/linalg/dsolve/SuperLU/SRC/clacon2.o.d" failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for scipy
Failed to build scipy
ERROR: Could not build wheels for scipy which use PEP 517 and cannot be installed directly
I'm using python 3.9 and pip 20.2.4 .
According to your error, there is some problem in scipy
Solution
try removing Scipy and again Reinstalling Scipy
references
Scipy Documentation
recent releases
Scipy Pypi
Related
I am running pip3 install -U scikit-learn to install Scikit-learn however it returns an error:
Preparing metadata (pyproject.toml) ... error
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10 /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /var/folders/ks/4ncxyk05129fd_qqs3s5y6v00000gn/T/tmpjur9qur6
cwd: /private/var/folders/ks/4ncxyk05129fd_qqs3s5y6v00000gn/T/pip-install-a7o70faj/scikit-learn_2ee6feb334cf42fcae6b0bc63f18e9fb
Complete output (143 lines):
Partial import of sklearn during the build process.
C compiler: clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g
What can I do to fix this in order to sucessfully install Scikit-learn?
it worked for me.
you can see for more information here.
https://scikit-learn.org/stable/developers/advanced_installation.html#install-bleeding-edge
pip install --pre --extra-index https://pypi.anaconda.org/scipy-wheels-
nightly/simple scikit-learn
I am trying to install the pynbody package for python.
I run pip3 install pynbody, but the command fails.
It says:
ERROR: Could not build wheels for pynbody which use PEP 517 and cannot be installed directly
Before it gives the error:
error: Command "/usr/local/bin/gcc-10 -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I/private/var/folders/5q/xc22bbms0qjdgmpsv2188ydh0000gn/T/pip-build-env-q66c57aj/overlay/lib/python3.9/site-packages/numpy/core/include -I/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c pynbody/gravity/_gravity.c -o build/temp.macosx-10.9-x86_64-3.9/pynbody/gravity/_gravity.o -fopenmp" failed with exit status 1
I have MacOS 11.0.1 and python 3.9.0 and pip 20.2.4.
I can install other packages via pip such as numpy.
How can I install pynbody on MacOS?
(The same procedure worked on ubuntu.)
The Xcode developer tools are installed.
It happens when i tried to use command "pip install MetaTrader5" on Python 3. I'm using Mac OS. Is there compability issue here?. Because when i tried that pip install command. it throws error :
building 'MetaTrader5.C' extension
creating build/temp.macosx-10.13-x86_64-3.7
creating build/temp.macosx-10.13-x86_64-3.7/src
creating build/temp.macosx-10.13-x86_64-3.7/src/Interprocess
creating build/temp.macosx-10.13-x86_64-3.7/src/Connector
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -DUNICODE -Isrc -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/Users/galihlarasprakoso/Projects/Python/MetaTraderBot/venv/include -I/usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/MetaTrader.cpp -o build/temp.macosx-10.13-x86_64-3.7/src/MetaTrader.o
In file included from src/MetaTrader.cpp:6:
src/stdafx.h:16:10: fatal error: 'sdkddkver.h' file not found
#include <sdkddkver.h>
^~~~~~~~~~~~~
1 error generated.
error: command 'clang' failed with exit status 1
----------------------------------------
I believe you're working with a linux machine. Seems to me like the package was built specifically for windows environment.
Related:
SDKDDKVer.h missing, but WinSDK installed? (c++ header issues)
https://github.com/AudioNet/node-core-audio/issues/4
I've been looking for an answer to this issue but I couldn't find it, so here it is.
I'm trying to install tesserocr into MacOS X Mojave (Python 3.6) using:
$ pip install tesserocr
Then I get the following error:
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64
-I/usr/local/Cellar/tesseract/4.0.0/include -I/usr/local/Cellar/leptonica/1.77.0/include
-I/anaconda3/include/python3.6m -c tesserocr.cpp -o build/temp.macosx-10.7-
x86_64-3.6/tesserocr.o -std=c++11 -DUSE_STD_NAMESPACE
warning: include path for stdlibc++ headers not found; pass '-std=libc++' on the command line
to use the libc++ standard library instead [-Wstdlibcxx-not-found]
tesserocr.cpp:580:10: fatal error: 'utility' file not found
#include <utility>
1 warning and 1 error generated.
error: command 'gcc' failed with exit status 1
Failed building wheel for tesserocr
P.s. I have installed the latest version of Xcode and Xcode CLI.
Thanks.
I am trying to install aspell-python package for spell correction.
Facing problem while installing the package.
Error :
python setup.py install
running install
running build
running build_ext
building 'aspell' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c aspell.c -o build/temp.linux-i686-2.7/aspell.o
aspell.c:53:20: fatal error: aspell.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
GCC is already install version gcc (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2
libaspell15 is already install
Need to install sudo apt-get install libaspell-dev