简体   繁体   English

如何用conda安装Hotelling(R包)?

[英]How to install Hotelling (R package) with conda?

I am trying to install this package to use with R in conda: 我正在尝试安装此软件包以在conda中与R一起使用:

Hotelling 霍特林

However, I get this error message with the conda install: 但是,我在使用conda安装时收到此错误消息:

$ conda install Hotelling Fetching package metadata ................. $ conda install Hotelling正在获取软件包元数据.................

PackageNotFoundError: Packages missing in current channels: PackageNotFoundError:当前频道中缺少的软件包:

  • hotelling 霍特林

We have searched for the packages in the following channels: 我们在以下渠道中搜索了这些软件包:

It isn't available on any anaconda repos. 它在任何anaconda仓库中均不可用。 You can add it to a private repo and then install it using conda. 您可以将其添加到私人仓库中,然后使用conda进行安装。 Start an anaconda account and ensure you root-environment's conda/python is up to date ( conda update conda && conda update python ) 启动一个anaconda帐户,并确保您的根环境的conda / python是最新的( conda update conda && conda update python

In some directory and in your root environment, use 在某些目录和您的根环境中,使用

conda skeleton cran Hotelling

That will make a skeleton for building the package based on the CRAN release. 这将为构建基于CRAN版本的软件包奠定基础。 Then build that (note the anaconda package is all lower-case despite the CRAN name being Title case): 然后进行构建(注意,尽管CRAN名称为Title大小写,anaconda包均为小写):

conda build --R=<whatever_your_version_of_r_is> r-hotelling

Hopefully that will build. 希望那会建立。 If it's succesful it should give you a message that tells you how to upload to your account on anaconda-cloud 如果成功,它会给您一条消息,告诉您如何在anaconda-cloud上上传到您的帐户

anaconda upload <path_to_your_built_r-hotelling> -u <your_account_name>

Then install it: 然后安装:

conda install -c <your_account_name> r-hotelling

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

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