2015-06-29 347 views
0
我有進口特威迪問題

Tweepy安裝問題

this is the error received 

Traceback (most recent call last): 
File "star_twitter.py", line 71, in <module> 
send_to_twitter(get_price()) 
File "star_twitter.py", line 9, in send_to_twitter 
import tweepy 
ImportError: No module named tweepy 

我試圖重新安裝,但現在我收到以下錯誤消息

Downloading/unpacking tweepy 
Downloading tweepy-3.3.0.tar.gz 
Running setup.py egg_info for package tweepy 
Traceback (most recent call last): 
File "<string>", line 14, in <module> 
File "/home/pi/build/tweepy/setup.py", line 17, in <module> 
install_reqs = parse_requirements('requirements.txt', session=uuid.uuid1()) 
TypeError: parse_requirements() got an unexpected keyword argument 'session' 
Complete output from command python setup.py egg_info: 
Traceback (most recent call last): 

File "<string>", line 14, in <module> 

File "/home/pi/build/tweepy/setup.py", line 17, in <module> 

install_reqs = parse_requirements('requirements.txt', session=uuid.uuid1()) 

TypeError: parse_requirements() got an unexpected keyword argument 'session' 

---------------------------------------- 
Command python setup.py egg_info failed with error code 1 in /home/pi/build/tweepy 
Storing complete log in /root/.pip/pip.log 

您的援助將理解

+0

您正在使用哪個版本的python和pip? –

+0

你在Windows,Mac或Linux上嗎? – FBidu

+0

pyhon 3.2.3我正在從我的mac上運行一個覆盆子pi ssh'ed – CoderChai

回答

-1

你使用virtualenv的事實確實有幫助。如果您使用sudo嘗試安裝tweepy,那麼這就是安裝出錯的地方。

請嘗試僅使用pip install tweepy

如果你仍然從那裏得到一個錯誤,那麼你的virtualenv可能已經成爲腐敗。執行以下操作:

$ deactivate 
$ rmvirtualenv nlmanagement 
$ mkvirtualenv nlmanagement 
$ pip install -r requirements.txt 

首先嚐試pip僅在安裝和使用中的virtualenv未來的需求。

+0

無法運行上述命令得到了以下錯誤消息:bash:rmvirtualenv:命令未找到 – CoderChai

+0

$ deactivate deactivate:command not found –