Alat seperti pip dan Twine menampilkan kode error HTTP. Beberapa kode error yang mungkin
Anda temui:
403 - Masalah autentikasi, mungkin disebabkan oleh kurangnya
izin untuk melakukan operasi.
404 - Paket tidak ditemukan. Pastikan jalur dan nama paket sudah benar.
Jika Anda mendownload paket, buat daftar konten repositori
untuk mengonfirmasi bahwa paket ada di repositori
Anda bisa mendapatkan informasi selengkapnya tentang error jika menjalankan ulang perintah dengan flag untuk pesan yang lebih mendetail.
pip
Jalankan perintah dengan flag --verbose atau -v. Mulai dari pip 21.2,
Anda dapat menggunakan flag hingga tiga kali untuk output tambahan. Misalnya,
untuk mendapatkan detail proses debug tingkat berikutnya, gunakan --verbose --verbose atau
-vv. Contoh:
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-09-02 UTC."],[[["\u003cp\u003eThis guide covers troubleshooting steps for managing Python packages in Artifact Registry.\u003c/p\u003e\n"],["\u003cp\u003eCommon HTTP error codes such as 403 (authentication issue) and 404 (package not found) are explained.\u003c/p\u003e\n"],["\u003cp\u003eYou can get more detailed error messages by using the \u003ccode\u003e--verbose\u003c/code\u003e or \u003ccode\u003e-v\u003c/code\u003e flag with pip commands, or \u003ccode\u003e--verbose\u003c/code\u003e with Twine commands.\u003c/p\u003e\n"],["\u003cp\u003eThe document suggests you can confirm a package is in a repository by listing the repositories content if you are receiving a 404 error while downloading.\u003c/p\u003e\n"]]],[],null,["# Troubleshoot Python packages issues\n\nLearn about troubleshooting steps that you might find helpful if you run into\nproblems managing Python packages in Artifact Registry.\n\nFor issues that apply to all artifact formats, see\n[General troubleshooting](/artifact-registry/docs/troubleshooting).\n\nIssues uploading and downloading packages\n-----------------------------------------\n\nTools such as pip and Twine return HTTP error codes. Some error codes you might\nencounter:\n\n- 403 - Authentication issue, possibly caused by lack of [permissions](/artifact-registry/docs/access-control#roles) to perform the operation.\n- 404 - Package not found. Verify that the path and package name are correct. If you are downloading a package, [list](/artifact-registry/docs/python/manage-packages#list) the repository contents to confirm that the package is in the repository\n\nYou can get more information about the error if you rerun the command with a\nflag for more detailed messages.\n\npip\n\n: Run the command with the `--verbose` or `-v` flag. Starting with pip 21.2,\n you can use the flag up to three times for extra output. For example\n to get the next level of debugging detail, use `--verbose --verbose` or\n `-vv`. For example:\n\n pip install -vv --index-url https://us-east1-python.pkg.dev/my-project/my-repo/simple/ my-package\n\nTwine\n\n: Run the command with the `--verbose` flag. For example:\n\n twine upload --repository-url https://us-east1-python.pkg.dev/my-project/my-repo/ --verbose dist/*"]]