ML_Trouble_Shooting

bug: moudle tensorflow has no attribute set random seed:
fix:重新安装

find ~/anaconda3/ -name 'tensorflow*' | xargs sudo rm -rf && cd ~/tensorflow/tensorflow_pkg/ && pip install tensorflow*.whl

bug: maplotlib chinese font error:
fix:download SimHei.ttf to next path, 终端命令:
cd /usr/share/fonts/ && wget https://github.com/StellarCN/scp_zh/raw/master/fonts/SimHei.ttf
cp SimHei.ttf ~/anaconda3/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf
修改配置文件matplotlibrc 同样在matplotlib/mpl-data/ 目录下面,修改下面三项配置
font.family : sans-serif
font.sans-serif : SimHei, Bitstream Vera Sans, Lucida Grande, Verdana, Geneva, Lucid, Arial, Helvetica, Avant Garde, sans-serif axes.unicode_minus:False,#作用就是解决负号'-'显示为方块的问题
python代码

from matplotlib.font_manager import _rebuild

_rebuild() #reload一下
plt.rcParams['font.sans-serif']=['SimHei'] #用来正常显示中文标签
plt.rcParams['axes.unicode_minus']=False # 用来正常显示负号

bug: jupyter download as pdf
fix: sudo apt-get install texlive texlive-latex-extra pandoc

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • mean to add the formatted="false" attribute?.[ 46% 47325/...
    ProZoom阅读 7,982评论 0 3
  • TF高级别API TF.Learn http://tflearn.org/ 从零开始学TF-Learn http...
    onepedalo阅读 5,485评论 0 1
  • 羡你“文章本天成,妙手偶得之”的才华,慕你“抱诚守真,淡然纯真”的真挚,敬你“一生一世一双人,半醉半醒半浮生”的柔...
    黯钦阅读 4,790评论 2 1
  • 7.看淡得失人无忧,看破生死自从容。人,因无而有,因有而失,因失而痛,因痛而苦。人总是从无到有就欢欣,从有到无则悲...
    y飞舞的燕子y阅读 2,833评论 0 0
  • 小满莺啼柳亦斜,金莲移步别人家。 麦齐欲食青阳洛,桑败才尝白玉沙。 桃李春风伤月季,芙蓉夜雨润枇杷。 生尘罗袜门前...
    奔奔的果果阅读 7,920评论 85 84

友情链接更多精彩内容