Fastai通过Conda安装时出现404错误。

huangapple go评论99阅读模式
英文:

Fastai installation via Conda fails with a 404 error

问题

我正在尝试使用conda在我的计算机上安装fastai,但我遇到了一个错误。

我正在使用conda install -c fastchan fastai命令,并收到以下错误信息:

CondaHTTPError: URL地址https://conda.anaconda.org/fastchan/noarch/platformdirs-3.10.0-pyhd8ed1ab_0.conda返回HTTP 404 NOT FOUND。

请问我需要在我的端修复什么问题吗?看起来这是一个无效的URL,是否有解决方法?

英文:

I am trying to install fastai on my computer with conda, but I'm getting an error.

I am using conda install -c fastchan fastai and get:

> CondaHTTPError: HTTP 404 NOT FOUND for url
> <https://conda.anaconda.org/fastchan/noarch/platformdirs-3.10.0-pyhd8ed1ab_0.conda>

Is there something I need to fix on my end. It looks like it's a dead url, is there a workaround?

答案1

得分: 1

为解决这个问题,我已经从conda-forge(https://anaconda.org/conda-forge/platformdirs)安装了platformdirs,而不是fastchan(https://anaconda.org/fastchan/platformdirs/files):

conda install --channel conda-forge platformdirs

在安装完成platformdirs之后,我成功地安装了fastai

conda install -c fastchan fastai
英文:

To solve the issue, I have installed the platformdirs from conda-forge (https://anaconda.org/conda-forge/platformdirs) instead of fastchan (https://anaconda.org/fastchan/platformdirs/files):

conda install --channel conda-forge platformdirs

After the installation of platformdirs was completed, I could successfully install fastai:

conda install -c fastchan fastai

答案2

得分: 0

Conda正在被fastai库使用,但出现了错误。然而,似乎您提供的命令(conda install -c fastchan fastai)无效。Fastchan似乎不是fastai的有效频道,并且-c标志用于指定Conda应搜索包的频道。

您可以使用以下命令使用Conda安装fastai:

conda install -c pytorch -c fastai fastai

此命令同时指定了pytorch和fastai频道,以确保您获取正确的依赖项。

英文:

Conda is being used by the fastai library, but an error is occurring. However, it appears that the command you supplied (conda install -c fastchan fastai) is ineffective. Fastchan doesn't appear to be a valid channel for fastai, and the -c flag is used to specify the channel where Conda should search for packages.

You can use the following command to install fastai using Conda:

conda install -c pytorch -c fastai fastai

This command specifies both the pytorch and fastai channels to ensure that you're getting the correct dependencies

huangapple
  • 本文由 发表于 2023年8月5日 06:26:47
  • 转载请务必保留本文链接:https://go.coder-hub.com/76839399.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定