FontAwesome with Python

核能气质少年 提交于 2020-06-29 04:27:08

问题


I'm trying to use the The Font Awesome icon set for python but I can't manage to make it work. I'm following all the instructions I found on https://pypi.org/project/fontawesome/ but somehow the end result is not what expected. If I run those 2 simple lines I end up with some kind of indian or arabic symbol.

import fontawesome as fa  
print(fa.icons['thumbs-up'])

Does anyone here have experience with this module?

Thanks


回答1:


  1. pip3 install fontawesome
  2. sudo apt-get update -y
  3. sudo apt-get install -y fonts-font-awesome
  4. pip3 install pypandoc
  5. pip3 install py-pandoc
  6. Downloading from: https://pypi.org/project/pypandoc/#files then python3.6 setup.py build and python3.6 setup.py install
  7. Downloading fontawesome from https://pypi.org/project/fontawesome/ then python3.6 setup.py build and python3.6 setup.py install

I think 31,32 it's not necessary



来源:https://stackoverflow.com/questions/61462679/fontawesome-with-python

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!