Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Découvrez les étapes de dépannage qui pourraient vous être utiles si vous rencontrez des problèmes lors de la gestion des paquets Python dans Artifact Registry.
Pour les problèmes qui s'appliquent à tous les formats d'artefacts, consultez la section Dépannage général.
Problèmes d'importation et de téléchargement de packages
Des outils tels que pip et Twine renvoient des codes d'erreur HTTP. Voici quelques codes d'erreur que vous pouvez rencontrer:
403 : problème d'authentification, peut-être dû à un manque d'autorisations pour effectuer l'opération.
404 : package introuvable. Vérifiez que le chemin d'accès et le nom du package sont corrects.
Si vous téléchargez un package, listez le contenu du dépôt pour vous assurer qu'il s'y trouve.
Pour obtenir plus d'informations sur l'erreur, exécutez à nouveau la commande avec un indicateur pour obtenir des messages plus détaillés.
pip
Exécutez la commande avec l'option --verbose ou -v. À partir de pip 21.2, vous pouvez utiliser l'indicateur jusqu'à trois fois pour obtenir une sortie supplémentaire. Par exemple, pour obtenir le niveau de détail de débogage suivant, utilisez --verbose --verbose ou -vv. Exemple :
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/09/04 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/09/04 (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/*"]]