常见问题常见问题   搜索搜索   会员列表会员列表   团队团队   注册注册    个人资料个人资料   登录查看您的站内信件登录查看您的站内信件   登录登录 

FreeBSD Python3.6 安装scipy失败记录贴

 
发表新文章   回复文章    FreeBSD China -> 初学指南
阅读上一个主题 :: 阅读下一个主题  
作者 留言
skywalk
老妖


注册时间: 2002-12-20
文章: 2290
来自: 自由的天空中-济宁

文章发表于: Tue 2017-04-11 23:20:18    发表主题: FreeBSD Python3.6 安装scipy失败记录贴 引用并回复

到目前为止,scipy还没有安装上。
不管是pip安装,还是ports安装,报错信息都是:
config.add_subpackage('scipy')
File "/usr/local/lib/python3.6/site-packages/numpy/distutils/misc_util.py", line 1001, in add_subpackage
caller_level = 2)
File "/usr/local/lib/python3.6/site-packages/numpy/distutils/misc_util.py", line 970, in get_subpackage
caller_level = caller_level + 1)
File "/usr/local/lib/python3.6/site-packages/numpy/distutils/misc_util.py", line 907, in _get_configuration_from_setup_py
config = setup_module.configuration(*args)
File "scipy/setup.py", line 9, in configuration
config.add_subpackage('cluster')
File "/usr/local/lib/python3.6/site-packages/numpy/distutils/misc_util.py", line 1001, in add_subpackage
caller_level = 2)
File "/usr/local/lib/python3.6/site-packages/numpy/distutils/misc_util.py", line 970, in get_subpackage
caller_level = caller_level + 1)
File "/usr/local/lib/python3.6/site-packages/numpy/distutils/misc_util.py", line 907, in _get_configuration_from_setup_py
config = setup_module.configuration(*args)
File "scipy/cluster/setup.py", line 17, in configuration
blas_opt = get_info('lapack_opt')
File "/usr/local/lib/python3.6/site-packages/numpy/distutils/system_info.py", line 380, in get_info
return cl().get_info(notfound_action)
File "/usr/local/lib/python3.6/site-packages/numpy/distutils/system_info.py", line 572, in get_info
self.calc_info()
File "/usr/local/lib/python3.6/site-packages/numpy/distutils/system_info.py", line 1553, in calc_info
blas_info = get_info('blas')
File "/usr/local/lib/python3.6/site-packages/numpy/distutils/system_info.py", line 380, in get_info
return cl().get_info(notfound_action)
File "/usr/local/lib/python3.6/site-packages/numpy/distutils/system_info.py", line 572, in get_info
self.calc_info()
File "/usr/local/lib/python3.6/site-packages/numpy/distutils/system_info.py", line 1677, in calc_info
lib = self.has_cblas(info)
File "/usr/local/lib/python3.6/site-packages/numpy/distutils/system_info.py", line 1721, in has_cblas
extra_postargs=info.get('extra_link_args', []))
File "/usr/local/lib/python3.6/distutils/ccompiler.py", line 734, in link_executable
debug, extra_preargs, extra_postargs, None, target_lang)
File "/usr/local/lib/python3.6/distutils/unixccompiler.py", line 198, in link
raise LinkError(msg)
distutils.errors.LinkError: Command "cc /tmp/tmpkglmchj2/tmp/tmpkglmchj2/source.o -L/usr/local/lib -lblas -o /tmp/tmpkglmchj2/a.out" failed with exit status 1
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/science/py-scipy
*** Error code 1

Stop.
make: stopped in /usr/ports/science/py-scipy

_________________
天马行空,我心飞翔!
钻石恒久远,天马永流传!
Email:skywalk,duan@gmail.com
www.quye.com
www.airoot.org/wp
返回页首
阅览会员资料 发送站内信件 发送电子邮件 浏览发表者的主页 MSN Messenger
anonymouscoward
道士


注册时间: 2013-08-08
文章: 868

文章发表于: Wed 2017-04-19 15:42:51    发表主题: 引用并回复

随手在一块 armv6 板上编译了个 lang/python36 自制山寨 pbi 然后跑了测试看看……

代码:
# file /Programs/python36-3.6.1/lib/python3.6/site-packages/scipy/stats/statlib.so
/Programs/python36-3.6.1/lib/python3.6/site-packages/scipy/stats/statlib.so: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, stripped

# ldd /Programs/python36-3.6.1/lib/python3.6/site-packages/scipy/stats/statlib.so
/Programs/python36-3.6.1/lib/python3.6/site-packages/scipy/stats/statlib.so:
        libpython3.6m.so.1.0 => /Programs/python36-3.6.1/lib/libpython3.6m.so.1.0 (0x20800000)
        libgfortran.so.3 => /Programs/python36-3.6.1/lib/gcc5/libgfortran.so.3 (0x2027f000)
        libm.so.5 => /Programs/python36-3.6.1/lib/libm.so.5 (0x20068000)
        libgcc_s.so.1 => /Programs/python36-3.6.1/lib/libgcc_s.so.1 (0x2008c000)
        libc.so.7 => /Programs/python36-3.6.1/lib/libc.so.7 (0x20100000)
        libthr.so.3 => /Programs/python36-3.6.1/lib/libthr.so.3 (0x200bd000)
        libintl.so.8 => /Programs/python36-3.6.1/lib/libintl.so.8 (0x200eb000)
        libutil.so.9 => /Programs/python36-3.6.1/lib/libutil.so.9 (0x20336000)

# /Programs/python36-3.6.1/bin/python3.6
Python 3.6.1 (default, Apr 18 2017, 11:54:23)
[GCC 4.2.1 Compatible FreeBSD Clang 4.0.0 (tags/RELEASE_400/final 297347)] on freebsd12
Type "help", "copyright", "credits" or "license" for more information.
>>> import scipy
>>> scipy.test()
Running unit tests for scipy
NumPy version 1.11.2
NumPy relaxed strides checking option: False
NumPy is installed in /Programs/python36-3.6.1/lib/python3.6/site-packages/numpy
SciPy version 0.19.0
SciPy is installed in /Programs/python36-3.6.1/lib/python3.6/site-packages/scipy
Python version 3.6.1 (default, Apr 18 2017, 11:54:23) [GCC 4.2.1 Compatible FreeBSD Clang 4.0.0 (tags/RELEASE_400/final 297347)]
nose version 1.3.7

... ...

----------------------------------------------------------------------
Ran 24188 tests in 7046.341s

FAILED (KNOWNFAIL=92, SKIP=1925, errors=4, failures=3)
<nose.result.TextTestResult run=24188 errors=4 failures=3>

_________________
匿懦的邮件列表
订阅: bsd-talk-subscribe@anonymous744wjcx.onion
退订: bsd-talk-unsubscribe@anonymous744wjcx.onion
返回页首
阅览会员资料 发送站内信件
从以前的文章开始显示:   
发表新文章   回复文章    FreeBSD China -> 初学指南 论坛时间为 北京时间
1页/共1

 
转跳到:  
不能发布新主题
不能在这个论坛回复主题
不能在这个论坛编辑自己的文章
不能在这个论坛删除自己的文章
不能在这个论坛发表投票


Powered by phpBB 2023cc © 2003 Opensource Steps; © 2003-2009 The FreeBSD Simplified Chinese Project
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Project Honey Pot and phpBB.cc
silvery-trainer
The FreeBSD China Project 网站: 中文计划网站 社区网站
The FreeBSD China Project 版权所有 (C) 1999 - 2003 网页设计版权 著作权和商标