安装h5py时报错
错误代码:
THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them.
解决方法:
pip install --upgrade h5py
问题:No module named ‘skimage’
解决方法:
第一种:未安装skimage模块
sudo apt-get install python3-matplotlib python3-numpy python3-pil python3-scipy
sudo apt-get install build-essential cython
sudo apt-get install python3-skimage
第二种:更新skimage
pip install scikit-image --upgrade
问题:pip报错 Read timed out
错误代码:
pip._vendor.requests.packages.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.
解决办法:
pip install xxx -i https://pypi.doubanio.com/simple
问题:torch.cuda.is_available()返回false
最后换了驱动器,把390换成了430,直接在ubuntu的软件更新那里更换驱动器,然后重启
print(torch.__version__ ) === 1.2.0
print(torch.version.cuda) ==== 10.0.130