There was python 2.7 locally, but I installed python 3 using homebrew because I wanted to use python 3.
And I tried to install NumPy
$pip3 install numpy
The following error occurred when I ran with :
.
.
File "numpy/core/setup.py", line 293, check_types
"Cannot compile 'Python.h'.Perhaps you need to"\
SystemError: Cannot compile 'Python.h'.Perhaps you need to install python-dev | python-develop.
----------------------------------------
Command "/usr/local/opt/python3/bin/python3.5 -c "import setuptools, tokenize;__file__='/private/var/folders/3s/sq3306n57rgf5539s6bw67qm0000gn/T/pip-build-b_r_jvk6/numpy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/3s/sq3306n57rgf5539s6bw67qm0000gn/T/pip-vjiol_uu-record/install-record.txt --single-version-external-managed --compile "failed with error code 1 in/private/var/folder/3s/sq3306n57rgf5539s6bw67qm0000gn/T/pipe-build-b_r_jvk6/numpy
I was wondering if I should install python-dev, but I didn't know how to install it.
The environment is mac, python 3.5.Thank you for your cooperation.
python
Refer to the link in the comments
brew install homebrew/python/numpy -- with-python3
was successfully installed in .Thank you.
550 Who developed the "avformat-59.dll" that comes with FFmpeg?
545 Unable to install versioned in Google Colab
740 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
551 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
543 Uncaught (inpromise) Error on Electron: An object could not be cloned
© 2024 OneMinuteCode. All rights reserved.