本文介绍了无法在新的MacBook Air M1上安装 pandas 的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近购买了一台新的MacBook Air M1.我在安装熊猫时遇到问题.新处理器是否有任何特定的东西可以阻止安装Pandas?

I recently got a new MacBook Air M1. I am having trouble installing Pandas. Is there anything specific to the new processor that would prevent installing Pandas?

推荐答案

也许为时已晚.但是,对我来说唯一有效的解决方案是从源代码安装,如果您不想使用rosetta2或moniconda

Maybe it is too late. But the only solution worked for me is installing from source if you do not want to use rosetta2 or moniconda

python3 -m pip install virtualenv
virtualenv -p python3.8 venv
source venv/bin/activate
pip install --upgrade pip
pip install numpy cython
git clone https://github.com/pandas-dev/pandas.git
cd pandas
python3 setup.py install

这篇关于无法在新的MacBook Air M1上安装 pandas 的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-18 21:25