在新的 MacBook Air M1 上安装 Pandas 时遇到问题 [英] Trouble installing Pandas on new MacBook Air M1

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

问题描述

我最近买了一台新的 MacBook Air M1.我在安装 Pandas 时遇到问题.是否有任何特定于新处理器的东西会阻止安装 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 --depth 1 https://github.com/pandas-dev/pandas.git
cd pandas
python3 setup.py install

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆