开发者社区> 问答> 正文

scipy安装问题遇到以下问题不能继续【结贴】创建了1G的交换分区搞定了

compile options: '-D__STDC_FORMAT_MACROS=1 -Iscipy/sparse/sparsetools -I/usr/local/lib/python2.7/site-packages/numpy-1.9.2-py2.7-linux-x86_64.egg/numpy/core/include -I/usr/local/include/python2.7 -c'
    g++: scipy/sparse/sparsetools/sparsetools.cxx
    In file included from /usr/local/lib/python2.7/site-packages/numpy-1.9.2-py2.7-linux-x86_64.egg/numpy/core/include/numpy/ndarraytypes.h:1804,
                     from /usr/local/lib/python2.7/site-packages/numpy-1.9.2-py2.7-linux-x86_64.egg/numpy/core/include/numpy/ndarrayobject.h:17,
                     from scipy/sparse/sparsetools/sparsetools.cxx:34:
    /usr/local/lib/python2.7/site-packages/numpy-1.9.2-py2.7-linux-x86_64.egg/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"
    g++: scipy/sparse/sparsetools/csr.cxx
    In file included from /usr/local/lib/python2.7/site-packages/numpy-1.9.2-py2.7-linux-x86_64.egg/numpy/core/include/numpy/ndarraytypes.h:1804,
                     from /usr/local/lib/python2.7/site-packages/numpy-1.9.2-py2.7-linux-x86_64.egg/numpy/core/include/numpy/ndarrayobject.h:17,
                     from scipy/sparse/sparsetools/sparsetools.h:5,
                     from scipy/sparse/sparsetools/csr.cxx:4:
    /usr/local/lib/python2.7/site-packages/numpy-1.9.2-py2.7-linux-x86_64.egg/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"
    g++: scipy/sparse/sparsetools/bsr.cxx
    In file included from /usr/local/lib/python2.7/site-packages/numpy-1.9.2-py2.7-linux-x86_64.egg/numpy/core/include/numpy/ndarraytypes.h:1804,
                     from /usr/local/lib/python2.7/site-packages/numpy-1.9.2-py2.7-linux-x86_64.egg/numpy/core/include/numpy/ndarrayobject.h:17,
                     from scipy/sparse/sparsetools/sparsetools.h:5,
                     from scipy/sparse/sparsetools/bsr.cxx:4:
    /usr/local/lib/python2.7/site-packages/numpy-1.9.2-py2.7-linux-x86_64.egg/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"
    g++: Internal error: Killed (program cc1plus)
    Please submit a full bug report.
    See <://bbs.aliyun.com> for instructions.
    In file included from /usr/local/lib/python2.7/site-packages/numpy-1.9.2-py2.7-linux-x86_64.egg/numpy/core/include/numpy/ndarraytypes.h:1804,
                     from /usr/local/lib/python2.7/site-packages/numpy-1.9.2-py2.7-linux-x86_64.egg/numpy/core/include/numpy/ndarrayobject.h:17,
                     from scipy/sparse/sparsetools/sparsetools.h:5,
                     from scipy/sparse/sparsetools/bsr.cxx:4:
    /usr/local/lib/python2.7/site-packages/numpy-1.9.2-py2.7-linux-x86_64.egg/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"
    g++: Internal error: Killed (program cc1plus)
    Please submit a full bug report.
    See <://bbs.aliyun.com> for instructions.
    error: Command "g++ -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -D__STDC_FORMAT_MACROS=1 -Iscipy/sparse/sparsetools -I/usr/local/lib/python2.7/site-packages/numpy-1.9.2-py2.7-linux-x86_64.egg/numpy/core/include -I/usr/local/include/python2.7 -c scipy/sparse/sparsetools/bsr.cxx -o build/temp.linux-x86_64-2.7/scipy/sparse/sparsetools/bsr.o" failed with exit status 1
    
    ----------------------------------------
Command "/usr/local/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-CO2sfG/scipy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-LWP6FE-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-CO2sfG/scipy

展开
收起
test8888123 2015-08-06 14:21:50 19416 0
4 条回答
写回答
取消 提交回答
  • Rescipy安装问题遇到以下问题不能继续【结贴】创建了1G的交换分区搞定了
    我也遇到楼主的情况了,创建了1G的交换分区搞定了 ,楼主的解决方法牛逼。
    2016-02-02 11:06:12
    赞同 展开评论 打赏
  • 回1楼dongshan8的帖子
    root直接源码安装:

    wget ***://jaist.dl.sourceforge.net/project/scipy/scipy/0.16.0/scipy-0.16.0.tar.gz
    tar xzvf scipy-0.16.0.tar.gz  
    cd scipy-0.16.0
    python setup.py  install
    也是报同样的错误,是不是版本问题


    /usr/local/lib/python2.7/site-packages/numpy-1.9.2-py2.7-linux-x86_64.egg/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"
    g++: Internal error: Killed (program cc1plus)
    Please submit a full bug report.
    See <://bbs.aliyun.com> for instructions.
    In file included from /usr/local/lib/python2.7/site-packages/numpy-1.9.2-py2.7-linux-x86_64.egg/numpy/core/include/numpy/ndarraytypes.h:1804,
                     from /usr/local/lib/python2.7/site-packages/numpy-1.9.2-py2.7-linux-x86_64.egg/numpy/core/include/numpy/ndarrayobject.h:17,
                     from scipy/sparse/sparsetools/sparsetools.h:5,
                     from scipy/sparse/sparsetools/bsr.cxx:4:
    /usr/local/lib/python2.7/site-packages/numpy-1.9.2-py2.7-linux-x86_64.egg/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"
    g++: Internal error: Killed (program cc1plus)
    Please submit a full bug report.
    See <://bbs.aliyun.com> for instructions.
    error: Command "g++ -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -D__STDC_FORMAT_MACROS=1 -Iscipy/sparse/sparsetools -I/usr/local/lib/python2.7/site-packages/numpy-1.9.2-py2.7-linux-x86_64.egg/numpy/core/include -I/usr/local/include/python2.7 -c scipy/sparse/sparsetools/bsr.cxx -o build/temp.linux-x86_64-2.7/scipy/sparse/sparsetools/bsr.o" failed with exit status 1

    -------------------------

    回4楼dongshan8的帖子
    Linux 2.6.32-220.23.2.al.ali1.1.alios6.x86_64

    -------------------------

    Rescipy安装问题遇到以下问题不能继续
    创建了1G的交换分区搞定了
    2015-08-07 15:47:32
    赞同 展开评论 打赏
  • 2楼正解
    2015-08-06 14:29:10
    赞同 展开评论 打赏
  • 旺旺:nectar2。
    楼主您好,

    欢迎来到阿里云论坛。

    您是从源码编译安装的吗?

    或许您可以试一下用二进制包来安装,这可能会容易些。

    请参考: http://www.scipy.org/install.html

    -------------------------

    回 3楼(test8888123) 的帖子
    您好,

    请问,您的ECS使用的是什么系统呢?是CentOS 6 64位吗?

    -------------------------

    回 6楼(test8888123) 的帖子
    您好,

    谢谢您的反馈喔。

    小二在Debian 7 32位系统里,好象也测试安装好了(虽然不知道SciPy具体是做什么用的)。

    The following NEW packages will be installed:
      blt cpp-4.9 dvipng fontconfig fontconfig-config fonts-cabin fonts-comfortaa
      fonts-crosextra-caladea fonts-crosextra-carlito fonts-dejavu-core
      fonts-dejavu-extra fonts-droid fonts-ebgaramond fonts-ebgaramond-extra
      fonts-font-awesome fonts-freefont-otf fonts-freefont-ttf fonts-gfs-artemisia
      fonts-gfs-complutum fonts-gfs-didot fonts-gfs-neohellenic fonts-gfs-olga
      fonts-gfs-solomos fonts-inconsolata fonts-junicode fonts-lato
      fonts-linuxlibertine fonts-lmodern fonts-lobster fonts-lobstertwo fonts-lyx
      fonts-mathjax fonts-oflb-asana-math fonts-sil-gentium
      fonts-sil-gentium-basic fonts-stix fonts-texgyre g++-4.9 gcc-4.9
      gcc-4.9-base ghostscript gsfonts hicolor-icon-theme ipython ipython-notebook
      ipython-notebook-common javascript-common libalgorithm-c3-perl
      libarchive-extract-perl libasan1 libasound2 libasound2-data libatk1.0-0
      libatk1.0-data libatomic1 libaudio2 libaudit-common libaudit1
      libauthen-sasl-perl libblas-common libblas3 libcairo2 libcgi-fast-perl
      libcgi-pm-perl libcilkrts5 libclass-c3-perl libclass-c3-xs-perl
      libcloog-isl4 libcpan-meta-perl libcups2 libcupsfilters1 libcupsimage2
      libcurl3-gnutls libdata-optlist-perl libdata-section-perl libdatrie1
      libdb5.3 libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libdrm2
      libencode-locale-perl libexpat1-dev libfcgi-perl libffi6
      libfile-basedir-perl libfile-desktopentry-perl libfile-homedir-perl
      libfile-listing-perl libfile-mimeinfo-perl libfile-which-perl
      libfont-afm-perl libfontconfig1 libfontenc1 libgcc-4.9-dev libgcrypt20
      libgd3 libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-common libgfortran3
      libgl1-mesa-dri libgl1-mesa-glx libglade2-0 libglapi-mesa libglib2.0-0
      libglib2.0-data libglu1-mesa libgnutls-deb0-28 libgraphite2-3 libgs9
      libgs9-common libgtk2.0-0 libgtk2.0-bin libgtk2.0-common libharfbuzz-icu0
      libharfbuzz0b libhdf5-8 libhogweed2 libhtml-form-perl libhtml-format-perl
      libhtml-parser-perl libhtml-tagset-perl libhtml-tree-perl
      libhttp-cookies-perl libhttp-daemon-perl libhttp-date-perl
      libhttp-message-perl libhttp-negotiate-perl libice6 libicu52 libijs-0.35
      libio-html-perl libio-socket-ip-perl libio-socket-ssl-perl libisl10
      libjasper1 libj big0 libj big2dec0 libjpeg62-turbo libjs-highlight
      libjs-highlight.js libjs-jquery libjs-jquery-ui libjs-marked libjs-mathjax
      libjs-underscore libkpathsea6 liblapack3 liblcms2-2 libllvm3.5
      liblog-message-perl liblog-message-simple-perl liblwp-mediatypes-perl
      liblwp-protocol-https-perl liblz4-1 liblzo2-2 libmailtools-perl libmng1
      libmodule-build-perl libmodule-pluggable-perl libmodule-signature-perl
      libmpc3 libmro-compat-perl libmysqlclient18 libnet-dbus-perl
      libnet-http-perl libnet-smtp-ssl-perl libnet-ssleay-perl libnettle4
      libopenjpeg5 libpackage-constants-perl libpango-1.0-0 libpangocairo-1.0-0
      libpangoft2-1.0-0 libpaper-utils libpaper1 libparams-util-perl libpciaccess0
      libperl4-corelibs-perl libpgm-5.1-0 libpixman-1-0 libpng12-0
      libpod-latex-perl libpod-readme-perl libpoppler-qt4-4 libpoppler46
      libpotrace0 libptexenc1 libpython-dev libpython-stdlib libpython2.7
      libpython2.7-dev libpython2.7-minimal libpython2.7-stdlib libqt4-xml
      libqtcore4 libqtgui4 libregexp-common-perl librtmp1 libruby2.1 libsm6
      libsnappy1 libsodium13 libsoftware-license-perl libssh2-1 libstdc++-4.9-dev
      libsub-exporter-perl libsub-install-perl libsynctex1 libtasn1-6 libtcl8.6
      libterm-ui-perl libtext-soundex-perl libtext-template-perl libthai-data
      libthai0 libtie-ixhash-perl libtiff5 libtk8.6 libtxc-dxtn-s2tc0 libubsan0
      libudev1 liburi-perl libutempter0 libvpx1 libwebp5 libwebpdemux1 libwebpmux1
      libwww-perl libwww-robotrules-perl libx11-protocol-perl libx11-xcb1 libxaw7
      libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0 libxcb-render0
      libxcb-shape0 libxcb-shm0 libxcb-sync1 libxcomposite1 libxcursor1
      libxdamage1 libxfixes3 libxft2 libxi6 libxinerama1 libxml-parser-perl
      libxml-twig-perl libxml-xpathengine-perl libxmu6 libxpm4 libxrandr2
      libxrender1 libxshmfence1 libxslt1.1 libxss1 libxt6 libxtst6 libxv1
      libxxf86dga1 libxxf86vm1 libyaml-0-2 libyaml-tiny-perl libzmq3 libzzip-0-13
      lmodern mysql-common neurodebian-popularity-contest poppler-data
      popularity-contest prerex preview-latex-style prosper ps2eps python-antlr
      python-bs4 python-cairo python-dateutil python-decorator python-dev
      python-glade2 python-gmpy python-gobject-2 python-gtk2 python-html5lib
      python-imaging python-jinja2 python-joblib python-lxml python-markupsafe
      python-matplotlib python-matplotlib-data python-mock python-mpmath
      python-mysqldb python-nose python-numexpr python-numpy python-openpyxl
      python-pandas python-pandas-lib python-patsy python-pexpect python-pil
      python-pkg-resources python-pycurl python-pyglet python-pyparsing
      python-scipy python-simplegeneric python-simplejson python-six
      python-statsmodels python-statsmodels-lib python-sympy python-tables
      python-tables-data python-tables-lib python-tk python-tornado python-tz
      python-xlrd python-xlwt python-zmq python2.7-dev qtcore4-l10n rename ruby
      ruby2.1 rubygems-integration shared-mime-info tcl tcl8.6 tex-common tex-gyre
      texlive-base texlive-binaries texlive-extra-utils texlive-font-utils
      texlive-fonts-extra texlive-fonts-extra-doc texlive-fonts-recommended
      texlive-fonts-recommended-doc texlive-generic-recommended texlive-latex-base
      texlive-latex-base-doc texlive-latex-extra texlive-latex-extra-doc
      texlive-latex-recommended texlive-latex-recommended-doc texlive-pictures
      texlive-pictures-doc texlive-pstricks texlive-pstricks-doc tipa tk tk8.6
      tk8.6-blt2.5 ttf-adf-accanthis ttf-adf-gillius ttf-adf-universalis vprerex
      x11-common x11-utils x11-xserver-utils xbitmaps xdg-user-dirs xdg-utils
      xterm
    The following packages will be upgraded:
      binutils cpp dpkg g++ gcc install-info libalgorithm-diff-xs-perl libc-bin
      libc-dev-bin libc6 libc6-dev libcurses-perl libexpat1 libfile-fcntllock-perl
      libgcc1 libgmp10 libgomp1 libgpg-error0 libgssapi-krb5-2 libitm1
      libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 liblocale-gettext-perl
      libmpfr4 libp11-kit0 libpipeline1 libquadmath0 libselinux1 libstdc++6
      libterm-readkey-perl libtext-charwidth-perl libtext-iconv-perl libtirpc1
      libuuid-perl libx11-6 libxcb1 libxml2 locales man-db nfs-common nscd perl
      perl-base perl-modules python python-minimal python2.7 python2.7-minimal
    50 upgraded, 371 newly installed, 5 to remove and 258 not upgraded.
    Need to get 1,184 MB of archives.
    After this operation, 2,370 MB of additional disk space will be used.
    Do you want to continue [Y/n]?




    2015-08-06 14:25:17
    赞同 展开评论 打赏
问答分类:
问答标签:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
From Python Scikit-Learn to Sc 立即下载
Data Pre-Processing in Python: 立即下载
双剑合璧-Python和大数据计算平台的结合 立即下载