pip install PIL은 virtualenv에 설치되지 않습니다.
PIL은 어떻게 설치합니까?
>pip install PIL
Downloading/unpacking PIL
Could not find any downloads that satisfy the requirement PIL
Some externally hosted files were ignored (use --allow-external PIL to allow).
Cleaning up...
No distributions at all found for PIL
Storing debug log for failure in /root/.pip/pip.log
>pip uninstall PIL
Can't uninstall 'PIL'. No files were found to uninstall.
pip install PIL --allow-external PIL --allow-unverified PIL
이것은 Pip의 새 버전이 변경 되었기 때문입니다. 실행 pip --version하고 나는 당신이 1.5 를 실행 하고 있다고 확신합니다 . 여기 에서 변경 로그를 참조 하십시오 . 이 새로운 기본 동작은 보안을 강화합니다. PIL의 경우 설치하는 파일은 실제로 effbot.org 에서 가져온 것이며 (따라서 --allow-external) PyPi에는 유효성을 보장하는 체크섬이 없습니다 (따라서 --allow-unverified).
또한 PIL에 Pillow 교체 사용을 고려할 수 있습니다 .
2016 년에 읽는 사람들을위한 업데이트 된 정보 :
--allow-external
과
--allow-unverified
최근에 더 이상 사용되지 않습니다. pip를 사용하여 PyPi 외부에 패키지를 설치하는 것은 더 이상 지원되지 않습니다 : http://www.python.org/dev/peps/pep-0470/
또는 외부 패키지를 실제로 설치해야하는 경우 소스 코드를 다운로드하고 setup.py를 실행할 수 있습니다. 예를 들어 PIL 1.1.7의 경우 http://www.pythonware.com/products/pil/ 에서 다운로드 한 다음 다음을 수행합니다.
$ tar xvfz Imaging-1.1.7.tar.gz
$ cd Imaging-1.1.7
$ python setup.py install
(^ PIL README에서)
특정 virtualenv에만 패키지를 설치하려는 경우 먼저 virtualenv를 활성화하면됩니다. ** 감사합니다 @Caumons
또는 세 번째 줄에서 'python'대신 virtualenv 경로를 대체하십시오. 예 :
$ /home/username/virtualenv-name/bin/python setup.py install
참고 URL : https://stackoverflow.com/questions/21242107/pip-install-pil-doesnt-install-into-virtualenv
'IT Share you' 카테고리의 다른 글
| Gradle 오류 : 지원되는 최소 Gradle 버전은 3.3입니다. (0) | 2020.12.13 |
|---|---|
| .NET에서 메모리 누수가없는 이유는 무엇입니까? (0) | 2020.12.13 |
| Spring Boot-실행중인 포트를 얻는 방법 (0) | 2020.12.13 |
| 실행중인 모든 스레드를 종료하는 방법은 무엇입니까? (0) | 2020.12.13 |
| 두 개의 동일한 LinearLayouts로 화면을 분할하는 방법은 무엇입니까? (0) | 2020.12.13 |