我遇到了一个 github 项目,我正在尝试安装并运行它,但我遇到了一些问题(https://github.com/andrewschoen/django-cms-demo)。我也将此作为一个问题提出https://github.com/andrewschoen/django-cms-demo/issues/2。
如果我理解正确,问题似乎与安装 PIL 有关:
Running setup.py egg_info for package PIL
WARNING: '' not a valid package name; please use only.-separated package na
es in setup.py
我尝试通过将 requirements.txt 中的行更改为:Pillow==1.7.8 来“插入”枕头
$ pip install -r requirements.txt
............
copying PIL\XVThumbImagePlugin.py -> build\lib.win32-2.7\PIL
running build_ext
building '_imaging' extension
f:\python27\Lib\distutils\dist.py:267: UserWarning: Unknown distribution option:
'use_2to3'
warnings.warn(msg)
error: Unable to find vcvarsall.bat
----------------------------------------
Command f:\django-cms-demo\env\Scripts\python.exe -c "import setuptools;__file__
='f:\\django-cms-demo\\env\\build\\Pillow\\setup.py';exec(compile(open(__file__)
.read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\dni
r\appdata\local\temp\pip-cjnff6-record\install-record.txt --single-version-exter
nally-managed --install-headers f:\django-cms-demo\env\include\site\python2.7 fa
iled with error code 1 in f:\django-cms-demo\env\build\Pillow
Storing complete log in m:/pip\pip.log
我刚从 python 和 django 开始,来自 php。我正在尝试将此项目设置在 USB 驱动器上,并且正在使用 win7。
提前感谢您的想法,
账单