python3.7.3安装TensorFlow:

命令: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

参考:

python - ERROR: Could not build wheels for scipy which use PEP 517 and cannot be installed directly - Stack Overflow

【之前遇到的问题】

问题:

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

【感觉有时候问题饶了好几层都解决不了,就要放一放,或者换个思路】

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值