NameError: name 'execfile' is not defined installing fandjango on Python3

NameError: name 'execfile' is not defined installing fandjango on Python3

我正在尝试使用以下方法安装 fandjango:

pip install fandjango

但是我收到错误:

Collecting fandjango
  Using cached fandjango-4.2.1.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\Apaar\AppData\Local\Temp\pip-build-0j7g1eqn\fandjango\setup.py", line 5, in <module>
        execfile('fandjango/version.py')
    NameError: name 'execfile' is not defined

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\Apaar\AppData\Local\Temp\pip-build-0j7g1eqn\fandjango\

如有任何帮助,我们将不胜感激

Fandjango 根据其 Pypi entry 仅支持 Python2,而您使用的是 Python3(Python3 没有 execfile 内置函数)。