A few days ago, I installed the Baidu deep learning framework PaddlePaddle (PaddlePaddle) locally. I thought it would be easy to install according to the official pip command, but I was slapped in the face when I came up.
1. Use the official installation command:
python -m pip install paddlepaddle-gpu==2.4.2 -i https://pypi.tuna.tsinghua.edu.cn/simple
安装报错:
Could not find a version that satisfies the requirement paddlepaddle-gpu==2.4.2 (from versions: none)
2. Troubleshoot the problem according to the official document:
2.1 Confirm whether the version of python meets the requirements
Use the following command to confirm it is 3.6/3.7/3.8/3.9/3.10
python --version
Obviously, the locally installed python version 3.11.2 is not yet supported by paddle:
3. Install the corresponding version of python:
The python 3.7.3 installed here, and then execute the installation command to successfully install:
4. Verify that the installation is successful:
Use the python command to enter the python interpreter, enter import paddle, and then enter paddle.__version__ to verify that the version is installed correctly.
import paddle
paddle.__version__
You can see that the installed version is 2.4.2
Then input paddle.utils.run_check()
to output "PaddlePaddle is installed successfully!" indicating that it has been successfully installed.
So now you can use the PaddlePaddle framework for related model development.