我通過下面的教程工作:錯誤時試圖安裝瓶擴展
http://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world
我創建了一個虛擬環境,並一直在試圖安裝以下擴展名:
flask/bin/pip install flask==0.9
flask/bin/pip install flask-login
flask/bin/pip install flask-openid
flask/bin/pip install flask-mail==0.7.6
flask/bin/pip install sqlalchemy==0.7.9
flask/bin/pip install flask-sqlalchemy==0.16
flask/bin/pip install sqlalchemy-migrate==0.7.2
flask/bin/pip install flask-whooshalchemy==0.54a
flask/bin/pip install flask-wtf==0.8.4
flask/bin/pip install pytz==2013b
flask/bin/pip install flask-babel==0.8
flask/bin/pip install flup
當我運行它們時,我收到以下每條錯誤消息:
Wheel installs require setuptools >= 0.8 for dist-info support.
pip's wheel support requires setuptools >= 0.8 for dist-info support.
Storing debug log for failure in /Users/seanpatterson/.pip/pip.log
從閱讀我的想法是我正在運行一箇舊版本的安裝工具,但我不知道如何升級它,或者它會是什麼設置文件。有什麼想法嗎?
你應該首先安裝setuptools :)使用這個命令:'pip install setuptools' –