Closed cthnguyen closed 5 years ago
Thx for the heads up, I updated the Dockerfiles to force installation of Python 3.6.8 and OpenCV 3.1.0 which should fix the issues. Can you tell me if it works for you now?
Thanks ! It almost work, I changed some imports on the Dockerfile in anaconda-tensorflow-geo
. I changed conda imports for pip as it run a lot faster on my machine for the following packages opencv
, pyproj
, overpy
, shapely
, jsmin
, and there was extra quotation marks for the import of pycocotools from the github.
FROM lydorn/anaconda-tensorflow
MAINTAINER Nicolas Girard <nicolas.jp.girard@gmail.com>
RUN apt-get update && apt-get install -y libgtk2.0
# Image manipulation
RUN pip install opencv-python
RUN pip install pyproj
## Install gdal
#RUN apt-get update
#RUN apt-get install -y software-properties-common
#RUN apt-add-repository ppa:ubuntugis/ubuntugis-unstable
#RUN apt-get update
#RUN apt-get install -y libgdal-dev
## See https://gist.github.com/cspanring/5680334:
#RUN pip install gdal --global-option=build_ext --global-option="-I/usr/include/gdal/"
# Install gdal
RUN apt-get update
RUN apt-get install -y software-properties-common
RUN apt-add-repository ppa:ubuntugis/ubuntugis-unstable
RUN apt-get update
RUN apt-get install -y libgdal-dev
# See https://gist.github.com/cspanring/5680334:
RUN pip install gdal==2.2.0 --global-option=build_ext --global-option="-I/usr/include/gdal/"
# Install overpy
RUN pip install overpy
# Install shapely
RUN pip install Shapely
# Install pycocotools
#RUN pip install git+https://github.com/crowdai/coco.git#subdirectory=PythonAPI
RUN pip install -U --no-cache-dir scikit-image
RUN pip install -U --no-cache-dir cython
RUN pip install --no-cache-dir git+https://github.com/philferriere/cocoapi.git#egg=pycocotools&subdirectory=PythonAPI
RUN pip install jsmin
#RUN conda install -c anaconda joblib -y
# Cleanup
RUN apt-get clean && \
apt-get autoremove
Then, it run fined and I managed to got some results ! Thanks a lot !
Great, I'm glad you made it work for you!
Hello Nicolas, I have issues to build the last docker image
anaconda-tensorflow-geo
. I first encounter problems with installing tensorflow gpu from the DockerFile inanaconda-tensorflow
docker image where the commandgives me an error. I solved it by simply replacing it with
But then to build the last image
anaconda-tensorflow-gpu
, I have this error while trying to install opencv3.I checked and python 3.7 is installed on the docker, so I don't understand the issue.
Could you maybe specify which version of the packages (opencv, tensorflow etc) and of python is needed ?