anaconda/conda - install a specific package version

匿名 (未验证) 提交于 2019-12-03 08:35:02

问题:

I want to install the 'rope' package in my current active environment using conda. Currently, the following 'rope' versions are available:

(data_downloader)user@user-ThinkPad ~/code/data_downloader $ conda search rope Using Anaconda Cloud api site https://api.anaconda.org Fetching package metadata: .... cached-property              1.2.0                    py27_0  defaults                                      1.2.0                    py34_0  defaults                                      1.2.0                    py35_0  defaults                                      1.3.0                    py27_0  defaults                                      1.3.0                    py34_0  defaults                                      1.3.0                    py35_0  defaults         rope                         0.9.4                    py26_0  defaults                                      0.9.4                    py27_0  defaults                                      0.9.4                    py33_0  defaults                                      0.9.4                    py34_0  defaults                                      0.9.4                    py26_1  defaults                                      0.9.4                    py27_1  defaults                                      0.9.4                    py33_1  defaults                                      0.9.4                    py34_1  defaults                                   .  0.9.4                    py35_1  defaults         

I would like to install the following one:

                         1.3.0                    py35_0  defaults         

I've tried all sorts of permutations of 'conda install' which I'm not going to list here because none of them are correct.

I am also not sure what the py35_0 is (I'm assuming this is the version of the python against which the package was built?) and I also don't know what 'defaults' means?

回答1:

There is no version 1.3.0 for rope. 1.3.0 refers to the package cached-property. The highest available version of rope is 0.9.4.

You can install different versions with conda install package=version. But in this case there is only one version of rope so you don't need that.

The reason you see the cached-property in this listing is because it contains the string "rope": "cached-p rope erty"

py35_0 means that you need python version 3.5 for this specific version. If you only have python3.4 and the package is only for version 3.5 you cannot install it with conda.

I am not quite sure on the defaults either. It should be an indication that this package is inside the default conda channel.



易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!