Can't install Pandas on Mac M1
See original GitHub issueEnvironment Mac M1 Python 3.8.2 created using Xcode Command Line Tools for M1 Macs
On trying to install pandas, it failed and it returns very long erorr message starts as below
(py382tf) mgd@MGD ~ % pip install pandas Collecting pandas Using cached https://files.pythonhosted.org/packages/8a/6f/7fcef020b5b305862cacf376183eaa0f907f2fa42f0b687b2a9a2c6cda4d/pandas-1.2.3.tar.gz Installing build dependencies β¦ error ERROR: Command errored out with exit status 1: command: /Users/mgd/py382tf/bin/python3 /Users/mgd/py382tf/lib/python3.8/site-packages/pip install --ignore-installed --no-user --prefix /private/var/folders/px/zqhcsbbx4yxfmhc7927tnfj00000gn/T/pip-build-env-orb4vxpv/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple β setuptools wheel βCython>=0.29.21,β€οΈβ βnumpy==1.16.5; python_version==ββ'ββ3.7ββ'ββ and platform_system!=β"βββAIXβββ"ββ βnumpy==1.17.3; python_version==ββ'ββ3.8ββ'ββ and platform_system!=β"βββAIXβββ"ββ βnumpy==1.16.5; python_version==ββ'ββ3.7ββ'ββ and platform_system==β"βββAIXβββ"ββ βnumpy==1.17.3; python_version==ββ'ββ3.8ββ'ββ and platform_system==β"βββAIXβββ"ββ βnumpy; python_version>=ββ'ββ3.9ββ'βββ cwd: None Complete output (4451 lines): Ignoring numpy: markers βpython_version == β3.7β and platform_system != βAIXββ donβt match your environment Ignoring numpy: markers βpython_version == β3.7β and platform_system == βAIXββ donβt match your environment Ignoring numpy: markers βpython_version == β3.8β and platform_system == βAIXββ donβt match your environment Ignoring numpy: markers βpython_version >= β3.9ββ donβt match your environment Collecting setuptools Using cached https://files.pythonhosted.org/packages/9e/d4/b99a960314121a003e9f39c61dfde01a1010bb47661e193a7722f7f32d52/setuptools-54.2.0-py3-none-any.whl Collecting wheel Using cached https://files.pythonhosted.org/packages/65/63/39d04c74222770ed1589c0eaba06c05891801219272420b40311cd60c880/wheel-0.36.2-py2.py3-none-any.whl Collecting Cython<3,>=0.29.21 Using cached https://files.pythonhosted.org/packages/9e/98/bff39b3acaebbc6102be71797f655bbe60738f7339db4ad7bd0772c08daf/Cython-0.29.22-py2.py3-none-any.whl Collecting numpy==1.17.3 Using cached https://files.pythonhosted.org/packages/b6/d6/be8f975f5322336f62371c9abeb936d592c98c047ad63035f1b38ae08efe/numpy-1.17.3.zip Installing collected packages: setuptools, wheel, Cython, numpy Running setup.py install for numpy: started Running setup.py install for numpy: finished with status βerrorβ ERROR: Command errored out with exit status 1: command: /Users/mgd/py382tf/bin/python3 -u -c βimport sys, setuptools, tokenize; sys.argv[0] = β"β"β/private/var/folders/px/zqhcsbbx4yxfmhc7927tnfj00000gn/T/pip-install-x_x_2bsb/numpy/setup.pyββ'ββ; file=ββ'ββ/private/var/folders/px/zqhcsbbx4yxfmhc7927tnfj00000gn/T/pip-install-x_x_2bsb/numpy/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/px/zqhcsbbx4yxfmhc7927tnfj00000gn/T/pip-record-73r6zlw4/install-record.txt --single-version-externally-managed --prefix /private/var/folders/px/zqhcsbbx4yxfmhc7927tnfj00000gn/T/pip-build-env-orb4vxpv/overlay --compile --install-headers /Users/mgd/py382tf/include/site/python3.8/numpy cwd: /private/var/folders/px/zqhcsbbx4yxfmhc7927tnfj00000gn/T/pip-install-x_x_2bsb/numpy/ Complete output (4428 lines): Running from numpy source directory.
Note: if you need reliable uninstall behavior, then install
with pip instead of using `setup.py install`:
- `pip install .` (from a git repo or downloaded source
release)
- `pip install numpy` (last NumPy release on PyPi)
blas_opt_info:
blas_mkl_info:
customize UnixCCompiler
libraries mkl_rt not found in ['/Users/mgd/py382tf/lib', '/usr/lib']
NOT AVAILABLE
blis_info:
customize UnixCCompiler
libraries blis not found in ['/Users/mgd/py382tf/lib', '/usr/lib']
NOT AVAILABLE
openblas_info:
customize UnixCCompiler
customize UnixCCompiler
libraries openblas not found in ['/Users/mgd/py382tf/lib', '/usr/lib']
NOT AVAILABLE
atlas_3_10_blas_threads_info:
Setting PTATLAS=ATLAS
customize UnixCCompiler
libraries tatlas not found in ['/Users/mgd/py382tf/lib', '/usr/lib']
NOT AVAILABLE
atlas_3_10_blas_info:
customize UnixCCompiler
libraries satlas not found in ['/Users/mgd/py382tf/lib', '/usr/lib']
NOT AVAILABLE
atlas_blas_threads_info:
Setting PTATLAS=ATLAS
customize UnixCCompiler
libraries ptf77blas,ptcblas,atlas not found in ['/Users/mgd/py382tf/lib', '/usr/lib']
NOT AVAILABLE
atlas_blas_info:
customize UnixCCompiler
libraries f77blas,cblas,atlas not found in ['/Users/mgd/py382tf/lib', '/usr/lib']
NOT AVAILABLE
accelerate_info:
customize UnixCCompiler
libraries accelerate not found in ['/Users/mgd/py382tf/lib', '/usr/lib']
Library accelerate was not found. Ignoring
customize UnixCCompiler
libraries veclib not found in ['/Users/mgd/py382tf/lib', '/usr/lib']
Library veclib was not found. Ignoring
Issue Analytics
- State:
- Created 2 years ago
- Comments:34 (14 by maintainers)
Hello,
I faced the same problem, and solved it by doing the following steps:
This should fix the issue.
I installed pandas in my M1 Macbook Pro today.
pip3 install pandas
It took a while but not more than 3 minutes though. It got successfully installed.
Hereβs my log