我无法在Python3安装上安装pandas和其他模块。
系统:DS216j,DSM 6.1.3,Marvell Armada
按照以下说明操作: Python at Synology, how to get Python3 modules installed and where is Python2.7 installed?
我可以安装PIP,我也安装了virtualenv并在/ volume1 / Program / py3k中设置了ENV
当我运行pip3 install panda
时,我收到以下错误:
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-gebsk2ej/pandas/
完整输出:
Collecting pandas
Using cached pandas-0.20.3.tar.gz
Complete output from command python setup.py egg_info:
/bin/sh: svnversion: command not found
/bin/sh: svnversion: command not found
non-existing path in 'numpy/distutils': 'site.cfg'
Could not locate executable gfortran
Could not locate executable f95
Could not locate executable ifort
Could not locate executable ifc
Could not locate executable lf95
Could not locate executable pgfortran
Could not locate executable f90
Could not locate executable f77
Could not locate executable fort
Could not locate executable efort
Could not locate executable efc
Could not locate executable g77
Could not locate executable g95
Could not locate executable pathf95
don't know how to compile Fortran code on platform 'posix'
Running from numpy source directory.
/tmp/easy_install-2ovt2hrb/numpy-1.13.3/setup.py:367: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates
run_build = parse_setuppy_commands()
/tmp/easy_install-2ovt2hrb/numpy-1.13.3/numpy/distutils/system_info.py:572: UserWarning:
Atlas (http://math-atlas.sourceforge.net/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [atlas]) or by setting
the ATLAS environment variable.
self.calc_info()
/tmp/easy_install-2ovt2hrb/numpy-1.13.3/numpy/distutils/system_info.py:572: UserWarning:
Blas (http://www.netlib.org/blas/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [blas]) or by setting
the BLAS environment variable.
self.calc_info()
/tmp/easy_install-2ovt2hrb/numpy-1.13.3/numpy/distutils/system_info.py:572: UserWarning:
Blas (http://www.netlib.org/blas/) sources not found.
Directories to search for the sources can be specified in the
numpy/distutils/site.cfg file (section [blas_src]) or by setting
the BLAS_SRC environment variable.
self.calc_info()
/tmp/easy_install-2ovt2hrb/numpy-1.13.3/numpy/distutils/system_info.py:572: UserWarning:
Lapack (http://www.netlib.org/lapack/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [lapack]) or by setting
the LAPACK environment variable.
self.calc_info()
/tmp/easy_install-2ovt2hrb/numpy-1.13.3/numpy/distutils/system_info.py:572: UserWarning:
Lapack (http://www.netlib.org/lapack/) sources not found.
Directories to search for the sources can be specified in the
numpy/distutils/site.cfg file (section [lapack_src]) or by setting
the LAPACK_SRC environment variable.
self.calc_info()
/volume1/@appstore/py3k/usr/local/lib/python3.5/distutils/dist.py:261: UserWarning: Unknown distribution option: 'define_macros'
warnings.warn(msg)
Traceback (most recent call last):
File "/volume1/Programme/py3k/lib/python3.5/site-packages/setuptools/sandbox.py", line 158, in save_modules
yield saved
File "/volume1/Programme/py3k/lib/python3.5/site-packages/setuptools/sandbox.py", line 199, in setup_context
yield
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/contextlib.py", line 77, in __exit__
self.gen.throw(type, value, traceback)
File "/volume1/Programme/py3k/lib/python3.5/site-packages/setuptools/sandbox.py", line 67, in save_path
yield saved
File "/volume1/Programme/py3k/lib/python3.5/site-packages/setuptools/sandbox.py", line 199, in setup_context
yield
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/contextlib.py", line 77, in __exit__
self.gen.throw(type, value, traceback)
File "/volume1/Programme/py3k/lib/python3.5/site-packages/setuptools/sandbox.py", line 58, in save_argv
yield saved
File "/volume1/Programme/py3k/lib/python3.5/site-packages/setuptools/sandbox.py", line 199, in setup_context
yield
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/contextlib.py", line 77, in __exit__
self.gen.throw(type, value, traceback)
File "/volume1/Programme/py3k/lib/python3.5/site-packages/setuptools/sandbox.py", line 84, in override_temp
yield
File "/volume1/Programme/py3k/lib/python3.5/site-packages/setuptools/sandbox.py", line 199, in setup_context
yield
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/contextlib.py", line 77, in __exit__
self.gen.throw(type, value, traceback)
File "/volume1/Programme/py3k/lib/python3.5/site-packages/setuptools/sandbox.py", line 94, in pushd
yield saved
File "/volume1/Programme/py3k/lib/python3.5/site-packages/setuptools/sandbox.py", line 199, in setup_context
yield
File "/volume1/Programme/py3k/lib/python3.5/site-packages/setuptools/sandbox.py", line 254, in run_setup
_execfile(setup_script, ns)
File "/volume1/Programme/py3k/lib/python3.5/site-packages/setuptools/sandbox.py", line 49, in _execfile
exec(code, globals, locals)
File "/tmp/easy_install-2ovt2hrb/numpy-1.13.3/setup.py", line 392, in <module>
"""Custom distutils command subclassed from Cython.Distutils.build_ext
File "/tmp/easy_install-2ovt2hrb/numpy-1.13.3/setup.py", line 384, in setup_package
""" % src)
File "/tmp/easy_install-2ovt2hrb/numpy-1.13.3/numpy/distutils/core.py", line 169, in setup
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/distutils/core.py", line 148, in setup
dist.run_commands()
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/volume1/Programme/py3k/lib/python3.5/site-packages/setuptools/command/bdist_egg.py", line 160, in run
self.run_command("egg_info")
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/tmp/easy_install-2ovt2hrb/numpy-1.13.3/numpy/distutils/command/egg_info.py", line 26, in run
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/tmp/easy_install-2ovt2hrb/numpy-1.13.3/numpy/distutils/command/build_src.py", line 148, in run
File "/tmp/easy_install-2ovt2hrb/numpy-1.13.3/numpy/distutils/command/build_src.py", line 159, in build_sources
File "/tmp/easy_install-2ovt2hrb/numpy-1.13.3/numpy/distutils/command/build_src.py", line 294, in build_library_sources
File "/tmp/easy_install-2ovt2hrb/numpy-1.13.3/numpy/distutils/command/build_src.py", line 377, in generate_sources
File "numpy/core/setup.py", line 674, in get_mathlib_info
'pandas.tests.io.json',
RuntimeError: Broken toolchain: cannot link a simple C program
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-gebsk2ej/pandas/setup.py", line 729, in <module>
**setuptools_kwargs)
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/distutils/core.py", line 108, in setup
_setup_distribution = dist = klass(attrs)
File "/volume1/Programme/py3k/lib/python3.5/site-packages/setuptools/dist.py", line 335, in __init__
self.fetch_build_eggs(attrs['setup_requires'])
File "/volume1/Programme/py3k/lib/python3.5/site-packages/setuptools/dist.py", line 456, in fetch_build_eggs
replace_conflicting=True,
File "/volume1/Programme/py3k/lib/python3.5/site-packages/pkg_resources/__init__.py", line 863, in resolve
replace_conflicting=replace_conflicting
File "/volume1/Programme/py3k/lib/python3.5/site-packages/pkg_resources/__init__.py", line 1141, in best_match
return self.obtain(req, installer)
File "/volume1/Programme/py3k/lib/python3.5/site-packages/pkg_resources/__init__.py", line 1153, in obtain
return installer(requirement)
File "/volume1/Programme/py3k/lib/python3.5/site-packages/setuptools/dist.py", line 522, in fetch_build_egg
return cmd.easy_install(req)
File "/volume1/Programme/py3k/lib/python3.5/site-packages/setuptools/command/easy_install.py", line 672, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/contextlib.py", line 77, in __exit__
self.gen.throw(type, value, traceback)
File "/volume1/Programme/py3k/lib/python3.5/site-packages/setuptools/command/easy_install.py", line 634, in _tmpdir
yield str(tmpdir)
File "/volume1/Programme/py3k/lib/python3.5/site-packages/setuptools/command/easy_install.py", line 672, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/volume1/Programme/py3k/lib/python3.5/site-packages/setuptools/command/easy_install.py", line 698, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/volume1/Programme/py3k/lib/python3.5/site-packages/setuptools/command/easy_install.py", line 879, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/volume1/Programme/py3k/lib/python3.5/site-packages/setuptools/command/easy_install.py", line 1118, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/volume1/Programme/py3k/lib/python3.5/site-packages/setuptools/command/easy_install.py", line 1104, in run_setup
run_setup(setup_script, args)
File "/volume1/Programme/py3k/lib/python3.5/site-packages/setuptools/sandbox.py", line 257, in run_setup
raise
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/contextlib.py", line 77, in __exit__
self.gen.throw(type, value, traceback)
File "/volume1/Programme/py3k/lib/python3.5/site-packages/setuptools/sandbox.py", line 199, in setup_context
yield
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/contextlib.py", line 77, in __exit__
self.gen.throw(type, value, traceback)
File "/volume1/Programme/py3k/lib/python3.5/site-packages/setuptools/sandbox.py", line 182, in save_pkg_resources_state
yield saved
File "/volume1/Programme/py3k/lib/python3.5/site-packages/setuptools/sandbox.py", line 199, in setup_context
yield
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/contextlib.py", line 77, in __exit__
self.gen.throw(type, value, traceback)
File "/volume1/Programme/py3k/lib/python3.5/site-packages/setuptools/sandbox.py", line 170, in save_modules
saved_exc.resume()
File "/volume1/Programme/py3k/lib/python3.5/site-packages/setuptools/sandbox.py", line 145, in resume
six.reraise(type, exc, self._tb)
File "/volume1/Programme/py3k/lib/python3.5/site-packages/pkg_resources/_vendor/six.py", line 685, in reraise
raise value.with_traceback(tb)
File "/volume1/Programme/py3k/lib/python3.5/site-packages/setuptools/sandbox.py", line 158, in save_modules
yield saved
File "/volume1/Programme/py3k/lib/python3.5/site-packages/setuptools/sandbox.py", line 199, in setup_context
yield
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/contextlib.py", line 77, in __exit__
self.gen.throw(type, value, traceback)
File "/volume1/Programme/py3k/lib/python3.5/site-packages/setuptools/sandbox.py", line 67, in save_path
yield saved
File "/volume1/Programme/py3k/lib/python3.5/site-packages/setuptools/sandbox.py", line 199, in setup_context
yield
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/contextlib.py", line 77, in __exit__
self.gen.throw(type, value, traceback)
File "/volume1/Programme/py3k/lib/python3.5/site-packages/setuptools/sandbox.py", line 58, in save_argv
yield saved
File "/volume1/Programme/py3k/lib/python3.5/site-packages/setuptools/sandbox.py", line 199, in setup_context
yield
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/contextlib.py", line 77, in __exit__
self.gen.throw(type, value, traceback)
File "/volume1/Programme/py3k/lib/python3.5/site-packages/setuptools/sandbox.py", line 84, in override_temp
yield
File "/volume1/Programme/py3k/lib/python3.5/site-packages/setuptools/sandbox.py", line 199, in setup_context
yield
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/contextlib.py", line 77, in __exit__
self.gen.throw(type, value, traceback)
File "/volume1/Programme/py3k/lib/python3.5/site-packages/setuptools/sandbox.py", line 94, in pushd
yield saved
File "/volume1/Programme/py3k/lib/python3.5/site-packages/setuptools/sandbox.py", line 199, in setup_context
yield
File "/volume1/Programme/py3k/lib/python3.5/site-packages/setuptools/sandbox.py", line 254, in run_setup
_execfile(setup_script, ns)
File "/volume1/Programme/py3k/lib/python3.5/site-packages/setuptools/sandbox.py", line 49, in _execfile
exec(code, globals, locals)
File "/tmp/easy_install-2ovt2hrb/numpy-1.13.3/setup.py", line 392, in <module>
"""Custom distutils command subclassed from Cython.Distutils.build_ext
File "/tmp/easy_install-2ovt2hrb/numpy-1.13.3/setup.py", line 384, in setup_package
""" % src)
File "/tmp/easy_install-2ovt2hrb/numpy-1.13.3/numpy/distutils/core.py", line 169, in setup
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/distutils/core.py", line 148, in setup
dist.run_commands()
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/volume1/Programme/py3k/lib/python3.5/site-packages/setuptools/command/bdist_egg.py", line 160, in run
self.run_command("egg_info")
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/tmp/easy_install-2ovt2hrb/numpy-1.13.3/numpy/distutils/command/egg_info.py", line 26, in run
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/tmp/easy_install-2ovt2hrb/numpy-1.13.3/numpy/distutils/command/build_src.py", line 148, in run
File "/tmp/easy_install-2ovt2hrb/numpy-1.13.3/numpy/distutils/command/build_src.py", line 159, in build_sources
File "/tmp/easy_install-2ovt2hrb/numpy-1.13.3/numpy/distutils/command/build_src.py", line 294, in build_library_sources
File "/tmp/easy_install-2ovt2hrb/numpy-1.13.3/numpy/distutils/command/build_src.py", line 377, in generate_sources
File "numpy/core/setup.py", line 674, in get_mathlib_info
'pandas.tests.io.json',
RuntimeError: Broken toolchain: cannot link a simple C program
/bin/ash: /usr/local/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-ccache-gcc: No such file or directory
/bin/ash: /usr/local/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-ccache-gcc: No such file or directory
我之前是否需要安装其他软件包(svn,gfortran等)?如果是这样我该怎么办呢?
或者还有其他原因导致失败吗?
/编辑
我可以安装python-dateutil(whl)和pytz(egg),但不能安装pandas和numpy。对于pandas和numpy,可用的轮组仅适用于x86。
这是安装失败的原因吗?
如何为我系统中使用的ARM内核构建自己的方向盘?
编辑/
/ EDIT2
看起来我的上述假设是正确的。在...的帮助下 https://github.com/imrehg/arm-wheels 我可以安装numpy。不幸的是,熊猫还没有。所以我会尝试自己构建它。
EDIT2 /
感谢您的帮助! BMB