ERRoR: Could not find a version that satisfies the reouirement nvidia cuda nvrtccu12 (from nvidia-cudpn-cu12 (from versions: none))
解决方法: 把梯子关了
“The device should not be ‘gpu’, “ “The device should not be ‘gpu’, “ ValueError: The device should not be ‘gpu’, since PaddlePaddle is not compiled with CUDA 当前情况:环境已为GPU,paddle.utils.run.checks()显示GPU正常,代码设置无误 问题: 在终端输入pip list 可以看到 同时装了paddlepaddle和paddlepaddle-gpu 解决方法: 先pip uninstall paddlepaddle和paddlepaddle-gpu(必须两个都删掉,只删paddlepaddle是不管用的) 然后重新pip install paddlepaddle-gpu 程序运行正常; 能跑通的list版本: 实在找不到原因就把跟这个版本不一样的包uninstall再install
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 aistudio@jupyter-9311933-7542288:~$ pip list Package Version ------------------------------ --------------- absl-py 0 .8 .1 aiofiles 23 .2 .1 aiohttp 3 .8 .6 aiosignal 1 .3 .1 alembic 1 .8 .1 altair 4 .2 .0 annotated-types 0 .5 .0 anyio 3 .7 .1 argon2-cffi 21 .3 .0 argon2-cffi-bindings 21 .2 .0 aspy.yaml 1 .3 .0 astor 0 .8 .1 astroid 2 .4 .1 async-generator 1 .10 async-timeout 4 .0 .3 asynctest 0 .13 .0 attrs 22 .1 .0 audioread 2 .1 .8 autopep8 1 .6 .0 Babel 2 .8 .0 backcall 0 .1 .0 backports.zoneinfo 0 .2 .1 bce-python-sdk 0 .8 .53 beautifulsoup4 4 .11 .1 bleach 5 .0 .1 blinker 1 .6 .3 cachetools 4 .0 .0 certifi 2019 .9 .11 certipy 0 .1 .3 cffi 1 .15 .1 cfgv 2 .0 .1 chardet 3 .0 .4 charset-normalizer 3 .3 .2 Click 7 .0 cloudpickle 1 .6 .0 cma 2 .7 .0 colorama 0 .4 .4 colorlog 4 .1 .0 cryptography 38 .0 .1 cycler 0 .10 .0 Cython 0 .29 debugpy 1 .6 .0 decorator 4 .4 .2 defusedxml 0 .7 .1 dill 0 .3 .3 easydict 1 .9 entrypoints 0 .4 et-xmlfile 1 .0 .1 exceptiongroup 1 .2 .0 fastapi 0 .85 .1 fastjsonschema 2 .16 .1 ffmpy 0 .3 .1 filelock 3 .0 .12 flake8 4 .0 .1 Flask 1 .1 .1 Flask-Babel 1 .0 .0 Flask-Cors 3 .0 .8 forbiddenfruit 0 .1 .3 frozenlist 1 .3 .3 fsspec 2023 .1 .0 funcsigs 1 .0 .2 future 0 .18 .0 gast 0 .3 .3 gitdb 4 .0 .5 GitPython 3 .1 .14 google-auth 1 .10 .0 google-auth-oauthlib 0 .4 .1 gradio 3 .34 .0 gradio_client 0 .2 .6 graphviz 0 .13 greenlet 1 .1 .3 grpcio 1 .35 .0 gunicorn 20 .0 .4 gym 0 .12 .1 h11 0 .14 .0 h5py 2 .9 .0 httpcore 0 .17 .3 httpx 0 .24 .1 huggingface-hub 0 .16 .4 identify 1 .4 .10 idna 2 .8 imageio 2 .6 .1 imageio-ffmpeg 0 .3 .0 imgaug 0 .4 .0 importlib-metadata 4 .2 .0 importlib-resources 5 .9 .0 ipykernel 6 .9 .1 ipython 7 .34 .0 ipython-genutils 0 .2 .0 ipywidgets 7 .6 .5 isort 4 .3 .21 itsdangerous 1 .1 .0 jdcal 1 .4 .1 jedi 0 .17 .2 jieba 0 .42 .1 Jinja2 3 .0 .0 joblib 0 .14 .1 JPype1 0 .7 .2 json5 0 .9 .5 jsonschema 4 .16 .0 jupyter-archive 3 .2 .1 jupyter_client 7 .3 .5 jupyter-core 4 .11 .1 jupyter-lsp 1 .5 .1 jupyter-server 1 .16 .0 jupyter-telemetry 0 .1 .0 jupyterhub 1 .3 .0 jupyterlab 3 .4 .5 jupyterlab-language-pack-zh-CN 3 .4 .post1jupyterlab-pygments 0 .2 .2 jupyterlab-server 2 .10 .3 jupyterlab-widgets 3 .0 .3 kiwisolver 1 .1 .0 lap 0 .4 .0 lazy-object-proxy 1 .4 .3 librosa 0 .7 .2 lightgbm 3 .1 .1 linkify-it-py 2 .0 .2 llvmlite 0 .31 .0 lxml 4 .9 .1 Mako 1 .2 .2 Markdown 3 .1 .1 markdown-it-py 2 .2 .0 MarkupSafe 2 .0 .1 matplotlib 2 .2 .3 matplotlib-inline 0 .1 .6 mccabe 0 .6 .1 mdit-py-plugins 0 .3 .3 mdurl 0 .1 .1 mistune 0 .8 .4 more-itertools 7 .2 .0 motmetrics 1 .4 .0 moviepy 1 .0 .1 multidict 6 .0 .4 multiprocess 0 .70 .11 .1 nbclassic 0 .3 .1 nbclient 0 .5 .13 nbconvert 6 .4 .4 nbformat 5 .5 .0 nest-asyncio 1 .5 .5 netifaces 0 .10 .9 networkx 2 .4 nltk 3 .4 .5 nodeenv 1 .3 .4 notebook 5 .7 .0 numba 0 .48 .0 numpy 1 .20 .3 oauthlib 3 .1 .0 objgraph 3 .4 .1 opencv-python 4 .1 .1 .26 openpyxl 3 .0 .5 opt-einsum 3 .3 .0 orjson 3 .9 .7 packaging 21 .3 paddlehub 2 .0 .4 paddlenlp 2 .0 .7 paddlepaddle-gpu 2 .5 .2 pamela 1 .0 .0 pandas 1 .1 .5 pandocfilters 1 .5 .0 parl 1 .4 .1 parso 0 .7 .1 pathlib 1 .0 .1 pexpect 4 .7 .0 pickleshare 0 .7 .5 Pillow 8 .2 .0 pip 22 .1 .2 pkgutil_resolve_name 1 .3 .10 plotly 5 .8 .0 pluggy 1 .0 .0 pre-commit 1 .21 .0 prettytable 0 .7 .2 proglog 0 .1 .9 prometheus-client 0 .14 .1 prompt-toolkit 2 .0 .10 protobuf 4 .24 .4 psutil 5 .7 .2 ptyprocess 0 .7 .0 py4j 0 .10 .9 .2 pyarrow 12 .0 .1 pyasn1 0 .4 .8 pyasn1-modules 0 .2 .7 pycocotools 2 .0 .7 pycodestyle 2 .8 .0 pycparser 2 .21 pycryptodome 3 .9 .9 pydantic 1 .10 .13 pydantic_core 2 .14 .6 pydeck 0 .8 .1 b0 pydocstyle 5 .0 .2 pydub 0 .25 .1 pyflakes 2 .4 .0 pyglet 1 .4 .5 Pygments 2 .13 .0 pylint 2 .5 .2 Pympler 1 .0 .1 pynvml 8 .0 .4 pyOpenSSL 22 .0 .0 pyparsing 3 .0 .9 pypmml 0 .9 .11 pyrsistent 0 .18 .1 python-dateutil 2 .8 .2 python-json-logger 2 .0 .4 python-jsonrpc-server 0 .3 .4 python-language-server 0 .33 .0 python-lsp-jsonrpc 1 .0 .0 python-lsp-server 1 .5 .0 python-multipart 0 .0 .6 pytz 2019 .3 PyWavelets 1 .4 .0 PyYAML 5 .1 .2 pyzmq 23 .2 .1 rarfile 3 .1 recordio 0 .1 .7 requests 2 .22 .0 requests-oauthlib 1 .3 .0 resampy 0 .2 .2 rich 13 .7 .0 rope 0 .17 .0 rsa 4 .0 ruamel.yaml 0 .17 .21 ruamel.yaml.clib 0 .2 .6 scikit-image 0 .19 .3 scikit-learn 0 .24 .2 scipy 1 .6 .3 seaborn 0 .10 .0 semantic-version 2 .10 .0 semver 3 .0 .2 Send2Trash 1 .8 .0 sentencepiece 0 .1 .85 seqeval 1 .2 .2 setuptools 56 .2 .0 shapely 2 .0 .3 shellcheck-py 0 .7 .1 .1 simplegeneric 0 .8 .1 six 1 .16 .0 sklearn 0 .0 smmap 3 .0 .5 sniffio 1 .3 .0 snowballstemmer 2 .0 .0 SoundFile 0 .10 .3 .post1 soupsieve 2 .3 .2 .post1 SQLAlchemy 1 .4 .41 starlette 0 .20 .4 streamlit 1 .13 .0 streamlit-image-comparison 0 .0 .4 tabulate 0 .8 .3 tb-nightly 1 .15 .0 a20190801 tb-paddle 0 .3 .6 tenacity 8 .0 .1 tensorboard 2 .1 .0 tensorboardX 1 .8 termcolor 1 .1 .0 terminado 0 .15 .0 testpath 0 .4 .2 threadpoolctl 2 .1 .0 tifffile 2021 .11 .2 tinycss2 1 .1 .1 toml 0 .10 .0 toolz 0 .12 .0 tornado 6 .2 tqdm 4 .66 .1 traitlets 5 .4 .0 typed-ast 1 .4 .1 typeguard 4 .1 .2 typing_extensions 4 .7 .1 tzlocal 5 .1 uc-micro-py 1 .0 .2 ujson 1 .35 urllib3 1 .25 .6 uvicorn 0 .22 .0 validators 0 .20 .0 virtualenv 16 .7 .9 visualdl 2 .2 .0 watchdog 3 .0 .0 wcwidth 0 .1 .7 webencodings 0 .5 .1 websocket-client 1 .4 .1 websockets 11 .0 .3 Werkzeug 0 .16 .0 whatthepatch 1 .0 .2 wheel 0 .36 .2 widgetsnbextension 3 .5 .2 wrapt 1 .12 .1 xarray 0 .16 .2 xgboost 1 .3 .3 xlrd 1 .2 .0 xmltodict 0 .13 .0 yapf 0 .26 .0 yarl 1 .9 .4 zipp 3 .8 .1
ModuleNotFoundError: No module named ‘paddle.profiler’ 问题:paddlepaddle-gpu版本低,uninstall再install就ok