简体   繁体   English

NameError:名称“ execfile”未定义在Python3上安装fandjango

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

I am trying to install fandjango by using: 我正在尝试使用以下方法安装fandjango:

pip install fandjango

However I get the error: 但是我得到了错误:

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\

Any help would be greatly appreciated 任何帮助将不胜感激

Fandjango根据其Pypi条目仅支持Python2,而您正在使用Python3(Python3没有execfile内置函数)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM