rabin 7 anni fa
parent
commit
4a3e7bfaf3
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 1 1
      README.md
  2. 1 1
      src/docker/build/learning/pytorch/Dockerfile

+ 1 - 1
README.md

@@ -101,7 +101,7 @@ ip:9999
 
 2、机器学习:
 dm run py-note(jupyter+numpy、scipy、matplotlib、pandas、scikit-learn、scrapy、gevent、pymysql、psycopg2)
-2018-01-17更新:增加opencv、dlib库,不过不能使用imshow等前台展示图片的方法。
+2018-01-17更新:增加opencv、dlib库
 2018-01-31更新:增加tensorflow、pytorch库,但是没有集成在包里,因为装完比较大,建议自行安装,jupyter里打开命令行,执行以下命令:
 cd /shell/install
 ./tensorflow.sh

+ 1 - 1
src/docker/build/learning/pytorch/Dockerfile

@@ -6,6 +6,6 @@ RUN apk add --no-cache --virtual=.build-deps build-base python3-dev yaml-dev py3
     mkdir -p /tmp/pytorch && \
     git clone --recursive https://github.com/pytorch/pytorch /tmp/pytorch && \
     cd /tmp/pytorch && \
-    python setup.py install && \
+    python3 setup.py install && \
     apk del .build-deps && \
     rm -rf /tmp/* /root/.cache