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

前端 未结 5 1054
一个人的身影
一个人的身影 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:15

    Yes, 512MB is not enough for compiling that C++ file.

    Your best option is to build Scipy as a binary package (bdist, or eggs, or, more modern wheels) e.g. via python setupegg.py bdist_egg on a different machine with compatible environment. For instance, use a similar Linux version to the EC2 instance in a virtual machine.

    In general, it's good to remember that when pip installs packages, it compiles source files. If the package is not tiny, this is inefficient and it's better to use binary packages. The wheel package format is supposed to play well together with pip.

提交回复
热议问题