首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安装django-imagekit -“execfile”的问题未定义

安装django-imagekit -“execfile”的问题未定义
EN

Stack Overflow用户
提问于 2013-11-19 11:00:52
回答 2查看 960关注 0票数 0

我在python 3.2/django 1.5下安装django-imagekit时遇到了问题。django-imagekit是否只适用于python 2(那么为什么它在pip-3.2中可用)?

试图从我的虚拟环境中安装django-imagekit。

代码语言:javascript
复制
------------------------------------------------------------
/home/testuser/webapps/app/bin/pip run on Tue Nov 19 10:38:45 2013
Downloading/unpacking django-imagekit

  Running setup.py egg_info for package django-imagekit

    Traceback (most recent call last):

      File "<string>", line 14, in <module>

      File "/home/testuser/webapps/app/build/django-imagekit/setup.py", line 25, in <module>

        execfile(os.path.join(os.path.dirname(__file__),

    NameError: name 'execfile' is not defined

    Complete output from command python setup.py egg_info:

    Traceback (most recent call last):

  File "<string>", line 14, in <module>

  File "/home/testuser/webapps/app/build/django-imagekit/setup.py", line 25, in <module>

    execfile(os.path.join(os.path.dirname(__file__),

NameError: name 'execfile' is not defined

----------------------------------------

Command python setup.py egg_info failed with error code 1 in /home/testuser/webapps/app/build/django-imagekit

Exception information:
Traceback (most recent call last):
  File "/home/testuser/webapps/app/lib/python3.2/site-packages/pip-1.1-py3.2.egg/pip/basecommand.py", line 104, in main
    status = self.run(options, args)
  File "/home/testuser/webapps/app/lib/python3.2/site-packages/pip-1.1-py3.2.egg/pip/commands/install.py", line 245, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/home/testuser/webapps/app/lib/python3.2/site-packages/pip-1.1-py3.2.egg/pip/req.py", line 1009, in prepare_files
    req_to_install.run_egg_info()
  File "/home/testuser/webapps/app/lib/python3.2/site-packages/pip-1.1-py3.2.egg/pip/req.py", line 225, in run_egg_info
    req_to_install.run_egg_info()
  File "/home/testuser/webapps/app/lib/python3.2/site-packages/pip-1.1-py3.2.egg/pip/req.py", line 225, in run_egg_info
    command_desc='python setup.py egg_info')
  File "/home/testuser/webapps/app/lib/python3.2/site-packages/pip-1.1-py3.2.egg/pip/__init__.py", line 256, in call_subprocess
    % (command_desc, proc.returncode, cwd))
pip.exceptions.InstallationError: Command python setup.py egg_info failed with error code 1 in /home/testuser/webapps/app/build/django-imagekit
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2013-11-19 13:16:04

看起来这个模块还没有为python3更新。Django从1.5开始才正式支持python3,所以有几个软件包还没有更新。

票数 0
EN

Stack Overflow用户

发布于 2013-11-20 15:06:52

我是django-imagekit的维护者,不幸的是,它还没有完全准备好使用Python 3。为什么它对pip-3.2…是“可用的”?我的理解是,pip不根据您正在使用的Python版本对包进行任何过滤;pip-3.2是这样命名的,因为它将包安装到Python3.2中,但它不使用单独的索引。

编辑:

我们刚刚推出了ImageKit 3.2,它支持Python3!试一下(:

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/20069701

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档