2014-04-26 2 views
1

내 시스템에 전구를 설치하려고합니다 (Ubuntu 12.04). 나는이 링크를 발견했다. (http://bulbflow.com/download/#get-bulbs)우분투 12.04에 전구 설치

플라스크 또는 다른 가상 환경을 사용하고 있지 않습니다. 난 그냥 내 PC에 똑바로 전구를 설치하고 싶습니다.

$ pip install bulbs 

나를 위해 그렇게 :

는인가?

sudo는 핍

그 핍이 libyaml를 찾을 수 없습니다 bulbs.It에 대한 모든 dependanceis을 설치하는 좋은 일을하고 있지 않습니다하지 않는 것 내가 치명적인 오류가 발생했습니다 https://github.com/espeed/bulbs/tarball/master

Downloading/unpacking https://github.com/espeed/bulbs/tarball/master 
    Downloading master (unknown size): 177Kb downloaded 
    Cannot determine compression type for file /tmp/pip-EuJ05B-unpack/master 
    In the tar file /tmp/pip-EuJ05B-unpack/master the member espeed-bulbs-71d0cce/docs/social is invalid: "linkname 'espeed-bulbs-71d0cce/docs//home/james/projects/bulbflow.com/www/root/templates/social.html' not found" 
    Running setup.py egg_info for package from https://github.com/espeed/bulbs/tarball/master 

    warning: no previously-included files matching '*~' found under directory '.' 
    warning: no previously-included files matching '*.pyc' found under directory '.' 
    no previously-included directories found matching '*/*/old' 
    no previously-included directories found matching '*/old' 
Requirement already satisfied (use --upgrade to upgrade): distribute in /usr/lib/python2.7/dist-packages (from bulbs==0.3.29-20140426) 
Requirement already satisfied (use --upgrade to upgrade): httplib2>=0.7.2 in /usr/lib/python2.7/dist-packages (from bulbs==0.3.29-20140426) 
Downloading/unpacking pyyaml>=3.10 (from bulbs==0.3.29-20140426) 
    Downloading PyYAML-3.11.tar.gz (248Kb): 248Kb downloaded 
    Running setup.py egg_info for package pyyaml 

Downloading/unpacking six (from bulbs==0.3.29-20140426) 
    Downloading six-1.6.1.tar.gz 
    Running setup.py egg_info for package six 

    no previously-included directories found matching 'documentation/_build' 
Downloading/unpacking omnijson (from bulbs==0.3.29-20140426) 
    Downloading omnijson-0.1.2.tar.gz 
    Running setup.py egg_info for package omnijson 

Requirement already satisfied (use --upgrade to upgrade): python-dateutil==1.5 in /usr/lib/python2.7/dist-packages (from bulbs==0.3.29-20140426) 
Installing collected packages: pyyaml, six, omnijson, bulbs 
    Running setup.py install for pyyaml 
    checking if libyaml is compilable 
    gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c build/temp.linux-x86_64-2.7/check_libyaml.c -o build/temp.linux-x86_64-2.7/check_libyaml.o 
    build/temp.linux-x86_64-2.7/check_libyaml.c:2:18: fatal error: yaml.h: No such file or directory 
    compilation terminated. 

    libyaml is not found or a compiler error: forcing --without-libyaml 
    (if libyaml is installed correctly, you may need to 
    specify the option --include-dirs or uncomment and 
    modify the parameter include_dirs in setup.cfg) 

    Running setup.py install for six 

    no previously-included directories found matching 'documentation/_build' 
    Running setup.py install for omnijson 

    Running setup.py install for bulbs 

    warning: no previously-included files matching '*~' found under directory '.' 
    warning: no previously-included files matching '*.pyc' found under directory '.' 
    no previously-included directories found matching '*/*/old' 
    no previously-included directories found matching '*/old' 
Successfully installed pyyaml six omnijson bulbs 
Cleaning up... 

를 설치합니다.

+1

'virtualenv'는 파이썬 프로젝트에 매우 강력하게 권장됩니다. 그러나 절대적인 요구 사항은 아닙니다. 나머지 가이드에는'pip install bulbs'를 설치 한 다음 나머지 단계를 설치하는 것으로되어 있습니다. – Leigh

+1

또한 Flask는 가상 환경이 아닌 웹 애플리케이션 프레임 워크입니다. – Leigh

답변

1

virtualenv를 사용하지 않는다면 "sudo pip install bulbs"를 실행하여 컴퓨터에 설치해야합니다. 기본 파이썬 설치는 우분투에서 루트 액세스로 보호됩니다. 또한 "bulbs"패키지가 올바르게 구성되어 있으면 pip 설치가 종속성을 처리하기 때문에 설치할 다른 소프트웨어에 대해 걱정할 필요가 없습니다.

+0

나는 그 pip 관리 패키지 dependancies 잘 몰랐다. 그것은 매우 편리합니다! – liv2hak

+0

pip가 depencencies를 관리하는 일을 잘 수행하지 않은 것 같습니다. 왜 그랬을까요? – liv2hak

+1

그것은 "성공적으로 pyyaml ​​six omnijson 전구를 설치했다"- pip 작동, 당신은 잘되고 갈 준비를해야합니다. – espeed

관련 문제