Zookeeper に Python kazoo ライブラリを使用する予定です。ここでのPythonの質問は、Zookeeperではなく、Python kazooを適切に使用する方法を意味していると思います..
私はPythonをまったく初めて使用するので、どうやって行くのか、カズーを使って飼育係に接続する方法がわかりません。
これは、Zookeeper で kazoo を使い始めるために読んでいたドキュメントです。
http://kazoo.readthedocs.org/en/latest/install.html
その wiki では、彼らは kazoo のインストールを求めています。そして、彼らはそのためにいくつかのpipコマンドを使用していますか?
ピップはここで何をしますか? また、現在Windowsを使用しているため、cygwinがインストールされ、pythonもインストールされています。私はPython 2.7.3を使用しています
host@D-SJC-00542612 ~
$ python
Python 2.7.3 (default, Dec 18 2012, 13:50:09)
[GCC 4.5.3] on cygwin
今私がしたことは、このコマンドを上記のWebサイトからそのままコピーpip install kazoo
し、cygwinコマンドプロンプトで実行したことです。
host@D-SJC-00542612 ~
$ pip install kazoo
Downloading/unpacking kazoo
Running setup.py egg_info for package kazoo
warning: no previously-included files found matching '.gitignore'
warning: no previously-included files found matching '.travis.yml'
warning: no previously-included files found matching 'Makefile'
warning: no previously-included files found matching 'run_failure.py'
warning: no previously-included files matching '*' found under directory 'sw'
warning: no previously-included files matching '*pyc' found anywhere in distribution
warning: no previously-included files matching '*pyo' found anywhere in distribution
Downloading/unpacking zope.interface>=3.8.0 (from kazoo)
Running setup.py egg_info for package zope.interface
warning: no previously-included files matching '*.dll' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
Requirement already satisfied (use --upgrade to upgrade): distribute in c:\python27\lib\site-packages (from zope.interface>=3.8.0->kazoo)
Installing collected packages: kazoo, zope.interface
Running setup.py install for kazoo
warning: no previously-included files found matching '.gitignore'
warning: no previously-included files found matching '.travis.yml'
warning: no previously-included files found matching 'Makefile'
warning: no previously-included files found matching 'run_failure.py'
warning: no previously-included files matching '*' found under directory 'sw'
warning: no previously-included files matching '*pyc' found anywhere in distribution
warning: no previously-included files matching '*pyo' found anywhere in distribution
Running setup.py install for zope.interface
warning: no previously-included files matching '*.dll' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
building 'zope.interface._zope_interface_coptimizations' extension
********************************************************************************
WARNING:
An optional code optimization (C extension) could not be compiled.
Optimizations for this package will not be available!
()
Unable to find vcvarsall.bat
********************************************************************************
Skipping installation of C:\Python27\Lib\site-packages\zope\__init__.py (namespace package)
Installing C:\Python27\Lib\site-packages\zope.interface-4.0.5-py2.7-nspkg.pth
Successfully installed kazoo zope.interface
Cleaning up...
正しくインストールされていますか?これで Python でコードを書き始めて Zookeeper に接続できますか?
私はPythonのバックグラウンドを持っていないので、これらすべてのばかげた質問をして申し訳ありません..
ここでのPythonの質問はすべて、飼育係ではないと思います..