2014-10-02 145 views
0

我已经安装tweepy如下使用Windows命令提示符。Tweepy安装路径

G:\Python27\Scripts>pip install tweepy 
Downloading/unpacking tweepy 
    Downloading tweepy-2.3.0.tar.gz 
    Running setup.py (path:c:\docume~1\bishan\locals~1\temp\pip_build_Bishan\tweep 
y\setup.py) egg_info for package tweepy 

Installing collected packages: tweepy 
    Running setup.py install for tweepy 

Successfully installed tweepy 
Cleaning up... 

G:\Python27\Scripts> 

现在我需要在我的项目中使用tweepy。但我无法在PC上找到tweepy的安装位置。

我怎样才能找到tweepy安装位置并将其导入到我的eclipse项目?

回答

1

你在使用PyDev吗?如果是,并且已经正确配置,那么您不必关心已安装库的物理位置。请参阅this question了解如何配置PyDev以自动解析已安装的Python包。

但是,如果您确实想知道已安装库的物理位置,请查看您的Python安装目录中的Lib/site-packages目录。它应该在某处。

+0

是的,我使用PyDev,并且在'Lib/site-packages directory'上找到** tweepy **。 :) – Bishan 2014-10-02 11:58:20