2013-04-07 142 views
2
Daniels-MacBook-Pro:~ daniruhman$ pip install libgreader 
Downloading/unpacking libgreader 
    Running setup.py egg_info for package libgreader 
    Traceback (most recent call last): 
     File "<string>", line 16, in <module> 
     File "/private/var/folders/47/1m2qc2sx65gf7zqyzzmdtvc80000gn/T/pip-build-daniruhman/libgreader/setup.py", line 3, in <module> 
     import libgreader 
     File "libgreader/__init__.py", line 11, in <module> 
     from .googlereader import GoogleReader 
     File "libgreader/googlereader.py", line 11, in <module> 
     from .items import SpecialFeed, Item, Category, Feed 
     File "libgreader/items.py", line 3, in <module> 
     from requests.compat import quote 
    ImportError: No module named requests.compat 
    Complete output from command python setup.py egg_info: 
    Traceback (most recent call last): 

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

    File "/private/var/folders/47/1m2qc2sx65gf7zqyzzmdtvc80000gn/T/pip-build-daniruhman/libgreader/setup.py", line 3, in <module> 

    import libgreader 

    File "libgreader/__init__.py", line 11, in <module> 

    from .googlereader import GoogleReader 

    File "libgreader/googlereader.py", line 11, in <module> 

    from .items import SpecialFeed, Item, Category, Feed 

    File "libgreader/items.py", line 3, in <module> 

    from requests.compat import quote 

ImportError: No module named requests.compat 

---------------------------------------- 
Command python setup.py egg_info failed with error code 1 in /private/var/folders/47/1m2qc2sx65gf7zqyzzmdtvc80000gn/T/pip-build-daniruhman/libgreader 
Storing complete log in /Users/daniruhman/Library/Logs/pip.log 
Daniels-MacBook-Pro:~ daniruhman$ sudo pip install libgreader 
Password: 
Downloading/unpacking libgreader 
    Running setup.py egg_info for package libgreader 
    Traceback (most recent call last): 
     File "<string>", line 16, in <module> 
     File "/private/tmp/pip-build-root/libgreader/setup.py", line 3, in <module> 
     import libgreader 
     File "libgreader/__init__.py", line 11, in <module> 
     from .googlereader import GoogleReader 
     File "libgreader/googlereader.py", line 11, in <module> 
     from .items import SpecialFeed, Item, Category, Feed 
     File "libgreader/items.py", line 3, in <module> 
     from requests.compat import quote 
    ImportError: No module named requests.compat 
    Complete output from command python setup.py egg_info: 
    Traceback (most recent call last): 

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

    File "/private/tmp/pip-build-root/libgreader/setup.py", line 3, in <module> 

    import libgreader 

    File "libgreader/__init__.py", line 11, in <module> 

    from .googlereader import GoogleReader 

    File "libgreader/googlereader.py", line 11, in <module> 

    from .items import SpecialFeed, Item, Category, Feed 

    File "libgreader/items.py", line 3, in <module> 

    from requests.compat import quote 

ImportError: No module named requests.compat 

---------------------------------------- 
Command python setup.py egg_info failed with error code 1 in /private/tmp/pip-build-root/libgreader 
Storing complete log in /Users/daniruhman/Library/Logs/pip.log 
Daniels-MacBook-Pro:~ daniruhman$ 

任何想法?嘗試安裝libgreader時出錯

試圖PIP安裝要求:

Daniels-MacBook-Pro:~ daniruhman$ pip install requests Downloading/unpacking requests Downloading requests-1.2.0.tar.gz (341kB): 341kB downloaded Running setup.py egg_info for package requests

安裝收集包:請求 運行setup.py的安裝請求

error: could not create '/Library/Python/2.7/site-packages/requests': Permission denied 
Complete output from command /usr/bin/python -c "import setuptools;__file__='/private/var/folders/47/1m2qc2sx65gf7zqyzzmdtvc80000gn/T/pip-build-daniruhman/requests/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/47/1m2qc2sx65gf7zqyzzmdtvc80000gn/T/pip-OPYIXn-record/install-record.txt --single-version-externally-managed: 
running install 

運行建立

運行build_py

創建編譯

創建構建/ lib中

創建建/ lib目錄/請求

複製請求/ 初始化的.py - >建/ lib目錄/請求

複製請求/ adapters.py - >構建/ LIB /請求

複製請求/ api.py - >建立/ LIB /請求

複製請求/ auth.py - >建立/ LIB /請

複製請求/ certs.py - >建/ lib目錄/請求

複製請求/ compat.py - >建/ lib目錄/請求

複製請求/ cookies.py - >建/ lib目錄/請求

複製請求/ exceptions.py - >建立/ LIB /請求

複製請求/ hooks.py - >建立/ LIB /請求

複製REQ uests/models.py - >建/ lib目錄/請求

複製請求/ sessions.py - >建/ lib目錄/請求

複製請求/ status_codes.py - >建/ lib目錄/請求

複製請求/ structures.py - >建/ lib目錄/請求

複製請求/ utils.py - >建/ lib目錄/請求

創建建/ lib目錄/請求/包

個複製請求/包/ 初始化的.py - >建/ lib目錄/請求/包

創建建/ lib目錄/請求/包/夏利

複製請求/包/夏利/ 初始化的.py - > build/lib/requests/packages/charade

複製請求/ packages/charade/big5freq。PY - >編譯/ lib目錄/請求/包/夏利

複製請求/包/夏利/ big5prober.py - >建/ lib目錄/請求/包/夏利

複製請求/包/夏利/ chardistribution。 PY - >編譯/ lib目錄/請求/包/夏利

複製請求/包/夏利/ charsetgroupprober.py - >建/ lib目錄/請求/包/夏利

複製請求/包/夏利/ charsetprober。 py - > build/lib/requests/packages/charade

複製請求/包/夏利/ codingstatemachine.py - >編譯/ lib目錄/請求/包/夏利

複製請求/包/夏利/ compat.py - >建/ lib目錄/請求/包/夏利

複製請求/包/夏利/ constants.py - >編譯/ lib目錄/請求/包/夏利

複製請求/包/夏利/ cp949prober.py - >建/ lib目錄/請求/包/夏利

複製請求/包/ charade/escprober.py - > build/lib/requests/packages/charade

複製請求/包/夏利/ escsm.py - >編譯/ lib目錄/請求/包/夏利

複製請求/包/夏利/ eucjpprober.py - >編譯/ lib目錄/請求/包/夏利

複製請求/包/夏利/ euckrfreq.py - >編譯/ lib目錄/請求/包/夏利

複製請求/包/夏利/ euckrprober.py - >編譯/ lib目錄/請求/包/夏利

複製請求/包/ charade/euctwfreq.py - > build/lib/requests/packages/charade

複製請求/包/夏利/ euctwprober.py - >編譯/ lib目錄/請求/包/夏利

複製請求/包/夏利/ gb2312freq.py - >建/ lib目錄/請求/包/字謎

複製請求/包/夏利/ gb2312prober.py - >編譯/ lib目錄/請求/包/夏利

複製請求/包/夏利/ hebrewprober.py - >建/ lib目錄/請求/包/字謎

複製請求/包/ charade/jisfreq.py - >編譯/ LIB /請求/包/夏利

複製請求/包/夏利/ jpcntx.py - >編譯/ lib目錄/請求/包/夏利

複製請求/包/夏利/ langbulgarianmodel.py - >建/ LIB /請求/包/夏利

複製請求/包/夏利/ langcyrillicmodel.py - >編譯/ lib目錄/請求/包/夏利

複製請求/包/夏利/ langgreekmodel。PY - >編譯/ lib目錄/請求/包/夏利

複製請求/包/夏利/ langhebrewmodel.py - >建/ lib目錄/請求/包/夏利

複製請求/包/夏利/ langhungarianmodel。 PY - >編譯/ lib目錄/請求/包/夏利

複製請求/包/夏利/ langthaimodel.py - >建/ lib目錄/請求/包/夏利

複製請求/包/夏利/ Latin1Prober對象。 py - > build/lib/requests/packages/charade

個複製請求/包/夏利/ mbcharsetprober.py - >編譯/ lib目錄/請求/包/夏利

複製請求/包/夏利/ mbcsgroupprober.py - >建/ lib目錄/請求/包/夏利

複製請求/包/夏利/ mbcssm.py - >編譯/ lib目錄/請求/包/夏利

複製請求/包/夏利/ sbcharsetprober.py - >建/ lib目錄/請求/包/夏利

複製請求/包/ charade/sbcsgroupprober.py - > build/lib/requests/packages/charade

複製請求/包/夏利/ sjisprober.py - >編譯/ lib目錄/請求/包/夏利

複製請求/包/夏利/ universaldetector.py - >編譯/ lib目錄/請求/包/夏利

複製請求/包/夏利/ utf8prober.py - >編譯/ lib目錄/請求/包/夏利

創建建/ lib目錄/請求/包/ urllib3

複製請求/包/ urllib3/init .py - > build/lib/req uests /包/ urllib3

複製請求/包/ urllib3/_collections.py - >建/ lib目錄/請求/包/ urllib3

複製請求/包/ urllib3/connectionpool.py - >建/ lib目錄/請求/包/ urllib3

複製請求/包/ urllib3/exceptions.py - >建/ lib目錄/請求/包/ urllib3

複製請求/包/ urllib3/filepost.py - >建/ lib目錄/ requests/packages/urllib3

複製請求S /包/ urllib3/poolmanager.py - >編譯/ lib目錄/請求/包/ urllib3

複製請求/包/ urllib3/request.py - >建/ lib目錄/請求/包/ urllib3

複製requests/packages/urllib3/response.py - > build/lib/requests/packages/urllib3

複製請求/ packages/urllib3/util。PY - >建/ lib目錄/請求/包/ urllib3

創建建/ lib目錄/請求/包/ urllib3 /包

複製請求/包/ urllib3 /包/ 初始化的.py - >建/ LIB /請求/包/ urllib3 /包

複製請求/包/ urllib3 /包/ ordered_dict.py - >建/ lib目錄/請求/包/ urllib3 /包

複製請求/包/ urllib3 /包/six.py - > build/lib/requests/packages/urllib3/packages

創建建/ lib目錄/請求/包/ urllib3 /包/ ssl_match_hostname

複製請求/包/ urllib3 /包/ ssl_match_hostname/初始化的.py - >建/ lib目錄/請求/包/ urllib3 /包/ ssl_match_hostname

運行egg_info

寫requests.egg-INFO/PKG-INFO

寫頂級名requests.egg-INFO/top_level.txt

寫作dependency_links到requests.egg-INFO/dependency_links.txt

警告:manifest_maker:標準文件 '-c' 未找到

閱讀清單文件 'requests.egg-INFO/SOURCES.txt'

閱讀清單模板 'MANIFEST.in'

編寫清單文件 'requests.egg-INFO/SOURCES.txt'

複製請求/ cacert.pem - >建/ lib目錄/請求

運行install_lib

創建/Library/Python/2.7/site-packages/requests

錯誤:無法創建 '/Library/Python/2.7/site-packages/requests':權限被拒絕


命令/ usr/bin/python -c「import setuptools; file ='/ private/var/folders/47/1m2qc2sx65gf7zqyzzmdtvc80000gn/T/pip-build-daniruhman/requests/setup.py'; exec(編譯(打開(文件).read().example('\ r \ n','\ n'),file,'exec'))「install --record /var/folders/47/1m2qc2sx65gf7zqyzzmdtvc80000gn/T/pip-OPYIXn-record/install-record.txt --single -version-external-managed failed with error code 1 in/private/var/folders/47/1m2qc2sx65gf7zqyzzmdtvc80000gn/T/pip-build-daniruhman/requests 存儲完整日誌/Users/daniruhman/Library/Logs/pip.log Daniels-MacBook-Pro:〜daniruhman $

+1

我認爲請求作爲請求庫。嘗試''pip安裝請求''。 – CppLearner 2013-04-07 17:36:21

回答

1

好吧我剛剛通過看setup.py確認 0123它需要requests庫。

只要做pip install requests

大部分時間錯誤告訴你很多。

+0

我試過了......擡頭,我得到了另一個錯誤 – 2013-04-07 19:05:34

+0

明白了,剛剛添加了sudo – 2013-04-07 19:06:25