码迷,mamicode.com
首页 > 系统相关 > 详细

ubuntu15.04 安装 pylab失败,先记下来,漫漫看

时间:2015-07-23 06:35:25      阅读:643      评论:0      收藏:0      [点我收藏+]

标签:

pydo@planpls:/var/python/web2py$ pip install pylab
Downloading/unpacking pylab
  Downloading pylab-0.1.3-py2.py3-none-any.whl
Downloading/unpacking networkx (from pylab)
  Downloading networkx-1.9.1-py2.py3-none-any.whl (1.2MB): 1.2MB downloaded
Downloading/unpacking pytz (from pylab)
  Downloading pytz-2015.4-py2.py3-none-any.whl (475kB): 475kB downloaded
Downloading/unpacking tornado (from pylab)
  Downloading tornado-4.2.1.tar.gz (434kB): 434kB downloaded
  Running setup.py (path:/tmp/pip-build-M6KpIR/tornado/setup.py) egg_info for package tornado
    
    no previously-included directories found matching ‘docs/build‘
    warning: no files found matching ‘tornado/test/README‘
Downloading/unpacking pandas (from pylab)
  Downloading pandas-0.16.2.tar.gz (4.9MB): 4.9MB downloaded
  Running setup.py (path:/tmp/pip-build-M6KpIR/pandas/setup.py) egg_info for package pandas
    Running from numpy source directory.
    /bin/sh: 1: svnversion: not found
    /tmp/easy_install-lTEvxV/numpy-1.9.2/numpy/distutils/system_info.py:1603: 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.
      warnings.warn(AtlasNotFoundError.__doc__)
    /tmp/easy_install-lTEvxV/numpy-1.9.2/numpy/distutils/system_info.py:1612: 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.
      warnings.warn(BlasNotFoundError.__doc__)
    /tmp/easy_install-lTEvxV/numpy-1.9.2/numpy/distutils/system_info.py:1615: 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.
      warnings.warn(BlasSrcNotFoundError.__doc__)
    /bin/sh: 1: svnversion: not found
    /tmp/easy_install-lTEvxV/numpy-1.9.2/numpy/distutils/system_info.py:1505: 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.
      warnings.warn(AtlasNotFoundError.__doc__)
    /tmp/easy_install-lTEvxV/numpy-1.9.2/numpy/distutils/system_info.py:1516: 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.
      warnings.warn(LapackNotFoundError.__doc__)
    /tmp/easy_install-lTEvxV/numpy-1.9.2/numpy/distutils/system_info.py:1519: 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.
      warnings.warn(LapackSrcNotFoundError.__doc__)
    /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: ‘define_macros‘
      warnings.warn(msg)
    non-existing path in ‘numpy/distutils‘: ‘site.cfg‘
    non-existing path in ‘numpy/f2py‘: ‘docs‘
    non-existing path in ‘numpy/f2py‘: ‘f2py.1‘
    non-existing path in ‘numpy/lib‘: ‘benchmarks‘
    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‘
    _configtest.c:1:5: warning: conflicting types for built-in function ‘exp’
     int exp (void);
         ^
    _configtest.o:在函数‘main’中:
    /tmp/easy_install-lTEvxV/numpy-1.9.2/_configtest.c:6:对‘exp’未定义的引用
    collect2: error: ld returned 1 exit status
    _configtest.c:1:5: warning: conflicting types for built-in function ‘exp’
     int exp (void);
         ^
    _configtest.c:1:20: fatal error: Python.h: 没有那个文件或目录
     #include <Python.h>
                        ^
    compilation terminated.
    _configtest.o:在函数‘main’中:
    /tmp/easy_install-lTEvxV/numpy-1.9.2/_configtest.c:6:对‘exp’未定义的引用
    collect2: error: ld returned 1 exit status
    _configtest.c:1:20: fatal error: Python.h: 没有那个文件或目录
     #include <Python.h>
                        ^
    compilation terminated.
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/tmp/pip-build-M6KpIR/pandas/setup.py", line 631, in <module>
        **setuptools_kwargs)
      File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
        _setup_distribution = dist = klass(attrs)
      File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 265, in __init__
        self.fetch_build_eggs(attrs[‘setup_requires‘])
      File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 310, in fetch_build_eggs
        replace_conflicting=True,
      File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 799, in resolve
        dist = best[req.key] = env.best_match(req, ws, installer)
      File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1049, in best_match
        return self.obtain(req, installer)
      File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1061, in obtain
        return installer(requirement)
      File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 377, in fetch_build_egg
        return cmd.easy_install(req)
      File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 646, in easy_install
        return self.install_item(spec, dist.location, tmpdir, deps)
      File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 676, in install_item
        dists = self.install_eggs(spec, download, tmpdir)
      File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 861, in install_eggs
        return self.build_and_install(setup_script, setup_base)
      File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1089, in build_and_install
        self.run_setup(setup_script, setup_base, args)
      File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1075, in run_setup
        run_setup(setup_script, args)
      File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 240, in run_setup
        raise
      File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__
        self.gen.throw(type, value, traceback)
      File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 193, in setup_context
        yield
      File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__
        self.gen.throw(type, value, traceback)
      File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 164, in save_modules
        saved_exc.resume()
      File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 139, in resume
        compat.reraise(type, exc, self._tb)
      File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 152, in save_modules
        yield saved
      File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 193, in setup_context
        yield
      File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 237, in run_setup
        DirectorySandbox(setup_dir).run(runner)
      File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 267, in run
        return func()
      File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 236, in runner
        _execfile(setup_script, ns)
      File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 46, in _execfile
        exec(code, globals, locals)
      File "/tmp/easy_install-lTEvxV/numpy-1.9.2/setup.py", line 251, in <module>
        """
      File "/tmp/easy_install-lTEvxV/numpy-1.9.2/setup.py", line 243, in setup_package
        else:
      File "/tmp/easy_install-lTEvxV/numpy-1.9.2/numpy/distutils/core.py", line 169, in setup
      File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
        dist.run_commands()
      File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
        self.run_command(cmd)
      File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
        cmd_obj.run()
      File "/usr/lib/python2.7/dist-packages/setuptools/command/bdist_egg.py", line 152, in run
        self.run_command("egg_info")
      File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
        self.distribution.run_command(command)
      File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
        cmd_obj.run()
      File "/tmp/easy_install-lTEvxV/numpy-1.9.2/numpy/distutils/command/egg_info.py", line 10, in run
      File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
        self.distribution.run_command(command)
      File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
        cmd_obj.run()
      File "/tmp/easy_install-lTEvxV/numpy-1.9.2/numpy/distutils/command/build_src.py", line 153, in run
      File "/tmp/easy_install-lTEvxV/numpy-1.9.2/numpy/distutils/command/build_src.py", line 170, in build_sources
      File "/tmp/easy_install-lTEvxV/numpy-1.9.2/numpy/distutils/command/build_src.py", line 329, in build_extension_sources
      File "/tmp/easy_install-lTEvxV/numpy-1.9.2/numpy/distutils/command/build_src.py", line 386, in generate_sources
      File "numpy/core/setup.py", line 432, in generate_config_h
        return pjoin(‘pandas‘, subdir, name + suffix)
      File "numpy/core/setup.py", line 42, in check_types
        min_numpy_ver = ‘1.7.0‘
      File "numpy/core/setup.py", line 293, in check_types
        for root, dirs, files in os.walk(‘pandas‘):
    SystemError: Cannot compile ‘Python.h‘. Perhaps you need to install python-dev|python-devel.
    Complete output from command python setup.py egg_info:
    Running from numpy source directory.

/bin/sh: 1: svnversion: not found

/tmp/easy_install-lTEvxV/numpy-1.9.2/numpy/distutils/system_info.py:1603: 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.

  warnings.warn(AtlasNotFoundError.__doc__)

/tmp/easy_install-lTEvxV/numpy-1.9.2/numpy/distutils/system_info.py:1612: 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.

  warnings.warn(BlasNotFoundError.__doc__)

/tmp/easy_install-lTEvxV/numpy-1.9.2/numpy/distutils/system_info.py:1615: 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.

  warnings.warn(BlasSrcNotFoundError.__doc__)

/bin/sh: 1: svnversion: not found

/tmp/easy_install-lTEvxV/numpy-1.9.2/numpy/distutils/system_info.py:1505: 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.

  warnings.warn(AtlasNotFoundError.__doc__)

/tmp/easy_install-lTEvxV/numpy-1.9.2/numpy/distutils/system_info.py:1516: 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.

  warnings.warn(LapackNotFoundError.__doc__)

/tmp/easy_install-lTEvxV/numpy-1.9.2/numpy/distutils/system_info.py:1519: 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.

  warnings.warn(LapackSrcNotFoundError.__doc__)

/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: ‘define_macros‘

  warnings.warn(msg)

non-existing path in ‘numpy/distutils‘: ‘site.cfg‘

non-existing path in ‘numpy/f2py‘: ‘docs‘

non-existing path in ‘numpy/f2py‘: ‘f2py.1‘

non-existing path in ‘numpy/lib‘: ‘benchmarks‘

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‘

_configtest.c:1:5: warning: conflicting types for built-in function ‘exp’

 int exp (void);

     ^

_configtest.o:在函数‘main’中:

/tmp/easy_install-lTEvxV/numpy-1.9.2/_configtest.c:6:对‘exp’未定义的引用

collect2: error: ld returned 1 exit status

_configtest.c:1:5: warning: conflicting types for built-in function ‘exp’

 int exp (void);

     ^

_configtest.c:1:20: fatal error: Python.h: 没有那个文件或目录

 #include <Python.h>

                    ^

compilation terminated.

_configtest.o:在函数‘main’中:

/tmp/easy_install-lTEvxV/numpy-1.9.2/_configtest.c:6:对‘exp’未定义的引用

collect2: error: ld returned 1 exit status

_configtest.c:1:20: fatal error: Python.h: 没有那个文件或目录

 #include <Python.h>

                    ^

compilation terminated.

Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/tmp/pip-build-M6KpIR/pandas/setup.py", line 631, in <module>

    **setuptools_kwargs)

  File "/usr/lib/python2.7/distutils/core.py", line 111, in setup

    _setup_distribution = dist = klass(attrs)

  File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 265, in __init__

    self.fetch_build_eggs(attrs[‘setup_requires‘])

  File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 310, in fetch_build_eggs

    replace_conflicting=True,

  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 799, in resolve

    dist = best[req.key] = env.best_match(req, ws, installer)

  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1049, in best_match

    return self.obtain(req, installer)

  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1061, in obtain

    return installer(requirement)

  File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 377, in fetch_build_egg

    return cmd.easy_install(req)

  File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 646, in easy_install

    return self.install_item(spec, dist.location, tmpdir, deps)

  File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 676, in install_item

    dists = self.install_eggs(spec, download, tmpdir)

  File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 861, in install_eggs

    return self.build_and_install(setup_script, setup_base)

  File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1089, in build_and_install

    self.run_setup(setup_script, setup_base, args)

  File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1075, in run_setup

    run_setup(setup_script, args)

  File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 240, in run_setup

    raise

  File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__

    self.gen.throw(type, value, traceback)

  File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 193, in setup_context

    yield

  File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__

    self.gen.throw(type, value, traceback)

  File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 164, in save_modules

    saved_exc.resume()

  File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 139, in resume

    compat.reraise(type, exc, self._tb)

  File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 152, in save_modules

    yield saved

  File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 193, in setup_context

    yield

  File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 237, in run_setup

    DirectorySandbox(setup_dir).run(runner)

  File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 267, in run

    return func()

  File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 236, in runner

    _execfile(setup_script, ns)

  File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 46, in _execfile

    exec(code, globals, locals)

  File "/tmp/easy_install-lTEvxV/numpy-1.9.2/setup.py", line 251, in <module>

    """

  File "/tmp/easy_install-lTEvxV/numpy-1.9.2/setup.py", line 243, in setup_package

    else:

  File "/tmp/easy_install-lTEvxV/numpy-1.9.2/numpy/distutils/core.py", line 169, in setup

  File "/usr/lib/python2.7/distutils/core.py", line 151, in setup

    dist.run_commands()

  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands

    self.run_command(cmd)

  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command

    cmd_obj.run()

  File "/usr/lib/python2.7/dist-packages/setuptools/command/bdist_egg.py", line 152, in run

    self.run_command("egg_info")

  File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command

    self.distribution.run_command(command)

  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command

    cmd_obj.run()

  File "/tmp/easy_install-lTEvxV/numpy-1.9.2/numpy/distutils/command/egg_info.py", line 10, in run

  File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command

    self.distribution.run_command(command)

  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command

    cmd_obj.run()

  File "/tmp/easy_install-lTEvxV/numpy-1.9.2/numpy/distutils/command/build_src.py", line 153, in run

  File "/tmp/easy_install-lTEvxV/numpy-1.9.2/numpy/distutils/command/build_src.py", line 170, in build_sources

  File "/tmp/easy_install-lTEvxV/numpy-1.9.2/numpy/distutils/command/build_src.py", line 329, in build_extension_sources

  File "/tmp/easy_install-lTEvxV/numpy-1.9.2/numpy/distutils/command/build_src.py", line 386, in generate_sources

  File "numpy/core/setup.py", line 432, in generate_config_h

    return pjoin(‘pandas‘, subdir, name + suffix)

  File "numpy/core/setup.py", line 42, in check_types

    min_numpy_ver = ‘1.7.0‘

  File "numpy/core/setup.py", line 293, in check_types

    for root, dirs, files in os.walk(‘pandas‘):

SystemError: Cannot compile ‘Python.h‘. Perhaps you need to install python-dev|python-devel.

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-M6KpIR/pandas
Traceback (most recent call last):
  File "/usr/bin/pip", line 9, in <module>
    load_entry_point(‘pip==1.5.6‘, ‘console_scripts‘, ‘pip‘)()
  File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 248, in main
    return command.main(cmd_args)
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 161, in main
    text = ‘\n‘.join(complete_log)
UnicodeDecodeError: ‘ascii‘ codec can‘t decode byte 0xe2 in position 72: ordinal not in range(128)
pydo@planpls:/var/python/web2py$ 

 

ubuntu15.04 安装 pylab失败,先记下来,漫漫看

标签:

原文地址:http://www.cnblogs.com/asworm/p/4669096.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!