在Anaconda中安装Py4j时出错

时间:2017-03-16 11:12:52

标签: anaconda py4j

我无法在Anaconda-Spyder中安装Py4j。

我正在使用Windows 32位,Python 3.5和anaconda 4.1。

我收到以下错误:

enter image description here

我尝试了多个命令,包括 conda install py4j

我还运行以下命令:

C:\Users\360529>anaconda search -t conda py4j
Using Anaconda API: https://api.anaconda.org
Run 'anaconda show <USER/PACKAGE>' to get more details:
Packages:
     Name                      |  Version | Package Types   | Platforms
     ------------------------- |   ------ | --------------- | ---------------
     Voskrese/py4j             |      0.9 | conda           | win-64
                                          : Enables Python programs to dynamical
ly access arbitrary Java objects
     anaconda-cluster/py4j     |      0.9 | conda           | linux-64, osx-64
                                          : Enables Python programs to dynamical
ly access arbitrary Java objects
     ashahba/py4j              |   0.10.4 | conda           | linux-64
     auto/py4j                 |    0.8.1 | conda           | linux-64, linux-32

                                          : http://py4j.sourceforge.net/
     blaze/py4j                |      0.9 | conda           | linux-64, osx-64
                                          : Enables Python programs to dynamical
ly access arbitrary Java objects
     chdoig/py4j               |    0.8.1 | conda           | osx-64
                                          : Enables Python programs to dynamical
ly access arbitrary Java objects
     conda-cluster/py4j        |  0.8.2.1 | conda           | linux-64, osx-64
                                          : Enables Python programs to dynamical
ly access arbitrary Java objects
     conda-forge/py4j          |   0.10.4 | conda           | linux-64, win-32,
win-64, osx-64
     hargup/py4j               |          | conda           | linux-64
                                          : Enables Python programs to dynamical
ly access arbitrary Java objects
     marciorf/py4j             |  0.8.2.1 | conda           | linux-64
                                          : Enables Python programs to dynamical
ly access arbitrary Java objects
     mutirri/py4j              |  0.8.2.1 | conda           | linux-64
     quasiben/py4j             |   0.10.1 | conda           | linux-64, osx-64
     sotera/py4j               |      0.9 | conda           | linux-64
                                          : Enables Python programs to dynamical
ly access arbitrary Java objects
     tapatk/py4j               |   0.10.4 | conda           | linux-64, win-64
Found 14 packages

看起来可以使用Win-32bit版本的10.4。但不确定为什么不安装。

1 个答案:

答案 0 :(得分:3)

您正在输入:

conda install -c blaze py4j=0.10.4

这将尝试从anaconda频道blaze获取包py4j v0.10.4。但正如您从anaconda search py4j的输出中看到的那样:

conda-forge/py4j  |  0.10.4 | conda | linux-64, win-32, win-64, osx-64

conda频道Win-32上提供了conda-forge版本。所以你需要输入:

conda install -c conda-forge py4j=0.10.4