Skip to content
Snippets Groups Projects
Commit e740eec4 authored by Stefano Alberto Russo's avatar Stefano Alberto Russo
Browse files

Removed Python 2 support, upadated pip and Python dependencies.

parent 11e93ae5
No related branches found
No related tags found
No related merge requests found
...@@ -15,7 +15,6 @@ RUN apt-get update ...@@ -15,7 +15,6 @@ RUN apt-get update
COPY files/system_deps.sh /root/ COPY files/system_deps.sh /root/
COPY files/python_deps.txt /root/ COPY files/python_deps.txt /root/
RUN bash /root/system_deps.sh RUN bash /root/system_deps.sh
RUN pip install -r /root/python_deps.txt
RUN pip3 install -r /root/python_deps.txt RUN pip3 install -r /root/python_deps.txt
#-------------------------------------- #--------------------------------------
......
numpy==1.14.0
scipy==1.0.0
Cython==0.27.3
Keras==2.1.3
pydub==0.20.0 pydub==0.20.0
scikit-image==0.14.0
scikit-learn==0.19.1
audioread==2.1.5 audioread==2.1.5
matplotlib==2.1.2 matplotlib==2.1.2
mpld3==0.3 mpld3==0.3
h5py==2.8.0
pandas==0.21.0
Jinja2==2.10 Jinja2==2.10
astropy==2.0.7
tensorflow==1.9.0
theano==1.0.2 theano==1.0.2
jupyter==1.0.0 h5py==2.8.0
Keras==2.1.3
tensorflow==1.14.0
matplotlib==2.1.2
numpy==1.19.5
scikit-image==0.15.0
scikit-learn==0.22
pandas==0.23.4
chardet==3.0.4
convertdate==2.1.2
lunarcalendar==0.0.9
holidays==0.10.3
pystan==2.19.1.1
plotly==4.9.0
requests==2.5.3
notebook==5.7.10
\ No newline at end of file
...@@ -11,17 +11,9 @@ apt-get install curl -y ...@@ -11,17 +11,9 @@ apt-get install curl -y
# Install get-pip script # Install get-pip script
curl -O https://bootstrap.pypa.io/get-pip.py curl -O https://bootstrap.pypa.io/get-pip.py
# Install Python and pip in this order (first Python 3 and then Python 2), or
# you will end ap with python defaulting to python2 and pip defaulting to pip3
# Otherwise, do somethign like "ln -s /usr/local/bin/pip3 /usr/local/bin/pip"
# Install Python3 and Pip3 (python3-distutils required for pip3) # Install Python3 and Pip3 (python3-distutils required for pip3)
apt-get install python3 python3-distutils -y apt-get install python3 python3-distutils -y
python3 get-pip.py 'pip==10.0.1' python3 get-pip.py 'pip==21.0.1'
# Install Python2 and Pip2
apt-get install python -y
python get-pip.py 'pip==10.0.1'
# Python-tk required by matplotlib/six # Python-tk required by matplotlib/six
apt-get install python-tk python3-tk -y apt-get install python-tk python3-tk -y
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment