

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# Python 相容性
<a name="python-compatibility"></a>

CodeArtifact 不支援 PyPI `XML-RPC`或 `JSON` APIs。

CodeArtifact 支援 PyPI 的 `Legacy` API，但 `simple` API 除外。 APIs 雖然 CodeArtifact 不支援 `/simple/` API 端點，但它確實支援`/simple/<project>/`端點。

如需詳細資訊，請參閱 Python Packaging Authority 的 GitHub 儲存庫上的以下內容。
+ [XML-RPC API](https://github.com/pypi/warehouse/blob/main/docs/dev/api-reference/xml-rpc.rst)
+ [JSON API](https://github.com/pypi/warehouse/blob/main/docs/dev/api-reference/json.rst)
+ [舊版 API](https://github.com/pypi/warehouse/blob/main/docs/dev/api-reference/legacy.rst)

## pip 命令支援
<a name="pip-command-support"></a>

除了不支援的特定命令之外，以下各節摘要 CodeArtifact 儲存庫支援的 pip 命令。

**Topics**
+ [支援與儲存庫互動的命令](#supported-pip-commands-that-interact-with-a-repository)
+ [支援的用戶端命令](#supported-pip-client-side-commands)

### 支援與儲存庫互動的命令
<a name="supported-pip-commands-that-interact-with-a-repository"></a>

本節列出 `pip` 命令，其中`pip`用戶端向所設定的登錄檔發出一或多個請求。已驗證這些命令在針對 CodeArtifact 儲存庫調用時可正常運作。


****  

| 命令 | Description | 
| --- | --- | 
|   [安裝](https://pip.pypa.io/en/stable/reference/pip_install/)   |  安裝套件。  | 
|   [下載](https://pip.pypa.io/en/stable/reference/pip_download/)   |  下載套件。  | 

CodeArtifact 不會實作 `pip search`。如果您已`pip`設定 CodeArtifact 儲存庫，執行 `pip search`會搜尋並顯示來自 [PyPI](https://pypi.org/) 的套件。

### 支援的用戶端命令
<a name="supported-pip-client-side-commands"></a>

這些命令不需要與儲存庫進行任何直接互動，因此 CodeArtifact 不需要執行任何動作來支援儲存庫。


****  

| 命令 | Description | 
| --- | --- | 
|   [解除安裝](https://pip.pypa.io/en/stable/reference/pip_uninstall/)   |  解除安裝套件。  | 
|   [凍結](https://pip.pypa.io/en/stable/reference/pip_freeze/)   |  以要求格式輸出已安裝的套件。  | 
|   [清單](https://pip.pypa.io/en/stable/reference/pip_list/)   |  列出已安裝的套件。  | 
|   [sh](https://pip.pypa.io/en/stable/reference/pip_show/)ow   |  顯示已安裝套件的相關資訊。  | 
|   [檢查](https://pip.pypa.io/en/stable/reference/pip_check/)   |  確認已安裝的套件具有相容的相依性。  | 
|   [組態](https://pip.pypa.io/en/stable/reference/pip_config/)   |  管理本機和全域組態。  | 
|   [滾輪](https://pip.pypa.io/en/stable/reference/pip_wheel/)   |  根據您的需求建置車輪。  | 
|   [雜湊](https://pip.pypa.io/en/stable/reference/pip_hash/)   |  套件封存的運算雜湊。  | 
|   [完成](https://pip.pypa.io/en/stable/user_guide/#command-completion)   |  協助完成命令。  | 
|   [debug](https://pip.pypa.io/en/stable/reference/pip_debug/)   |  顯示適用於偵錯的資訊。  | 
|  說明  |  顯示 命令的說明。  | 