conda env remove --name paddle_env
conda create --name paddle_env2 python=3.12 -c conda-forge
conda activate paddle_env2
#conda install -c conda-forge cudatoolkit=11.7
#conda install -c https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/Paddle/ paddlepaddle-gpu==2.6.1
很奇怪,把下面的命令拆分成上面的2条命令,竟然安装失败
conda install -c https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/Paddle/ paddlepaddle-gpu==2.6.1 cudatoolkit=11.7 -c conda-forge
pip install --dry-run paddleocr
conda install -c conda-forge Cython PyYAML beautifulsoup4 charset-normalizer colorama contourpy cycler fire fonttools imageio kiwisolver lazy_loader lmdb lxml matplotlib networkx packaging pyclipper pyparsing python-dateutil python-docx rapidfuzz requests scikit-image scipy shapely six soupsieve termcolor tifffile tqdm urllib3
conda install -c conda-forge --dry-run imgaug
下面3个程序,无法用conda安装
pip install --dry-run --no-deps opencv-python
pip install --dry-run --no-deps opencv-contrib-python
pip install --dry-run --no-deps imgaug
#paddleocr 会将numpy降级到2.0以下
pip install --dry-run --no-deps paddleocr
numpy不降级,paddleocr不能用
paddleocr --image_dir .\img\zsbf.jpg
AttributeError: `np.sctypes` was removed in the NumPy 2.0 release. Access dtypes explicitly instead.. Did you mean: 'dtypes'?
没有评论:
发表评论