命令:pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.14.0-py3-none-any.whl
问题:Could not build wheels for h5py which use PEP 517 and cannot be installed directly
解决:pip install --upgrade pip
参考:
【之前遇到的问题】
问题:
error: Unable to load dependency HDF5, make sure HDF5 is installed properly
error: dlopen(libhdf5.dylib, 6): image not found
Failed building wheel for h5py
尝试1:
pip install versioned-hdf5
问题1:
error: Unable to load dependency HDF5, make sure HDF5 is installed properly
error: dlopen(libhdf5.dylib, 6): image not found
Failed building wheel for h5py
尝试2:
brew install hdf5@1.8 export HDF5_DIR=/usr/local/opt/hdf@1.8/ # default location, it's different if you have homebrew in a nonstandard place
问题2:
Error: No such file or directory @ rb_sysopen - /Users/minghuili/Library/Caches/Homebrew/downloads/faa6aa8870b9af895e80cea45281372b6a2ec88ade5731d41ed0a2c222172b2e--isl-0.23.big_sur.bottle.tar.gz
尝试3:
rm -rf "$(brew --cache)" brew cleanup
【感觉有时候问题饶了好几层都解决不了,就要放一放,或者换个思路】