Python Forum

Full Version: pip install paddlepaddle-tiny does not install
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I want to use the package jieba to analyse Chinese text.

From PyPI here I should install paddlepaddle-tiny. I tried various commands, but I get an error:

Quote:(GP_env) pedro@pedro-MSI:~/Python_Virtual_Environments$ pip install paddle-tiny
ERROR: Could not find a version that satisfies the requirement paddle-tiny (from versions: none)
ERROR: No matching distribution found for paddle-tiny
(GP_env) pedro@pedro-MSI:~/Python_Virtual_Environments$ pip install paddlepaddle-tiny
ERROR: Could not find a version that satisfies the requirement paddlepaddle-tiny (from versions: none)
ERROR: No matching distribution found for paddlepaddle-tiny
(GP_env) pedro@pedro-MSI:~/Python_Virtual_Environments$ pip install paddlepaddle-tiny==1.6.1
ERROR: Could not find a version that satisfies the requirement paddlepaddle-tiny==1.6.1 (from versions: none)
ERROR: No matching distribution found for paddlepaddle-tiny==1.6.1
(GP_env) pedro@pedro-MSI:~/Python_Virtual_Environments$ pip install paddlepaddle-tiny==1.6.1.
ERROR: Could not find a version that satisfies the requirement paddlepaddle-tiny==1.6.1. (from versions: none)
ERROR: No matching distribution found for paddlepaddle-tiny==1.6.1.
(GP_env) pedro@pedro-MSI:~/Python_Virtual_Environments$ pip install paddlepaddle-tiny-1.6.1
ERROR: Could not find a version that satisfies the requirement paddlepaddle-tiny-1.6.1 (from versions: none)
ERROR: No matching distribution found for paddlepaddle-tiny-1.6.1
(GP_env) pedro@pedro-MSI:~/Python_Virtual_Environments$

I can go to this page and download a .whl file, but I am not sure how to handle that.

Any tips please?

I am not sure why pip does not find the package.
I guess the problem is that the whl provided are for up to python 3.5-3.7 and I guess your python version is higher
Oh, it's the Python version, not the paddlepaddle-tiny version!

I don't really want to go back to Python 3.5, I have 3.10 I believe.

I'll try without paddle. They just said, the tokenizer works better with paddle.
Is paddlepaddle 2.6.2 and option? It is compatible with python 3.10

https://pypi.org/project/paddlepaddle/
Thanks, that is encouraging!

Some problem however:

jieba.enable_paddle()
Output:
Import error, cannot find paddle.fluid and jieba.lac_small.predict module. Now, back to jieba basic cut...... [2024-09-25 06:17:55,601] [ DEBUG] _compat.py:50 - Import error, cannot find paddle.fluid and jieba.lac_small.predict module. Now, back to jieba basic cut......
Maybe I also need a different version of jieba, but thanks anyway. I believe paddle just makes jieba better, but it should work without paddle!

import paddle

paddle.utils.run_check()
Output:
Running verify PaddlePaddle program ... PaddlePaddle works well on 1 CPU. PaddlePaddle is installed successfully! Let's start deep learning with PaddlePaddle now.