2017-03-22 5 views
1

pip3 importieren, das Modul Image konnte nicht installiert werden, daher habe ich ein alternatives Verfahren befolgt, aber dann kann Python das Modul nicht importieren. Hier ist, was ich getan habe:Python 3 kann nicht nur das installierte Modul unter 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' 
>>> 

Antwort

1

Versuchen

import image 

statt.

Das Problem hierbei ist, dass die Namen Paket nicht immer mit dem Namen entsprechen es in Python importiert wird.

+0

Sie können 'pip list' in der Befehlszeile verwenden, um zu sehen, was wirklich installiert ist. – Feishi

Verwandte Themen