Can't Install Scipy
I am trying to install scipy from a Dockerfile and I cannot for the life of me figure out how. Here is the Dockerfile: FROM python:3.5 ENV HOME /root # Install dependencies RUN a
Solution 1:
You're using Python 3 but installing the Python 2 packages. Change your Dockerfile
to the following:
FROM python:3.5
ENV HOME /root
ENV PYTHONPATH "/usr/lib/python3/dist-packages:/usr/local/lib/python3.5/site-packages"
# Install dependencies
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get autoremove -y \
&& apt-get install -y \
gcc \
build-essential \
zlib1g-dev \
wget \
unzip \
cmake \
python3-dev \
gfortran \
libblas-dev \
liblapack-dev \
libatlas-base-dev \
&& apt-get clean
# Install Python packages
RUN pip install --upgrade pip \
&& pip install \
ipython[all] \
numpy \
nose \
matplotlib \
pandas \
scipy \
sympy \
cython \
&& rm -fr /root/.cache
Post a Comment for "Can't Install Scipy"