2011-02-17 6 views
7

내 virtualenv에 pip를 통해 PIL을 설치하려고합니다. 그러나 나는이 오류가 발생합니다. 오류 종료 상태 2 Windows 7에서 virtualenv에 pip와 함께 PIL을 설치하려고 시도했습니다.

C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -IlibImaging -Ic:\My_Pro 
jects\testenv\include -Ic:\My_Projects\testenv\PC /Tc_imaging.c /Fobuild\temp.win32-2.7\Release\_imaging.obj 

_imaging.c 

_imaging.c(75) : fatal error C1083: Cannot open include file: 'Python.h': No such file or directory 

error: command '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe"' failed with exit status 2 

---------------------------------------- 
Command c:\My_Projects\testenv\Scripts\python.exe -c "import setuptools;__file__='C:\\My_Projects\\testenv\\pinax-solcia 
l-site\\build\\PIL\\setup.py';execfile(__file__)" install --single-version-externally-managed --record c:\users\darren\a 
ppdata\local\temp\pip-fdzgwn-record\install-record.txt failed with error code 1 
Storing complete log in C:\Users\Darren\AppData\Roaming\pip\pip.log 

나는 파이썬 - dev에 설치하는 제안이 question에 걸쳐 보았다하지만 사용자가 우분투에 있었다. 나는 Windows 7을 사용 중이며 문제를 해결하는 방법을 모릅니다.

감사합니다.

답변

1

VisualStudio 컴파일러가 파이썬 개발 소스를 찾지 못하는 것처럼 보입니다. 아마도 특정 환경 변수를 설정해야합니까?

This blog post 경로에 c:\Python27c:\Python27\bin을 추가해야한다고 제안하는 것처럼 보입니다. 어쩌면 그게 빠진 것일까요?

PIL은 setuptools과 관련된 문제로 알려져 있습니다. pillow을 사용해 보셨습니까?