由于卸载了自带python3.6后无法联网(域名解析坏了用ip也不好使)重装系统,步骤:
- linuxreader备份文件
- 卸载ubuntu(用Hasleo EasyUEFI 改主引导/分区删除ubuntu引导,然后删除分区https://blog.csdn.net/weixin_42346564/article/details/88652204)
- 重装(https://www.cnblogs.com/masbay/p/11627727.html)
- 恢复可爱的u盘(直接删除u分区)
环境搭建需求,我的显卡-NVIDIA GeForce GTX 1660 Ti,用tensorflow-gpu1.14.0,安装tensorflow-gpu的环境依赖查询:https://tensorflow.google.cn/install/source#linux
- pip升级后:https://blog.csdn.net/weixin_45250844/article/details/94975998
- 安装python3.7并更改python3指向&pip(https://blog.csdn.net/yiyu3344/article/details/90102410)这个文章里面明确说了会导致后续问题,总之我的软件中心还有更新还有很多应用全消失了,update没有用!不能把python3改python3.7!!已经二次重装了
- 由于更改python3默认,终端打不开,下载XTERM,然后:(https://blog.csdn.net/jaket5219999/article/details/78465251?utm_source=blogxgwz6#commentBox)
- 只需要使pip3是python3.7下的,不需要梗概python3之指向3.7,这个最后用的:https://blog.csdn.net/LOVEmy134611/article/details/107112840/
- 安装GCC-4.8(https://blog.csdn.net/a145127/article/details/88954122)
- 显卡驱动出现了问题,想要重装,但是“Error! Bad return status for module build on kernel: 5.4.0-52-generic (x86_64)
Consult /var/lib/dkms/nvidia/455.23.04/build/make.log for more information.”查看,有提示:“cc: error: unrecognized command line option ‘-fstack-protector-strong’”,应该是gcc版本的问题!可以直接把原来那个自带gcc优先级改100,4.8改50
- 显卡驱动出现了问题,想要重装,但是“Error! Bad return status for module build on kernel: 5.4.0-52-generic (x86_64)
- 之后安装显卡驱动&cuda&...(https://blog.csdn.net/qq_32435729/article/details/97698633)这个连接配完还不好用https://blog.csdn.net/wangzugenwy/article/details/100124469
- 连接二的显卡驱动安装可能有问题&不要在安装完了显卡驱动之后更新内核&sudo apt-get dist-upgrade命令不要随便用
- 我用的pycharm-->要虚拟环境,系统环境乱套了
- apt install graphviz
- 关于PyCharm用cuda,需要把cuda路径写进来:https://www.jb51.net/article/195834.htm