1
我想在virtualenv中正確設置python-goose。無法導入蟒蛇(OSX 10.9)
更新:我nukin蟒蛇,並開始與乾淨的安裝,如概述here。
我跟蟒蛇鵝instructions,做:
mkvirtualenv --no-site-packages goose
git clone https://github.com/grangier/python-goose.git
cd python-goose
pip install -r requirements.txt
python setup.py install
pip install -r requirements.txt
失敗的lxml
錯誤我得到的是現在:
error: command 'cc' failed with exit status 1
----------------------------------------
Cleaning up...
Command /Users/me/.virtualenvs/goose/bin/python -c "import setuptools, tokenize;__file__='/Users/me/.virtualenvs/goose/build/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/wg/82j6ndq50tl4m9rjkqszyx8r0000gp/T/pip-c9DtYT-record/install-record.txt --single-version-externally-managed --compile --install-headers
/Users/me/.virtualenvs/goose/include/site/python2.7 failed with error code 1 in
/Users/me/.virtualenvs/goose/build/lxml
有什麼我做的不正確或有沒有其他方法可以嘗試使這個工作?
看起來像你的問題仍然在lxml,從你的文件夾結構我假設你正在運行的OS X,你使用自制軟件? – Wolph
你好,是的,跑小牛隊,我在這臺機器上有自制的。 – emh
看起來你錯過了一個與壓縮相關的包,可能在你的Python發行版中。你自己做了嗎? –