Comments (1)
@zhaoxu6666 你好!首先,非常感谢您提出的问题!针对您提出的问题,我们做了实际测试。实际测试脚本中引入了 pandas
和 scikit-learn
机器学习库,通过 pip download <libpackage>
命令我们可以发现 pandas
和 scikit-learn
的依赖如下:
pip download pandas
pip download scikit-learn
执行完后可以发现,pandas
主要依赖 numpy
、dateutil
、pytz
、six
等库;scikit-learn
主要依赖 numpy
、scipy
、joblib
等库。
参考 文档,通常只要把下载的依赖库解压与测试脚本放在同一目录下,并以 package 形式引入即可。
但是,实际测试来看,在 Raspberry pi 4 model B 上的确出现了问题截图中的异常,经查询资料发现,pandas
和 scikit-learn
安装使用除了上述已列出的第三方库外,还对与系统相关的 Cython
库有依赖(单独编译 pandas
和 scikit-learn
库会有相应提示),需要在具备 Cython
环境的基础上才能正确使用;此外,scikit-learn
依赖的 scipy
的构建和安装需要依赖发行版系统。要在没有预编译所需库软件包的操作系统上构建 SciPy
(numpy
同理),必须先构建然后静态链接到 Fortran 库 BLAS 和 LAPACK。
因此,对于 pandas
和 scikit-learn
库的使用不能参考普通第三方库引入的方式。这里提供一个建议:可以在我们官方提供的 Python runtime Dockerfile 的基础上直接把所需要的特殊第三方库(如 pandas
和 scikit-learn
)在打包、构建的容器镜像时引入。
相关资料可参考:
[1] https://stackoverflow.com/questions/14570011/explain-why-numpy-should-not-be-imported-from-source-directory
[2] https://stackoverflow.com/questions/7496547/does-python-scipy-need-blas
[3] https://docs.scipy.org/doc/scipy-1.1.0/reference/building/linux.html
from baetyl.
Related Issues (20)
- Switch runtime information to /var/lib/baetyl
- gen.sh目录结构不对
- Failed to build
- Move key.public to github secret
- Makefile:24: recipe for target 'baetyl' failed HOT 2
- 新手教程 HOT 3
- SSL certificate expired for baetyl.io HOT 1
- GPU share的支持如何使用 HOT 1
- 关于baetyl 2.2 支持Edgex Foundry 的疑问 HOT 2
- baetyl应用使用私用镜像仓库凭证的问题 HOT 1
- 关于gpu监控功能 HOT 1
- 请问2.2版本,有关和edgex foundry集成的部分在哪里呢? HOT 1
- baetyl可以单独使用吗,不和baetyl-cloud结合,是否有相关操作文档 HOT 1
- 【咨询】当前项目是什么状态,是否可以继续使用?
- baetyl 开源版本和企业版本有什么区别?只是开源版本没有dashboard 其它都是提供了?需要自己实现dashboard? HOT 1
- 【咨询】有关最多支持的边缘节点数量疑问
- 【功能建议】deployment 增加策略选择选项
- Feature suggestion: Add image preloading functionality.
- service deployment fails
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from baetyl.