NameError:未定义名称"execfile"在Python3上安装fandjango [英] NameError: name 'execfile' is not defined installing fandjango on Python3

查看:69
本文介绍了NameError:未定义名称"execfile"在Python3上安装fandjango的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过以下方式安装fandjango:

I am trying to install fandjango by using:

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条目,并且您正在使用Python3(Python3没有 execfile 内置函数).

Fandjango only supports Python2 according to its Pypi entry, and you are using Python3 (Python3 does not have the execfile builtin function).

这篇关于NameError:未定义名称"execfile"在Python3上安装fandjango的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆