Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/python-2.7/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 在Ubuntu 12.04上安装灯泡_Python_Python 2.7_Bulbs - Fatal编程技术网

Python 在Ubuntu 12.04上安装灯泡

Python 在Ubuntu 12.04上安装灯泡,python,python-2.7,bulbs,Python,Python 2.7,Bulbs,我正在尝试在我的系统上安装灯泡(Ubuntu 12.04)。我发现了这个链接。() 我没有使用烧瓶或任何其他虚拟环境。我只想直接在我的电脑上安装灯泡 是一个: 为我这么做 sudopip安装 pip似乎没有很好地安装灯泡的所有依赖项。它找不到Libyml,我犯了一个致命错误。如果你没有使用virtualenv,那么你很可能需要运行“sudo pip install Bulls”将其安装到你的机器上。默认python安装受Ubuntu上的root访问权限保护。此外,您不必担心要安装的其他软件,因为

我正在尝试在我的系统上安装灯泡(Ubuntu 12.04)。我发现了这个链接。()

我没有使用烧瓶或任何其他虚拟环境。我只想直接在我的电脑上安装灯泡

是一个:

为我这么做

sudopip安装


pip似乎没有很好地安装灯泡的所有依赖项。它找不到Libyml,我犯了一个致命错误。

如果你没有使用virtualenv,那么你很可能需要运行“sudo pip install Bulls”将其安装到你的机器上。默认python安装受Ubuntu上的root访问权限保护。此外,您不必担心要安装的其他软件,因为如果“bulls”包的格式正确,pip install将处理依赖关系。

virtualenv
非常推荐用于Python项目,但这不是绝对要求。本指南的其余部分确实说明了使用
pip install
安装它,然后是其余步骤。另外,Flask是一个web应用程序框架,不是虚拟环境。我不知道pip也管理包依赖性。这非常方便!看起来pip在管理依赖性方面做得不是很好?为什么会这样?上面写着“成功安装了pyyaml六个omnijson灯泡”——pip成功了,你很好,应该准备好了。
$ pip install bulbs 
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...