简体   繁体   English

使用Anaconda安装github版本的软件包

[英]Installing github version of package with Anaconda

I have Sympy installed with Anaconda , my version (of Sympy) is 0.7.6 . 我安装了SympyAnaconda ,我的版本(Sympy)是0.7.6。

I want to be able to use the git version of Sympy. 我希望能够使用Sympy的git版本。 Do you know how can I tell to Anaconda to substitute the 2 versions ? 你知道我怎么能告诉Anaconda替换这两个版本?

I've tried using the git clone command, but the Sympy folder from git and Anaconda doesn't look the same at all, so I can't replace one with another. 我尝试过使用git clone命令,但是git和Anaconda的Sympy文件夹看起来并不一样,所以我不能用另一个替换。

git clone git://github.com/sympy/sympy.git

Is there a command like : "conda update-git sympy" ? 有没有像“conda update-git sympy”这样的命令?

I found that answer, but I didn't understand how to do it. 我找到了答案,但我不明白该怎么做。

Possible to do "conda build" from github branch? 可以从github分支做“conda build”吗?

UPDATE : I've used the following command and it worked 更新 :我使用了以下命令,它工作正常

python setup.py develop

in my sympy directory. 在我的同情目录中。

Thanks to @asmeurer 感谢@asmeurer

my previous answer was based on long time ago experiance this is the correct proccess (that worked for me based on the latest anaconda on a windows machine) 我之前的回答是基于很久以前的经验,这是正确的过程(根据Windows机器上最新的anaconda为我工作)

I have updated the meta.yaml only with the following changes: changing to get the source from git including mpmath in build run and test removing some libraries of sympy that seemed to have been removed from the latest version 我更新了meta.yaml只有以下更改:更改以从构建运行中获取包含mpmath的git源代码并测试删除似乎已从最新版本中删除的一些sympy库

i have all the files in the following gist https://gist.github.com/srgrn/622cf61b03b7321503cc 我有以下要点中的所有文件https://gist.github.com/srgrn/622cf61b03b7321503cc

hope it helps 希望能帮助到你

you can try the following: 你可以尝试以下方法:

  1. download the conda recipes ( https://github.com/conda/conda-recipes ) 下载conda食谱( https://github.com/conda/conda-recipes
  2. update the meta.yaml for getting the source from github as explained in the stack overflow question you linked to. 更新meta.yaml以从github获取源,如您链接的堆栈溢出问题中所述。
  3. run conda build. 运行conda build。

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

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