当前位置 : 主页 > 手机开发 > 其它 >

raspberry-pi3 – 关于rp3的conda问题:“找不到一些依赖项:blas * openblas”

来源:互联网 收集:自由互联 发布时间:2021-06-22
将我的RP3更新到内核版本/版本4.14.52-v7 /#1123后,尝试使用conda(arm71,v3.16.0)安装或更新pandas,numpy等软件包会导致错误: Error: Could not find some dependencies for package: blas * openblas 使用pip安装包仍然
将我的RP3更新到内核版本/版本4.14.52-v7 /#1123后,尝试使用conda(arm71,v3.16.0)安装或更新pandas,numpy等软件包会导致错误:

Error: Could not find some dependencies for <package>: blas * openblas

使用pip安装包仍然可以正常工作.

我的理解有两种方法.
我不是100%它解决你的问题,所以任何反馈都是有意义的.

(有些信息在这里找到:Scientific Python for Raspberry Pi)

我发现有些软件包可以使用apt-get:

sudo apt-get install python-numpy python-scipy python-pandas python-h5py

我意识到这不是严格的conda用法,但它可以做到这一点.

否则,您可以使用以下命令(这里的例子是scipy).
请注意,您可能会遇到软件包或python版本之间的兼容性问题.
某些软件包可能不适用于ARM

anaconda search -t conda scipy

这给你的东西:

Using binstar api site https://api.anaconda.org
Run 'anaconda show <USER/PACKAGE>' to get more details:
Packages:
     Name                      |  Version | Package Types   | Platforms      
     ------------------------- |   ------ | --------------- | ---------------
     Alges/scipy               |   0.19.1 | conda           | linux-64, win-64
                                          : Scientific Library for Python
     BioBuilds/scipy           |    1.0.0 | conda           | linux-ppc64le  
... some lines removed ... here is a result with a grep on 'arm'
     RaspberryPi/scipy         |   0.13.2 | conda           | linux-armv6l   
     alorenzo175/scipy         |   0.18.0 | conda           | linux-armv7l   
     compass/scipy             |   0.19.0 | conda           | linux-armv7l   
     poppy-project/scipy       |   0.17.0 | conda           | linux-armv7l   
     rpi/scipy                 |    1.0.0 | conda           | linux-armv6l, linux-armv7l

然后你可以这样做:

anaconda show rpi/scipy

这使:

Using binstar api site https://api.anaconda.org
Name:    scipy
Summary: Scientific Library for Python
Access:  public
Package Types:  conda
Versions:
   + 0.18.1
   + 0.19.0
   + 0.19.1
   + 1.0.0

To install this package with conda run:
     conda install --channel https://conda.anaconda.org/rpi scipy

然后你要做的就是执行上述命令:

conda install --channel https://conda.anaconda.org/rpi scipy

Fetching package metadata: ......
Solving package specifications: .
Error: Unsatisfiable package specifications.
Generating hint: 
[      COMPLETE      ]|#################################################################################################################################################################################################################| 100%


Hint: the following packages conflict with each other:
  - scipy
  - python 3.4*

Use 'conda info scipy' etc. to see the dependencies for each package.

打印一些信息:

conda info scipy
Fetching package metadata: ....

scipy 0.16.0 np19py34_1
-----------------------
file name   : scipy-0.16.0-np19py34_1.tar.bz2
name        : scipy
version     : 0.16.0
build number: 1
build string: np19py34_1
channel     : defaults
size        : 24.4 MB
date        : 2015-08-20
license     : BSD
md5         : a1f8618171817de092b818a3739ef95c
installed environments:
dependencies:
    blas * openblas
    numpy 1.9*
    openblas 0.2.14
    python 3.4*

scipy 0.16.0 np19py27_1
-----------------------
file name   : scipy-0.16.0-np19py27_1.tar.bz2
name        : scipy
version     : 0.16.0
build number: 1
build string: np19py27_1
channel     : defaults
size        : 25.1 MB
date        : 2015-08-20
license     : BSD
md5         : bc3882c6770d1dc7e3e5495266002d56
installed environments:
dependencies:
    blas * openblas
    numpy 1.9*
    openblas 0.2.14
    python 2.7*
网友评论