Overview
This article provides step-by-step instructions to configure Artifactory for resolving packages from the PaddlePaddle repository. Following these steps ensures that you can successfully install PaddlePaddle and its GPU version using `pip`.
Steps to Configure Artifactory and Resolve Packages
1. Configure Artifactory Remote PyPI
To set up Artifactory to act as a proxy for the PaddlePaddle packages, follow these configuration steps:
Step 1: Access Artifactory
- Login to your Artifactory instance.
Step 2: Create a Remote Repository
- Navigate to the Administration section.
- Under the Repositories menu, select Repositories and choose Remote
- Click on the New** button to create a new PyPii remote repository.
Step 3: Enter Repository Details
In the configuration screen, provide the following details:
Repository Key: test-paddle
URL: https://paddle-whl.bj.bcebos.com/
Registry URL: https://www.paddlepaddle.org.cn/packages/
Registry Index Location URL Suffix: stable/cu118
After entering these details, save the configuration.
2. Resolve Packages Using pip
Once your Artifactory is configured, you can resolve and install PaddlePaddle packages via `pip`. Follow the steps below:
Step 1: Install PaddlePaddle-GPU
Open your command-line interface and enter the following command, replacing `<username>`, `<password>`, and `<art_url>` with your actual credentials and Artifactory URL:
pip3 install paddlepaddle-gpu --index-url https://<username>:<password>@<art_url>/artifactory/api/pypi/test-paddle/simple/
Step 2: Monitor the Installation Process
During the installation, you should see output similar to the following as pip fetches the package:
Looking in indexes: http://<username>:****@<ART_URL>/artifactory/api/pypi/test-paddle/simple/
Collecting paddlepaddle-gpu
Downloading https://<ART_URL>/artifactory/api/pypi/test-paddle/packages/stable/cu118/paddlepaddle-gpu/paddlepaddle_gpu-3.2.2-cp312-cp312-linux_x86_64.whl (1071.6 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 GB 1.0 MB/s eta 0:00:00
Conclusion
By following the steps outlined in this article, you should now be able to configure Artifactory to successfully resolve and install PaddlePaddle packages from the specified Paddle URL.