Skip to content

尝试 Example 时 ModuleNotFoundError: No module named 'paddle' #3264

Answered by linonetwo
linonetwo asked this question in Q&A
Discussion options

You must be logged in to vote

先按照 https://www.paddlepaddle.org.cn/install/quick 安装 paddlepaddle ,再按照本仓库 readme 装 paddlenlp 即可

pip3 install paddlepaddle==2.3.2 -i https://pypi.tuna.tsinghua.edu.cn/simple
pip3 install --upgrade paddlenlp

上面这样安的 paddlepaddle 会报错:

/usr/local/lib/python3.9/site-packages/paddlenlp/transformers/image_utils.py:213: DeprecationWarning: BILINEAR is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BILINEAR instead.
  resample=Image.BILINEAR,
/usr/local/lib/python3.9/site-packages/paddlenlp/transformers/image_utils.py:379: DeprecationWarning: NEAREST is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.NEAREST or Dither.NONE instead.
  resample=Image.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by linonetwo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant