I am trying to run a website with Flask where a network graph (hrml page) is created using pyvis. I installed it with pip3.5 install --user pyvis. That did seem to run with out an error.
But when I run python3.5 I immediately get an error when I import the module:
import pyvis
File "<stdin>", line 1, in <module>
File "/home/username/.local/lib/python3.5/site-packages/pyvis/__init__.py", line 1, in <module>
from . import network
File "/home/username/.local/lib/python3.5/site-packages/pyvis/network.py", line 5, in <module>
from jinja2 import Template
File "/home/username/.local/lib/python3.5/site-packages/jinja2/__init__.py", line 5, in <module>
from .bccache import BytecodeCache as BytecodeCache
File "/home/username/.local/lib/python3.5/site-packages/jinja2/bccache.py", line 61
self.code: t.Optional[CodeType] = None
^
SyntaxError: invalid syntax
Does anyone have experience with pyvis? Any help would be useful, thanks in advance.