简体   繁体   English

在 anaconda 中安装 fastai

[英]Installing fastai in anaconda

I'm trying to install fastai in anaconda on my laptop, but it's always returning solving environment:failed... for every thing I tried.我正在尝试在我的笔记本电脑上的 anaconda 中安装 fastai,但它总是返回solving environment:failed...对于我尝试的每一件事。

I tried using all of these: conda install -c fastai fastai , conda install -c fastai -c pytorch fastai , conda install -c fastai -c pytorch -c anaconda fastai gh anaconda .我尝试使用所有这些: conda install -c fastai fastaiconda install -c fastai fastai conda install -c fastai -c pytorch fastaiconda install -c fastai -c pytorch -c anaconda fastai gh anaconda In the case of the last one, it returned me that there was no 'gh' available to keep going with the installation.在最后一个的情况下,它告诉我没有可用的“gh”来继续安装。 I don't know what else to try to solve this, can anyone help me please?我不知道还有什么办法可以解决这个问题,有人可以帮我吗?

I was able to install fastai in Anaconda using the following command:我能够使用以下命令在 Anaconda 中安装 fastai:

conda install -c fastai -c pytorch -c anaconda -c conda-forge fastai gh anaconda

The package gh is available in conda-forge , and added that as the last channel to look for packages.包 gh 在conda- forge 中可用,并将其添加为查找包的最后一个渠道。 Here is a good SO post explaining the command.这是一个很好的SO 帖子,解释了该命令。

A few notes about my setup:关于我的设置的一些注意事项:

  • Windows 10视窗 10
  • Conda 4.8.3, Anaconda Navigator 1.9.12 (Installed last week) Conda 4.8.3、Anaconda Navigator 1.9.12(上周安装)

The steps I went through:我经历的步骤:

  1. I created a new environment in Navigator->Environments我在 Navigator->Environments 中创建了一个新环境
  2. Selected the new environment选择了新环境
  3. Had to install Conda Powershell in the new env, (Navigator indicates this)必须在新环境中安装 Conda Powershell,(导航器指出这一点)
  4. Opened a Conda Powershell from navigator从导航器打开一个 Conda Powershell
  5. Then ran the command above然后运行上面的命令

It took a while to complete and I was prompted with a question (see image) and entered 'y'花了一段时间才完成,我被提示一个问题(见图)并输入“y”

安装提示的问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM