2014-07-15 2 views
1

먼저라는 이름의 파일 없음 모듈 - 트위터 1.14.3 그래서 전 C에 패키지를 다운로드ImportError를 '트위터'내가 외부 패키지를 설치하기 위해 노력하고있어

(윈도우 7) : \ python33 \ 트위터 - 1.14 0.3, 다음

내가 실행 :

python.exe c:\python33\twitter-1.14.3\setup.py install 

Finished processing.. 

지금은 그 새 모듈을 사용하려고 해요 :

from twitter import * 

와 나는 GE를 오류를 T :

내가 twitter.exe을 실행하기 위해 노력하고있어
Traceback (most recent call last): 
File "test1.py", line 1, in <module> 
\ufefffrom twitter import * 
ImportError: No module named 'twitter' 

, 내가 얻을 :

c:\Python33\Scripts>twitter.exe 
Traceback (most recent call last): 
    File "c:\Python33\Scripts\twitter-script.py", line 9, in <module> 
    load_entry_point('twitter==1.14.3', 'console_scripts', 'twitter')() 
    File "c:\Python33\lib\site-packages\setuptools-5.4.1-py3.3.egg\pkg_resources.py", line 356, in load_entry_point 
    File "c:\Python33\lib\site-packages\setuptools-5.4.1-py3.3.egg\pkg_resources.py", line 2476, in load_entry_point 
    File "c:\Python33\lib\site-packages\setuptools-5.4.1-py3.3.egg\pkg_resources.py", line 2190, in load 
    ImportError: No module named 'twitter' 

어떤 아이디어가?

감사합니다/다음의 친절한 이웃 명령 프롬프트 및 유형

+0

왜 핍 (pip)을 사용하지 않습니까? 그래서 당신은 "pip freeze"를하고 무엇이 설치되어 있고 어떤 것이 있는지 볼 수 있습니다. – jibreel

+0

c : \ Python33 \ Scripts> pip freeze twitter == 1.14.3 – oren

+0

c : \ Python33 \ Scripts> twitter.exe 트레이스 백 (최근 호출 마지막) : 파일 "c : \ Python33 \ Scripts \ twitter-script .py ", 줄 9, load_entry_point ('twitter == 1.14.3', 'console_scripts', 'twitter') ( – oren

답변

0

이동 :

pip install twitter 

그것은 수집 패키지를 설치 ... 성공적으로 트위터-1.18 설치 "의 라인을 따라 뭔가 말을해야 0.0 "

는 그런 다음 IDE에서 실행 :

import twitter # work with Twitter APIs 

그리고 API 키 설정을 계속하십시오

관련 문제