상세 컨텐츠

본문 제목

[maxOS High Sierra] Python pip install

OS/MAC OS X

by ZelKun 2018. 5. 29. 10:00

본문

반응형

출처: https://pypi.org/project/pip/

 

pip가 설치가 안되있어 설치를 진행했습니다.

 

아주 쉽네요 terminal 에서 진행합니다

sudo easy_install pip

 

일단 easy_install이 어디서 지원하는지는 모르겠지만

처음보는 명령어 이기도하고

찾아보니 pip가 easy_install보다개선되 패키지 관리툴이라나..

그래도 pip는 python설치할때 설치가 안되죠

 

뭐 덕분에 pip설치가 편했으면 된건가...

 

이미 pip를 설치한 뒤에 다시해본거라 로그가 짧네요

admin:~ admin$ which easy_install

/usr/bin/easy_install

admin:~ admin$ ls -al /usr/bin/ | grep easy_install

-rwxr-xr-x    2 root   wheel        925  7 16  2017 easy_install

-rwxr-xr-x    1 root   wheel        458  7 16  2017 easy_install-2.7

 

admin:~ admin$ sudo easy_install pip

Password:

Searching for pip

Best match: pip 9.0.1

Processing pip-9.0.1-py2.7.egg

pip 9.0.1 is already the active version in easy-install.pth

Installing pip script to /usr/local/bin

Installing pip2.7 script to /usr/local/bin

Installing pip2 script to /usr/local/bin

 

Using /Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg

Processing dependencies for pip

Finished processing dependencies for pip

 

admin:~ admin$ pip -V

pip 9.0.1 from /Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg (python 2.7)

admin:~ admin$ 

 

 

옵션이 매우 많아보이지만

pip를 설치했으니 이제 안쓸듯

admin:~ admin$ easy_install -h

 

Global options:

  --verbose (-v)  run verbosely (default)

  --quiet (-q)    run quietly (turns verbosity off)

  --dry-run (-n)  don't actually do anything

  --help (-h)     show detailed help message

  --no-user-cfg   ignore pydistutils.cfg in your home directory

 

Options for 'easy_install' command:

  --prefix                   installation prefix

  --zip-ok (-z)              install package as a zipfile

  --multi-version (-m)       make apps have to require() a version

  --upgrade (-U)             force upgrade (searches PyPI for latest versions)

  --install-dir (-d)         install package to DIR

  --script-dir (-s)          install scripts to DIR

  --exclude-scripts (-x)     Don't install scripts

  --always-copy (-a)         Copy all needed packages to install dir

  --index-url (-i)           base URL of Python Package Index

  --find-links (-f)          additional URL(s) to search for packages

  --build-directory (-b)     download/extract/build in DIR; keep the results

  --optimize (-O)            also compile with optimization: -O1 for "python -

                             O", -O2 for "python -OO", and -O0 to disable

                             [default: -O0]

  --record                   filename in which to record list of installed

                             files

  --always-unzip (-Z)        don't install as a zipfile, no matter what

  --site-dirs (-S)           list of directories where .pth files work

  --editable (-e)            Install specified packages in editable form

  --no-deps (-N)             don't install dependencies

  --allow-hosts (-H)         pattern(s) that hostnames must match

  --local-snapshots-ok (-l)  allow building eggs from local checkouts

  --version                  print version information and exit

  --no-find-links            Don't load find-links defined in packages being

                             installed

  --user                     install in user site-package

                             '/Users/admin/Library/Python/2.7/lib/python/site

                             -packages'

 

usage: easy_install [options] requirement_or_url ...

   or: easy_install --help

 

admin:~ admin$ 

 

  • 참고

반응형

관련글 더보기

댓글 영역