Trouble installing scipy in virtualenv on a amazon ec2 linux micro instance

前端 未结 5 1035
一个人的身影
一个人的身影 2020-11-29 23:34

I have successfully installed scipy in the default python compiler on an amazon ec2 micro instance (Ubuntu 13.04). However i am not able to install scipy<

5条回答
  •  爱一瞬间的悲伤
    2020-11-30 00:27

    This worked for me:

    pip --no-cache-dir install scipy
    

    See:

    • Memory error while using pip install Matplotlib

      https://github.com/pypa/pip/blob/9a23d4ed119327d3b823ec223aaead90964bac58/pip/basecommand.py#L56-L63

    • https://github.com/pypa/pip/blob/28cca11e284b37cc2c7977fd25be6f494adda9d3/src/pip/_internal/download.py#L359-L367

    note:

    • works for other service providers, hardware, VMs, and containers.
    • if RAM allocation size of 1GB
    • just calculate the diff between the cached directory memory usage and available ram

提交回复
热议问题