Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/320.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/django/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 在我的家用电脑上加载django项目_Python_Django - Fatal编程技术网

Python 在我的家用电脑上加载django项目

Python 在我的家用电脑上加载django项目,python,django,Python,Django,请容忍我,因为我对Python和Django还是相当陌生的 我将我正在处理的一个项目从我的大学PC复制到USB,当我将它加载到我的笔记本电脑上并尝试使用cmd:python manage.py runserver中的以下代码运行它时 我得到了这个错误: Unhandled exception in thread started by <bound method Command.inner_run of <django.contrib.staticfiles.management.co

请容忍我,因为我对Python和Django还是相当陌生的

我将我正在处理的一个项目从我的大学PC复制到USB,当我将它加载到我的笔记本电脑上并尝试使用cmd:python manage.py runserver中的以下代码运行它时

我得到了这个错误:

Unhandled exception in thread started by <bound method Command.inner_run of <django.contrib.staticfiles.management.commands.runserver.Command object at 0x01D4EB70>>
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\django\core\management\commands\runserver.py", line 91, in inner_run
    self.validate(display_num_errors=True)
  File "C:\Python27\lib\site-packages\django\core\management\base.py", line 270, in validate
    raise CommandError("One or more models did not validate:\n%s" % error_text)
django.core.management.base.CommandError: One or more models did not validate:
groupcraft.userprofile: "picture": To use ImageFields, you need to install the Python Imaging Library. Get it at http://www.pythonware.com/products/pil/
有人能告诉我什么是错的或者我没有做什么吗

一个或多个模型未验证:groupcraft.userprofile:picture:若要使用ImageFields,需要安装Python图像库。在

您在一个模型中使用了Django的ImageField,它依赖于PIL。您可以确保根据Python版本选择正确的文件

一个或多个模型未验证:groupcraft.userprofile:picture:若要使用ImageFields,需要安装Python图像库。在


您在一个模型中使用了Django的ImageField,它依赖于PIL。您可以确保根据Python版本选择正确的文件。

对于最新的PIL版本,只需键入:

easy_install http://effbot.org/downloads/PIL-1.1.7.win32-py2.7.exe
您应该始终检查现有项目中的requirements.txt文件,以确保包含所有python库


在windows上工作时,您需要确保安装某些LIB的二进制版本。

对于最新的PIL版本,只需键入:

easy_install http://effbot.org/downloads/PIL-1.1.7.win32-py2.7.exe
您应该始终检查现有项目中的requirements.txt文件,以确保包含所有python库


在windows上工作时,您需要确保安装某些LIB的二进制版本。

在windows计算机上安装PIL不使用PIP,它必须使用MSI文件,因为WinSxS很烂。在windows计算机上安装PIL不使用PIP,它必须使用MSI文件,因为WinSxS很烂。