'Python'에 해당되는 글 2건

  1. 2015.08.15 mac, pypy,
  2. 2013.08.09 Eclipse kepler, PyDev 설치하기
2015.08.15 13:19

$ brew info pypy
pypy: stable 2.6.0 (bottled)
Implementation of Python 2 in Python
http://pypy.org/
Not installed
From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/pypy.rb
==> Dependencies
Build: pkg-config ✔
Required: openssl ✔
Recommended: gdbm ✘, sqlite ✘
==> Options
--without-bootstrap
	Translate Pypy with system Python instead of downloading a Pypy binary distribution to perform the translation (adds 30-60 minutes to build)
--without-gdbm
	Build without gdbm support
--without-sqlite
	Build without sqlite support
==> Caveats
A "distutils.cfg" has been written to:
  /usr/local/Cellar/pypy/2.6.0_1/libexec/lib-python/2.7/distutils
specifying the install-scripts folder as:
  /usr/local/share/pypy

If you install Python packages via "pypy setup.py install", easy_install_pypy,
or pip_pypy, any provided scripts will go into the install-scripts folder
above, so you may want to add it to your PATH *after* /usr/local/bin
so you don't overwrite tools from CPython.

Setuptools and pip have been installed, so you can use easy_install_pypy and
pip_pypy.
To update setuptools and pip between pypy releases, run:
    pip_pypy install --upgrade pip setuptools

See: https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Homebrew-and-Python.md


$ brew install pypy
==> Installing dependencies for pypy: gdbm, sqlite
==> Installing pypy dependency: gdbm
==> Downloading https://homebrew.bintray.com/bottles/gdbm-1.11.yosemite.bottle.2.tar.gz
######################################################################## 100.0%
==> Pouring gdbm-1.11.yosemite.bottle.2.tar.gz
🍺  /usr/local/Cellar/gdbm/1.11: 17 files, 532K
==> Installing pypy dependency: sqlite
==> Downloading https://homebrew.bintray.com/bottles/sqlite-3.8.11.1.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring sqlite-3.8.11.1.yosemite.bottle.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.

OS X provides an older sqlite3.

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

    LDFLAGS:  -L/usr/local/opt/sqlite/lib
    CPPFLAGS: -I/usr/local/opt/sqlite/include

==> Summary
🍺  /usr/local/Cellar/sqlite/3.8.11.1: 9 files, 2.8M
==> Installing pypy
==> Downloading https://homebrew.bintray.com/bottles/pypy-2.6.0_1.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring pypy-2.6.0_1.yosemite.bottle.tar.gz
==> /usr/local/Cellar/pypy/2.6.0_1/bin/pypy -s setup.py --no-user-cfg install --force --verbose
==> /usr/local/Cellar/pypy/2.6.0_1/bin/pypy -s setup.py --no-user-cfg install --force --verbose
==> Caveats
A "distutils.cfg" has been written to:
  /usr/local/Cellar/pypy/2.6.0_1/libexec/lib-python/2.7/distutils
specifying the install-scripts folder as:
  /usr/local/share/pypy

If you install Python packages via "pypy setup.py install", easy_install_pypy,
or pip_pypy, any provided scripts will go into the install-scripts folder
above, so you may want to add it to your PATH *after* /usr/local/bin
so you don't overwrite tools from CPython.

Setuptools and pip have been installed, so you can use easy_install_pypy and
pip_pypy.
To update setuptools and pip between pypy releases, run:
    pip_pypy install --upgrade pip setuptools

See: https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Homebrew-and-Python.md
==> Summary
🍺  /usr/local/Cellar/pypy/2.6.0_1: 3557 files, 118M

01:36:50 /Users/sjlee
$ pip_pypy install --upgrade pip setuptools
You are using pip version 7.0.1, however version 7.1.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting pip
  Downloading pip-7.1.0-py2.py3-none-any.whl (1.1MB)
    100% |████████████████████████████████| 1.1MB 214kB/s
Collecting setuptools
  Downloading setuptools-18.1-py2.py3-none-any.whl (461kB)
    100% |████████████████████████████████| 462kB 1.1MB/s
Installing collected packages: pip, setuptools
  Found existing installation: pip 7.0.1
    Uninstalling pip-7.0.1:
      Successfully uninstalled pip-7.0.1
  Found existing installation: setuptools 17.0
    Uninstalling setuptools-17.0:
      Successfully uninstalled setuptools-17.0
Successfully installed pip setuptools

Posted by 나야

댓글을 달아 주세요

2013.08.09 18:36

reference: http://pydev.org/manual_101_install.html


juno 에는 Help > Eclipse Marketplace에서 설치하기만 하면 되었는데, 

kepler 에 설치하려니 진행되는 중에 중단됩니다.


다음과 같이 PyDev 보증서를 설치해주면 설치를 계속 진행할 수 있습니다.


1. 보증서 다운로드: http://pydev.org/pydev_certificate.cer

2. 실행된 eclipse에서 Help > About Eclipse > Installation Details 버튼 > Configuration 탭에서

java.home 경로로 이동하여 다음 실행

bin/keytool -import -file pydev_certificate.cer -keystore lib/security/cacerts

* -file 에는 다운받은 보증서 경로를 지정해주세요

* 암호를 물어보는데 초기암호는 cahgeit 입니다. 

* 윈도우즈에는 bin/keytool.exe 라는 파일명으로 실행하세요.


이제 Eclipse를 재시작하면 PyDev를 설치할 수 있습니다.


Posted by 나야

댓글을 달아 주세요