를 가져올 수 없습니다 내가 잘못 여기서 뭐하는거야 :정말 간단한 파이썬 파이썬 - 트위터 문제; 트위터
Sun Oct 14$ pip install python-twitter
Requirement already satisfied (use --upgrade to upgrade): python-twitter in /Library/Python/2.7/site-packages
Requirement already satisfied (use --upgrade to upgrade): setuptools in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from python-twitter)
Requirement already satisfied (use --upgrade to upgrade): simplejson in /Library/Python/2.7/site-packages (from python-twitter)
Requirement already satisfied (use --upgrade to upgrade): oauth2 in /Library/Python/2.7/site-packages (from python-twitter)
Requirement already satisfied (use --upgrade to upgrade): httplib2 in /Library/Python/2.7/site-packages (from oauth2->python-twitter)
Cleaning up...
Sun Oct 14$ python
Python 2.7.2 (default, Nov 17 2011, 13:22:48)
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import twitter
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named twitter
>>>
내가 VIRTUALENV을해야합니까? 그 밖의 무엇이 계속 될 수 있습니까? 이해가 부족하여 미안하지만 도움을 주시면 감사하겠습니다.
편집 # 1
가능성이 파이썬 여기에 2.7의 두 가지 버전이있을 수 있습니다 .... 작업 tweepy려고하지만Sun Oct 14$ pip install --upgrade tweepy
Requirement already up-to-date: tweepy in ./tweepy-1.11-py2.7.egg
Cleaning up...
Sun Oct 14$ python
Python 2.7.2 (default, Nov 17 2011, 13:22:48)
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import tweepy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named tweepy
>>>
내가 파이썬 2.7의 두 가지 버전이있을 수 있습니다 생각 설치; 하나는 자작과 애플의 불이행이다. homebrew 설치가 /Library/Python/2.7/site-packages에 패키지를 넣을 수 있습니까?
또, 사전에 들으 what I've read,에서
두 가지 버전의 Python 2.7이 설치되어 있습니까? – jdotjdot
tweepy와 (과) 함께 할 수는 있지만 나는 맞을 수도 있다고 생각합니다. – timpone
virtualenv에서 시도해보십시오. 그것이 효과가 있다면, 당신은 당신의 대답을 가지고 있습니다. – jdotjdot