1

I used the instructions at https://stackoverflow.com/a/20070161/2521204 to activate the virtual environment created by Elastic Beanstalk and https://stackoverflow.com/a/28116352/2521204 to install Numpy and Scipy on a "64bit Amazon Linux 2016.03 v2.1.0 running Python 3.4." In order to test the installation, I use the following:

python manage.py shell

and inside the Djnago Shell, I use the following:

import numpy
import scipy

I do not receive any error message here. However, when I call

from scipy import stats

in my views.py, it returns the following error message:

ImportError: No module named 'scipy'

I appreciate any help in this regard.

Community
  • 1
  • 1
1man
  • 5,216
  • 7
  • 42
  • 56
  • Consider using a docker based setup as that gives you more control of the OS packages That you will need – dkarchmer Apr 24 '16 at 16:32
  • @dkarchmer, Do you have any specific docker in mind that can solve this specific issue? – 1man Apr 24 '16 at 16:36
  • I didn't like any of the others, so I created my own: `tedder42/python3-scipy-cron`. Feel free to use that, or use it as a base for yours. – tedder42 Apr 24 '16 at 16:55
  • I also have my own, but used for ffmpeg as well, but you can reverse engineer it and create your own: https://github.com/ampervue/docker-ffmpeg-moviepy/blob/master/Dockerfile – dkarchmer Apr 24 '16 at 17:06

0 Answers0