【问题标题】:Error installing Py4j in Anaconda在 Anaconda 中安装 Py4j 时出错
【发布时间】:2017-03-16 11:12:52
【问题描述】:

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

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

我收到以下错误:

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

【问题讨论】:

    标签: anaconda py4j


    【解决方案1】:

    您正在输入:

    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
    

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

    conda install -c conda-forge py4j=0.10.4
    

    【讨论】:

      猜你喜欢
      • 2019-01-01
      • 2019-02-03
      • 2019-08-10
      • 1970-01-01
      • 1970-01-01
      • 2019-12-25
      • 1970-01-01
      • 1970-01-01
      • 2022-06-15
      相关资源
      最近更新 更多