我在python 3.2/django 1.5下安装django-imagekit时遇到了问题。django-imagekit是否只适用于python 2(那么为什么它在pip-3.2中可用)?
试图从我的虚拟环境中安装django-imagekit。
------------------------------------------------------------
/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发布于 2013-11-19 13:16:04
看起来这个模块还没有为python3更新。Django从1.5开始才正式支持python3,所以有几个软件包还没有更新。
发布于 2013-11-20 15:06:52
我是django-imagekit的维护者,不幸的是,它还没有完全准备好使用Python 3。为什么它对pip-3.2…是“可用的”?我的理解是,pip不根据您正在使用的Python版本对包进行任何过滤;pip-3.2是这样命名的,因为它将包安装到Python3.2中,但它不使用单独的索引。
编辑:
我们刚刚推出了ImageKit 3.2,它支持Python3!试一下(:
https://stackoverflow.com/questions/20069701
复制相似问题