Open qiyuangong opened 4 years ago
OpenCV
File "/Users/arda/anaconda3/envs/py37pip/lib/python3.7/site-packages/cv2/__init__.py", line 5, in <module>
from .cv2 import *
ImportError: dlopen(/Users/arda/anaconda3/envs/py37pip/lib/python3.7/site-packages/cv2/cv2.cpython-37m-darwin.so, 2): Symbol not found: _inflateValidate
Referenced from: /Users/arda/anaconda3/envs/py37pip/lib/python3.7/site-packages/cv2/.dylibs/libpng16.16.dylib (which was built for Mac OS X 10.13)
Expected in: /usr/lib/libz.1.dylib
in /Users/arda/anaconda3/envs/py37pip/lib/python3.7/site-packages/cv2/.dylibs/libpng16.16.dylib
Reason: macOS version below opencv pip required version. https://stackoverflow.com/questions/60254766/opencv-giving-an-error-whenever-import-cv2-is-used Solution: Upgrade macOS to 10.14 or downgrade opencv
pip install opencv-python==4.1.0.25
macOS sed -i
problem
Reason: macOS sed is BSD version, which is different GNU sed used on linux. https://unix.stackexchange.com/questions/13711/differences-between-sed-on-mac-osx-and-other-standard-sed
Solution: Install gnu sed and set path, or change all sed command until not erros.
# install gnu sed
brew install coreutils gnu-sed
# set path for gnu sed
export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"
these should be FAQ in doc for analytics-zoo on MACOS
Ray 0.7.2 on macOS
Reason: https://github.com/deephyper/deephyper/issues/20 Solution: downgrade to openssl1.0 (a little dangerous because other lib may depend on openssl)