The new macbooks with M1 Apple Silicon chips are fast and have superior battery life. However, setting up a development environment on these new models that relies on Pandas can be a pain. After going through Github issues and Stack Overflow pages, I hope this article can save time for those who would like to use Pipenv and Pandas on their M1 laptops.
Installing Pandas in Pipenv
Activate pipenv shell on the project folder (mine is called “pipenv-project”)
The following commands are executed inside the pipenv shell.
pip install cython
git clone https://github.com/numpy/numpy.git
pip install . --no-binary :all: --no-use-pep517
git clone https://github.com/pandas-dev/pandas.git
python setup.py install
Once completed, you can validate the installation by opening python shell (inside pipenv) and importing the two packages.
Note: The disadvantage of this method is that pipenv is not tracking these two packages.