読者です 読者をやめる 読者になる 読者になる

python::eclipse環境で使いたい

eclipseでのプラグイン追加の前に、pythonwindows環境を。

ソース関連
http://www.python.jp/Zope/download

[python]
http://www.python.jp/Zope/download/pythoncore
python2.7.2.msiを選択。

指示に従ってインストール。

終わると、スタートメニューに [Python 2.7] という項目が出来てる。



eclipse向けのプラグインは何を使えばいいんだろう?
良く解らんが、PyDevとか言うのを入れて見る事にしてみる。
http://www.brainchild.co.jp/blog/develop/2010/08/python-eclipse1.html

新規インストール
URL:http://pydev.org.updates


PyDevの設定
http://www.brainchild.co.jp/blog/develop/2010/08/python-eclipse2.html



Windows版pipのインストール
setuptoolsをインストール
http://pypi.python.org/pypi/setuptools#downloads
から、インストールしたpythonバージョンに合わせてダウンロード。
ダウンロードしたexeを実行。

C:\Python27\Scripts
が出来ているので、Dos窓で移動。

下記を実行

easy_install.exe pip

おk。

試しにpython-twitterをインストールしてみる

C:\Python27\Scripts>easy_install.exe pip
Searching for pip
Reading http://pypi.python.org/simple/pip/
Reading http://www.pip-installer.org
Reading http://pip.openplans.org
Best match: pip 1.0.2
Downloading http://pypi.python.org/packages/source/p/pip/pip-1.0.2.tar.gz#md5=47ec6ff3f6d962696fe08d4c8264ad49
Processing pip-1.0.2.tar.gz
Running pip-1.0.2\setup.py -q bdist_egg --dist-dir c:\users\col-ftsh\appdata\local\temp\easy_install-mr88d2\pip-1.0.2\egg-dist-tmp-zu1lvp
warning: no files found matching '*.html' under directory 'docs'
warning: no previously-included files matching '*.txt' found under directory 'docs\_build'
no previously-included directories found matching 'docs\_build\_sources'
Adding pip 1.0.2 to easy-install.pth file
Installing pip-script.py script to C:\Python27\Scripts
Installing pip.exe script to C:\Python27\Scripts
Installing pip.exe.manifest script to C:\Python27\Scripts
Installing pip-2.7-script.py script to C:\Python27\Scripts
Installing pip-2.7.exe script to C:\Python27\Scripts
Installing pip-2.7.exe.manifest script to C:\Python27\Scripts

Installed c:\python27\lib\site-packages\pip-1.0.2-py2.7.egg
Processing dependencies for pip
Finished processing dependencies for pip

C:\Python27\Scripts>pip.exe install python-twitter
Downloading/unpacking python-twitter
  Downloading python-twitter-0.8.2.tar.gz (63Kb): 63Kb downloaded
  Running setup.py egg_info for package python-twitter

    no previously-included directories found matching '.DS_Store'
Requirement already satisfied (use --upgrade to upgrade): setuptools in c:\python27\lib\site-packages (from python-twitter)
Downloading/unpacking simplejson (from python-twitter)
  Downloading simplejson-2.1.6.tar.gz (52Kb): 52Kb downloaded
  Running setup.py egg_info for package simplejson

Downloading/unpacking oauth2 (from python-twitter)
  Downloading oauth2-1.5.170.tar.gz
  Running setup.py egg_info for package oauth2

Downloading/unpacking httplib2 (from oauth2->python-twitter)
  Downloading httplib2-0.7.1.tar.gz (84Kb): 84Kb downloaded
  Running setup.py egg_info for package httplib2

Installing collected packages: python-twitter, simplejson, oauth2, httplib2
  Running setup.py install for python-twitter

    no previously-included directories found matching '.DS_Store'
  Running setup.py install for simplejson
    building 'simplejson._speedups' extension
    ***************************************************************************
    WARNING: The C extension could not be compiled, speedups are not enabled.
    Failure information, if any, is above.
    I'm retrying the build without the C extension now.
    ***************************************************************************

    ***************************************************************************
    WARNING: The C extension could not be compiled, speedups are not enabled.
    Plain-Python installation succeeded.
    ***************************************************************************
  Running setup.py install for oauth2

  Running setup.py install for httplib2

Successfully installed python-twitter simplejson oauth2 httplib2
Cleaning up...

C:\Python27\Scripts>