Python 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、freezepip freeze,설 치 된 가방 및 버 전 정 보 를 봅 니 다.
지정 한 파일 로 내 보 냅 니 다.그림 과 같이">"를 주의 하 십시오.파일 이름 이 마음대로 됩 니 다.흔히 두 번 째 방법 으로 쓴다.
4、list
업그레이드 가능 한 가방 조회
pip list -o
5、show
가방 이 있 는 디 렉 터 리 와 정 보 를 표시 합 니 다.
6、search
검색 패키지
pip search < >
이상 은 Python pip 상용 명령 집합의 상세 한 내용 입 니 다.Python pip 상용 명령 에 대한 자 료 는 다른 관련 글 을 주목 하 십시오!
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
Python의 None과 NULL의 차이점 상세 정보그래서 대상 = 속성 + 방법 (사실 방법도 하나의 속성, 데이터 속성과 구별되는 호출 가능한 속성 같은 속성과 방법을 가진 대상을 클래스, 즉 Classl로 분류할 수 있다.클래스는 하나의 청사진과 같아서 하나의 ...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.