Skip to content

Instantly share code, notes, and snippets.

@hprobotic
Created December 16, 2022 02:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hprobotic/172af97f2f49647999a1eef731b2a1ec to your computer and use it in GitHub Desktop.
Save hprobotic/172af97f2f49647999a1eef731b2a1ec to your computer and use it in GitHub Desktop.
Workaround on setup pandas on Apple silicon chip. Using pipenv

Initial Setup

MacOS Big Sur version 11.0.1
Python 3.9.2 installed using brew
pip 21.0.1
Pipenv to manage environment

Installing Pandas in Pipenv

Activate pipenv shell on the project folder (mine is called “pipenv-project”)

pipenv shell

The following commands are executed inside the pipenv shell.

pip install cython
git clone https://github.com/numpy/numpy.git --depth 1
cd numpy
pip install . --no-binary :all: --no-use-pep517
cd ..
git clone https://github.com/pandas-dev/pandas.git --depth 1
cd pandas
python setup.py install
cd ..

If you can't install from source. Just run

pip install cython
pip install numpy
pip install pandas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment