pip install scipy内存不足错误?

时间:2016-03-07 20:35:24

标签: python numpy scipy pip virtualenv

我想在我的virtualenv中安装scipy。我尝试通过apt-get python-scipy安装它,并在8秒内下载并安装,没问题。但是为了将它安装在我的虚拟环境中,我尝试用pip安装它:

pip install scipy

并且它搅拌和搅拌,并且像5分钟后我得到这个错误,说我的虚拟内存用完了?这件事真的很严重吗?有人对此有任何暗示吗?

building 'scipy.sparse._sparsetools' extension
    compiling C++ sources
    C compiler: x86_64-linux-gnu-g++ -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC

    compile options: '-D__STDC_FORMAT_MACROS=1 -Iscipy/sparse/sparsetools -I/home/ubuntu/.virtualenvs/litem/lib/python3.4/site-packages/numpy/core/include -I/usr/include/python3.4m -I/home/ubuntu/.virtualenvs/litem/include/python3.4m -c'
    x86_64-linux-gnu-g++: scipy/sparse/sparsetools/bsr.cxx
    In file included from /home/ubuntu/.virtualenvs/litem/lib/python3.4/site-packages/numpy/core/include/numpy/ndarraytypes.h:1781:0,
                     from /home/ubuntu/.virtualenvs/litem/lib/python3.4/site-packages/numpy/core/include/numpy/ndarrayobject.h:18,
                     from scipy/sparse/sparsetools/sparsetools.h:5,
                     from scipy/sparse/sparsetools/bsr.cxx:4:
    /home/ubuntu/.virtualenvs/litem/lib/python3.4/site-packages/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" [-Wcpp]
     #warning "Using deprecated NumPy API, disable it by " \
      ^
    virtual memory exhausted: Cannot allocate memory
    /home/ubuntu/.virtualenvs/litem/lib/python3.4/site-packages/numpy/distutils/system_info.py:635: UserWarning: Specified path  is invalid.
      warnings.warn('Specified path %s is invalid.' % d)
    Running from scipy source directory.
    /home/ubuntu/.virtualenvs/litem/lib/python3.4/site-packages/numpy/distutils/system_info.py:635: UserWarning: Specified path /home/ubuntu/.virtualenvs/litem/include/python3.4m is invalid.
      warnings.warn('Specified path %s is invalid.' % d)
    /home/ubuntu/.virtualenvs/litem/lib/python3.4/site-packages/numpy/distutils/system_info.py:635: UserWarning: Specified path /usr/local/include/python3.4m is invalid.
      warnings.warn('Specified path %s is invalid.' % d)
    error: Command "x86_64-linux-gnu-g++ -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -D__STDC_FORMAT_MACROS=1 -Iscipy/sparse/sparsetools -I/home/ubuntu/.virtualenvs/litem/lib/python3.4/site-packages/numpy/core/include -I/usr/include/python3.4m -I/home/ubuntu/.virtualenvs/litem/include/python3.4m -c scipy/sparse/sparsetools/bsr.cxx -o build/temp.linux-x86_64-3.4/scipy/sparse/sparsetools/bsr.o" failed with exit status 1
    In file included from /home/ubuntu/.virtualenvs/litem/lib/python3.4/site-packages/numpy/core/include/numpy/ndarraytypes.h:1781:0,
                     from /home/ubuntu/.virtualenvs/litem/lib/python3.4/site-packages/numpy/core/include/numpy/ndarrayobject.h:18,
                     from scipy/sparse/sparsetools/sparsetools.h:5,
                     from scipy/sparse/sparsetools/bsr.cxx:4:
    /home/ubuntu/.virtualenvs/litem/lib/python3.4/site-packages/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" [-Wcpp]
     #warning "Using deprecated NumPy API, disable it by " \
      ^
    virtual memory exhausted: Cannot allocate memory

    ----------------------------------------
Command "/home/ubuntu/.virtualenvs/litem/bin/python3 -c "import setuptools, tokenize;__file__='/tmp/pip-build-43b9l311/scipy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-7bbgu_yj-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/ubuntu/.virtualenvs/litem/include/site/python3.4/scipy" failed with error code 1 in /tmp/pip-build-43b9l311/scipy

0 个答案:

没有答案