我无法在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。但不确定为什么不安装。
答案 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