【Python】Fastai安装指南
·
Fastai github原文地址:
https://github.com/fastai/fastai/blob/master/README.md#is-my-system-supported
Fastai v1 目前主要支持 Linux 系统,并需要 PyTorch v1 和 Python 3.6+。Windows 系统支持处于试验阶段,虽可正常运行但尚未经过全面测试。
首先尝试使用 pip 安装,可以使用下面的命令:
pip install fastai
但是这样在Windows上安装,会出现报错的情况:


为了确保安装过程顺利且高效,强烈建议使用 Miniconda 或 Mambaforge(推荐)作为环境管理工具。这两款轻量级发行版仅包含 conda 和 Python 核心组件,能避免与系统 Python 环境产生冲突。
conda install fastai::fastai


如果打算自行开发 fastai,或者想使用最新版本,可以使用可编辑安装(如果这样做,我们还应该使用 fastcore 的可编辑安装来搭配使用)。首先安装 PyTorch,然后:
git clone https://github.com/fastai/fastai
pip install -e "fastai[dev]"
更多推荐
所有评论(0)