提交 23591837 编写于 作者: L Liu Yiqun

Remove the requires of opencv-python.

上级 e4c97e48
......@@ -12,7 +12,7 @@ from paddle.trainer.config_parser import logger
try:
import cv2
except ImportError:
logger.warning("OpenCV2 is not installed, using PIL to prcoess")
logger.warning("OpenCV2 is not installed, using PIL to process")
cv2 = None
__all__ = ["CvTransformer", "PILTransformer", "MultiProcessImageTransformer"]
......
......@@ -3,7 +3,10 @@ try:
import cv2
except:
print(
"import cv2 error, please install opencv-python: pip install opencv-python"
"import cv2 error, please install python wrapper of opencv using:\n"
" pip install opencv-python\n"
" or\n"
" apt-get install python-opencv\n"
)
__all__ = [
......
......@@ -19,7 +19,6 @@ setup(name='paddle',
"numpy",
"protobuf==${PROTOBUF_VERSION}",
"matplotlib",
"opencv-python",
"rarfile"
],
packages=packages,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册