pip
Last updated
Was this helpful?
Last updated
Was this helpful?
[!NOTE|label:references:]
from source code
python3.6
upgrade pip
linux
windows
from easy_install
clean cache ([pip cache](https://pip.pypa.io/en/stable/reference/pip_cache/)
)
set no cache ([pip config](https://pip.pypa.io/en/stable/reference/pip_config/)
)
[!NOTE]
[!NOTE|label:references:]
reference:
index-url
& extra-index-url
[!NOTE] reference:
[!NOTE|label:references:]
osx/unix
windows
[!NOTE|label:references:]
-r
, --requirement
<file>
PIP_REQUIREMENT
-c
, --constraint
<file>
PIP_CONSTRAINT
--no-deps
-
PIP_NO_DEPS
, PIP_NO_DEPENDENCIES
--pre
-
PIP_PRE
-e
, --editable
<path/url>
PIP_EDITABLE
--dry-run
-
PIP_DRY_RUN
-t
, --target
<dir>
PIP_TARGET
--platform
<platform>
PIP_PLATFORM
--python-version
<version>
PIP_PYTHON_VERSION
--implementation
<implementation>
PIP_IMPLEMENTATION
--abi
<abi>
PIP_ABI
--user
-
PIP_USER
--root
<dir>
PIP_ROOT
--prefix
<dir>
PIP_PREFIX
--src
<dir>
PIP_SRC
, PIP_SOURCE
, PIP_SOURCE_DIR
, PIP_SOURCE_DIRECTORY
-U
, --upgrade
-
PIP_UPGRADE
--upgrade-strategy
only-if-needed
, eager
PIP_UPGRADE_STRATEGY
--force-reinstall
-
PIP_FORCE_REINSTALL
-I
, --ignore-installed
-
PIP_IGNORE_INSTALLED
--ignore-requires-python
-
PIP_IGNORE_REQUIRES_PYTHON
--no-build-isolation
-
PIP_NO_BUILD_ISOLATION
--use-pep517
-
PIP_USE_PEP517
--check-build-dependencies
-
PIP_CHECK_BUILD_DEPENDENCIES
--break-system-packages
-
PIP_BREAK_SYSTEM_PACKAGES
-C
, --config-setting
<settings>
PIP_CONFIG_SETTING
--global-option
<options>
PIP_GLOBAL_OPTION
--compile
-
PIP_COMPILE
--no-compile
-
PIP_NO_COMPILE
--no-warn-script-location
-
PIP_NO_WARN_SCRIPT_LOCATION
--no-warn-conflicts
-
PIP_NO_WARN_CONFLICTS
--no-binary
:all
, :none
PIP_NO_BINARY
--only-binary
:all
, :none
PIP_ONLY_BINARY
--prefer-binary
-
PIP_PREFER_BINARY
--require-hashes
-
PIP_REQUIRE_HASHES
--progress-bar
on
, off
, raw
PIP_PROGRESS_BAR
--root-user-action
warn
, ignore
PIP_ROOT_USER_ACTION
--report
<file>
PIP_REPORT
--no-clean
-
PIP_NO_CLEAN
-i
, --index-url
<url>
PIP_INDEX_URL
--extra-index-url
<url>
PIP_EXTRA_INDEX_URL
--no-index
-
PIP_NO_INDEX
-f
, --find-links
<url>
PIP_FIND_LINKS
[!NOTE]
or
[!NOTE|label:references:]
--ignore-installed
--no-dependencies
--no-compile
--no-warn-script-location
--no-cache-dir
--verbose
and --quiet
[!NOTE|label:references:]
verbose
:export PIP_VERBOSE=<n>
==pip install [-v, -vv, -vvv, -vvvv]
0: no output
1: print only errors
2: print errors and warnings
3: print errors, warnings, and info
4: print everything
--trusted-host
--find-links
[!NOTE|label:references:]
error: externally-managed-environment
[!NOTE|label:references:]
issue
[!TIP|label:rerefences:]
pip.config
:
~/.pip/pip.conf
~/.config/pip/pip.conf
check pip config:
solution: via option temporary
solution: via environment vaiable
solution: remove EXTERNALLY-MANAGED file
Skipping ... due to invalid metadata entry 'name'
[!NOTE|label:info]
solution
has inconsistent version
[!NOTE|label:references:]
solution
solution:
Deprecate support for eggs for Python 3.11 or later, when the new importlib.metadata backend is used to load distribution metadata. This only affects the egg distribution format (with the .egg extension); distributions using the .egg-info metadata format (but are not actually eggs) are not affected. For more information about eggs, see