问题
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:
- pip3 install fontawesome
- sudo apt-get update -y
- sudo apt-get install -y fonts-font-awesome
- pip3 install pypandoc
- pip3 install py-pandoc
- Downloading from: https://pypi.org/project/pypandoc/#files then python3.6 setup.py build and python3.6 setup.py install
- 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