Python pip 상용 명령 집합

이렇게 pip 명령 을 사 용 했 지만 계속 간단하게 사 용 했 습 니 다.많은 명령 들 이 검 사 를 사 용 했 습 니 다.검 사 를 했 습 니 다.오늘 자주 사용 하 는 명령 을 모 아서 사용 하기 편 합 니 다.
명령:

pip

위의 그림 에서 pip 가 명령 을 지원 하 는 것 을 볼 수 있 습 니 다.

Commands:
 install           Install packages.
 download          Download packages.
 uninstall          Uninstall packages.
 freeze           Output installed packages in requirements format.
 list            List installed packages.
 show            Show information about installed packages.
 check            Verify installed packages have compatible dependencies.
 search           Search PyPI for packages.
 wheel            Build wheels from your requirements.
 hash            Compute hashes of package archives.
 completion         A helper command used for command completion.
 help            Show help for commands.

General Options:
 -h, --help         Show help.
 --isolated         Run pip in an isolated mode, ignoring
               environment variables and user configuration.
 -v, --verbose        Give more output. Option is additive, and can be
               used up to 3 times.
 -V, --version        Show version and exit.
 -q, --quiet         Give less output. Option is additive, and can be
               used up to 3 times (corresponding to WARNING,
               ERROR, and CRITICAL logging levels).
 --log <path>        Path to a verbose appending log.
 --proxy <proxy>       Specify a proxy in the form
               [user:passwd@]proxy.server:port.
 --retries <retries>     Maximum number of retries each connection should
               attempt (default 5 times).
 --timeout <sec>       Set the socket timeout (default 15 seconds).
 --exists-action <action>  Default action when a path already exists:
               (s)witch, (i)gnore, (w)ipe, (b)ackup, (a)bort.
 --trusted-host <hostname>  Mark this host as trusted, even though it does
               not have valid or any HTTPS.
 --cert <path>        Path to alternate CA bundle.
 --client-cert <path>    Path to SSL client certificate, a single file
               containing the private key and the certificate
               in PEM format.
 --cache-dir <dir>      Store the cache data in <dir>.
 --no-cache-dir       Disable the cache.
 --disable-pip-version-check
               Don't periodically check PyPI to determine
               whether a new version of pip is available for
               download. Implied with --no-index.
1、install

pip install
You must give at least one requirement to install (see "pip help install")

그래서 여기 서 명령 을 직접 사용 해서 온라인 설 치 를 할 수 있 습 니 다.

pip install <  >   pip install -r requirements.txt

    == >= <= > <     ,        

requirements.txt     :

APScheduler==2.1.2
Django==1.5.4
MySQL-Connector-Python==2.0.1
MySQL-python==1.2.3
PIL==1.1.7
South==1.0.2
django-grappelli==2.6.3
django-pagination==1.0.7
로 컬 패키지 설치

pip install <  >/<   >   pip install --use-wheel --no-index --find-links=wheelhouse/ <  >
2、uninstall
설치 패 키 지 를 마 운 트 해제 하 다.

pip uninstall <  >   pip uninstall -r requirements.txt
업그레이드 패키지

pip install -U <  >

 :pip install <  > --upgrade
pip 업그레이드

pip install -U pip
혹시

  pip         :

You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

    : python -m pip install --upgrade pip
3、freeze
pip freeze,설 치 된 가방 및 버 전 정 보 를 봅 니 다.

지정 한 파일 로 내 보 냅 니 다.그림 과 같이">"를 주의 하 십시오.파일 이름 이 마음대로 됩 니 다.흔히 두 번 째 방법 으로 쓴다.

4、list

업그레이드 가능 한 가방 조회

pip list -o

5、show
가방 이 있 는 디 렉 터 리 와 정 보 를 표시 합 니 다.

6、search
검색 패키지

pip search <     >
이상 은 Python pip 상용 명령 집합의 상세 한 내용 입 니 다.Python pip 상용 명령 에 대한 자 료 는 다른 관련 글 을 주목 하 십시오!

좋은 웹페이지 즐겨찾기