2016-03-27 20 views
1

ben bu komutu kullanmakmodül - PYTHON

import sys 
sys.path 

Bu

['', 'C:\\Users\\Keshav Reddy\\AppData\\Local\\Programs\\Python\\Python35-32\\python35.zip', 'C:\\Users\\Keshav Reddy\\AppData\\Local\\Programs\\Python\\Python35-32\\DLLs', 'C:\\Users\\Keshav Reddy\\AppData\\Local\\Programs\\Python\\Python35-32\\lib', 'C:\\Users\\Keshav Reddy\\AppData\\Local\\Programs\\Python\\Python35-32', 'C:\\Users\\Keshav Reddy\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages', 'C:\\Users\\Keshav Reddy\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\win32', 'C:\\Users\\Keshav Reddy\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\win32\\lib', 'C:\\Users\\Keshav Reddy\\AppData\\Local\\Programs\\Python\\Python35-32\\lib\\site-packages\\Pythonwin'] 

Ben pywinauto yüklemek için pip kullanılan

döndürür

C:\Users\Keshav Reddy\pip install pywinauto 

O döndürür

C:\Users\Keshav Reddy\pip install pyautogui 

O döndürür

Requirement already satisfied (use --upgrade to upgrade): pyautogui in c:\users\keshav reddy\appdata\local\programs\python\python35-32 
Requirement already satisfied (use --upgrade to upgrade): pymsgbox in c:\users\keshav reddy\appdata\local\programs\python\python35-32\lib\site-packages (from pyautogui) 
Requirement already satisfied (use --upgrade to upgrade): PyTweening>=1.0.1 in c:\users\keshav reddy\appdata\local\programs\python\python35-32\lib\site-packages (from pyautogui) 
Requirement already satisfied (use --upgrade to upgrade): Pillow in c:\users\keshav reddy\appdata\local\programs\python\python35-32\lib\site-packages (from pyautogui) 
Requirement already satisfied (use --upgrade to upgrade): pyscreeze in c:\users\keshav reddy\appdata\local\programs\python\python35-32\lib\site-packages (from pyautogui) 

Ama bunu alırken,

C:\Users\Keshav Reddy\python 

Python 3.5.1 (v3.5.1:37a07cee5969, Dec 6 2015, 01:38:48) [MSC v.1900 32 bit (Intel)] on win32 
Type "help", "copyright", "credits" or "license" for more information. 
>>> import pyautogui 
Traceback (most recent call last): 
    File "<stdin>", line 1, in <module> 
ImportError: No module named 'pyautogui' 

sorunun nerede olduğunu emin değilim.

pip freeze 

ve modüllerin bu listede Eğer aradığınız modülü olup olmadığını görmek:

cevap

-1

ben size terminale aşağıdakileri yazarak deneyin öneriyoruz. Modülü görmüyorsanız, xyz'nin yüklemek istediğiniz modül olduğu

yazmayı deneyin.

+0

Yukarıdakileri önermemin nedeni, aslında modüle sahipseniz, ancak Python bunu görmüyorsanız, modülleri python'unuza bağlayan bir PATH sorununuz olabilir. – klitz1967

+0

Burada da benzer bir sorun vardı: http://askubuntu.com/questions/279866/python-module-not-found-after-manual-install – klitz1967

İlgili konular