2017-03-22 4 views
1

pip3Image 모듈을 설치하지 못했습니다. 따라서 대체 절차를 수행했지만 Python이 모듈을 가져올 수 없습니다. 여기에 내가 무엇을했는지 있습니다 :Python 3은 Windows에 설치된 모듈을 가져올 수 없습니다.

C:\Users\myuser>pip3 install --user Image 
Fatal error in launcher: Unable to create process using '"' 

C:\Users\myuser>python3 
Python 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 08:06:12) [MSC v.1900 64 bit (AMD64)] on win32 
Type "help", "copyright", "credits" or "license" for more information. 
>>> import pip 
>>> pip.main(['install','--user','Image']) 
Collecting Image 
    Using cached image-1.5.5.tar.gz 
Collecting pillow (from Image) 
    Downloading Pillow-4.0.0-cp36-cp36m-win_amd64.whl (1.5MB) 
    100% |████████████████████████████████| 1.5MB 323kB/s 
Collecting django (from Image) 
    Using cached Django-1.10.6-py2.py3-none-any.whl 
Collecting olefile (from pillow->Image) 
    Using cached olefile-0.44.zip 
Installing collected packages: olefile, pillow, django, Image 
    Running setup.py install for olefile ... done 
    Running setup.py install for Image ... done 
Successfully installed Image-1.5.5 django-1.10.6 olefile-0.44 pillow-4.0.0 
0 
>>> import Image 
Traceback (most recent call last): 
    File "<stdin>", line 1, in <module> 
ModuleNotFoundError: No module named 'Image' 
>>> 

답변

1

대신

import image 

을보십시오. 여기

문제는 패키지의 이름은 항상 파이썬에서 수입 년대 이름으로 해당되지 않는 것입니다.

+0

실제로 설치되어있는 것을 보려면 명령 행에서'pip list'를 사용할 수 있습니다. – Feishi