Hi there,
I need to upload data to synapse via synapseclient and synapseutils. This two modules require pandas. But when I used pip install pandas, I got error as follow:
[DaiR.9PW21S2] ? pip install pandas
Collecting pandas
Using cached https://files.pythonhosted.org/packages/e9/ad/5e92ba493eff96055a23b0a1323a9a803af71ec859ae3243ced86fcbd0a4/pandas-0.23.4.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 g77
Could not locate executable f77
Could not locate executable ifort
Could not locate executable ifl
Could not locate executable f90
Could not locate executable efl
Could not locate executable gfortran
Could not locate executable f95
Could not locate executable g95
don't know how to compile Fortran code on platform 'posix'
/bin/bash: gcc: command not found
/bin/bash: gcc: command not found
Running from numpy source directory.
/tmp/easy_install-fgin0h69/numpy-1.15.4/setup.py:378: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates
run_build = parse_setuppy_commands()
/tmp/easy_install-fgin0h69/numpy-1.15.4/numpy/distutils/system_info.py:625: 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-fgin0h69/numpy-1.15.4/numpy/distutils/system_info.py:625: 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-fgin0h69/numpy-1.15.4/numpy/distutils/system_info.py:625: 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-fgin0h69/numpy-1.15.4/numpy/distutils/system_info.py:625: 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-fgin0h69/numpy-1.15.4/numpy/distutils/system_info.py:625: 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()
/usr/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'define_macros'
warnings.warn(msg)
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/setuptools/sandbox.py", line 154, in save_modules
yield saved
File "/usr/lib/python3.6/site-packages/setuptools/sandbox.py", line 195, in setup_context
yield
File "/usr/lib/python3.6/site-packages/setuptools/sandbox.py", line 250, in run_setup
_execfile(setup_script, ns)
File "/usr/lib/python3.6/site-packages/setuptools/sandbox.py", line 45, in _execfile
exec(code, globals, locals)
File "/tmp/easy_install-fgin0h69/numpy-1.15.4/setup.py", line 403, in
File "/tmp/easy_install-fgin0h69/numpy-1.15.4/setup.py", line 395, in setup_package
self.py_modules_dict = {}
File "/tmp/easy_install-fgin0h69/numpy-1.15.4/numpy/distutils/core.py", line 169, in setup
File "/usr/lib/python3.6/site-packages/setuptools/__init__.py", line 143, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.6/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.6/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/lib/python3.6/site-packages/setuptools/command/bdist_egg.py", line 163, in run
self.run_command("egg_info")
File "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/tmp/easy_install-fgin0h69/numpy-1.15.4/numpy/distutils/command/egg_info.py", line 26, in run
File "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/tmp/easy_install-fgin0h69/numpy-1.15.4/numpy/distutils/command/build_src.py", line 148, in run
File "/tmp/easy_install-fgin0h69/numpy-1.15.4/numpy/distutils/command/build_src.py", line 159, in build_sources
File "/tmp/easy_install-fgin0h69/numpy-1.15.4/numpy/distutils/command/build_src.py", line 294, in build_library_sources
File "/tmp/easy_install-fgin0h69/numpy-1.15.4/numpy/distutils/command/build_src.py", line 377, in generate_sources
File "numpy/core/setup.py", line 666, in get_mathlib_info
'subdir': 'io/msgpack'
RuntimeError: Broken toolchain: cannot link a simple C program
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-install-lzvcu8qb/pandas/setup.py", line 749, in
**setuptools_kwargs)
File "/usr/lib/python3.6/site-packages/setuptools/__init__.py", line 142, in setup
_install_setup_requires(attrs)
File "/usr/lib/python3.6/site-packages/setuptools/__init__.py", line 137, in _install_setup_requires
dist.fetch_build_eggs(dist.setup_requires)
File "/usr/lib/python3.6/site-packages/setuptools/dist.py", line 586, in fetch_build_eggs
replace_conflicting=True,
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 780, in resolve
replace_conflicting=replace_conflicting
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1063, in best_match
return self.obtain(req, installer)
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1075, in obtain
return installer(requirement)
File "/usr/lib/python3.6/site-packages/setuptools/dist.py", line 653, in fetch_build_egg
return cmd.easy_install(req)
File "/usr/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 679, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/usr/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 705, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/usr/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 890, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/usr/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 1158, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/usr/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 1144, in run_setup
run_setup(setup_script, args)
File "/usr/lib/python3.6/site-packages/setuptools/sandbox.py", line 253, in run_setup
raise
File "/usr/lib/python3.6/contextlib.py", line 99, in __exit__
self.gen.throw(type, value, traceback)
File "/usr/lib/python3.6/site-packages/setuptools/sandbox.py", line 195, in setup_context
yield
File "/usr/lib/python3.6/contextlib.py", line 99, in __exit__
self.gen.throw(type, value, traceback)
File "/usr/lib/python3.6/site-packages/setuptools/sandbox.py", line 166, in save_modules
saved_exc.resume()
File "/usr/lib/python3.6/site-packages/setuptools/sandbox.py", line 141, in resume
six.reraise(type, exc, self._tb)
File "/usr/lib/python3.6/site-packages/setuptools/_vendor/six.py", line 685, in reraise
raise value.with_traceback(tb)
File "/usr/lib/python3.6/site-packages/setuptools/sandbox.py", line 154, in save_modules
yield saved
File "/usr/lib/python3.6/site-packages/setuptools/sandbox.py", line 195, in setup_context
yield
File "/usr/lib/python3.6/site-packages/setuptools/sandbox.py", line 250, in run_setup
_execfile(setup_script, ns)
File "/usr/lib/python3.6/site-packages/setuptools/sandbox.py", line 45, in _execfile
exec(code, globals, locals)
File "/tmp/easy_install-fgin0h69/numpy-1.15.4/setup.py", line 403, in
File "/tmp/easy_install-fgin0h69/numpy-1.15.4/setup.py", line 395, in setup_package
self.py_modules_dict = {}
File "/tmp/easy_install-fgin0h69/numpy-1.15.4/numpy/distutils/core.py", line 169, in setup
File "/usr/lib/python3.6/site-packages/setuptools/__init__.py", line 143, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.6/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.6/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/lib/python3.6/site-packages/setuptools/command/bdist_egg.py", line 163, in run
self.run_command("egg_info")
File "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/tmp/easy_install-fgin0h69/numpy-1.15.4/numpy/distutils/command/egg_info.py", line 26, in run
File "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/tmp/easy_install-fgin0h69/numpy-1.15.4/numpy/distutils/command/build_src.py", line 148, in run
File "/tmp/easy_install-fgin0h69/numpy-1.15.4/numpy/distutils/command/build_src.py", line 159, in build_sources
File "/tmp/easy_install-fgin0h69/numpy-1.15.4/numpy/distutils/command/build_src.py", line 294, in build_library_sources
File "/tmp/easy_install-fgin0h69/numpy-1.15.4/numpy/distutils/command/build_src.py", line 377, in generate_sources
File "numpy/core/setup.py", line 666, in get_mathlib_info
'subdir': 'io/msgpack'
RuntimeError: Broken toolchain: cannot link a simple C program
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-lzvcu8qb/pandas/
--------------------------------------------------
Can anybody help me?
Thx a lot
Created by Chao Chen AlexChen Hi Kimyen,
Problem solved. It is my server problem. Thanks!
Hello @AlexChen
`numpy` is a `pandas` dependency. In the output you provided above, you are trying to install `pandas` in Python 3.6. Which will install the dependency `numpy`. However, the installer can't find the binary for your platform and was trying to build `numpy` from source. But your machine also is not setup to build Python packages from source. Please let us know what OS (and the OS version) that you are using, so that we can better assist you.
You may get better answer from posting in the pandas github repo: https://github.com/pandas-dev/pandas/issues
More info on installing `numpy`: https://docs.scipy.org/doc/numpy/user/install.html