1

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

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

我收到以下错误:

在此处输入图像描述

我尝试了多个命令,包括 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 可用。但不知道为什么它没有安装。

4

1 回答 1

3

您正在输入:

conda install -c blaze py4j=0.10.4

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

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

Win-32版本在 conda 频道上可用conda-forge。所以你需要输入:

conda install -c conda-forge py4j=0.10.4
于 2017-03-16T16:15:53.807 回答