Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /var/www/html/plugins/system/falangdriver/falangdriver.php on line 534
Driver confusions - Bluetooth forum - bluetooth蓝牙技术

Deprecated: Using null as the key parameter for array_key_exists() is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/cbPluginHandler.php on line 323

Deprecated: Using null as the key parameter for array_key_exists() is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/cbPluginHandler.php on line 323

Deprecated: Using null as the key parameter for array_key_exists() is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/cbPluginHandler.php on line 323

Deprecated: Using null as the key parameter for array_key_exists() is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/cbPluginHandler.php on line 323

Deprecated: Using null as the key parameter for array_key_exists() is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/cbPluginHandler.php on line 323

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/components/com_comprofiler/plugin/user/plug_cbjdownloads/cbjdownloads.php on line 49

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/components/com_comprofiler/plugin/user/plug_cbblogs/cbblogs.php on line 48

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/components/com_comprofiler/plugin/user/plug_cbarticles/cbarticles.php on line 47

Deprecated: Using null as the key parameter for array_key_exists() is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/cbPluginHandler.php on line 323

Deprecated: Using null as the key parameter for array_key_exists() is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/cbPluginHandler.php on line 323

Deprecated: Using null as the key parameter for array_key_exists() is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/cbPluginHandler.php on line 323

Deprecated: Using null as the key parameter for array_key_exists() is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/cbPluginHandler.php on line 323

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/LegacyFoundationFunctions.php on line 217

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/LegacyFoundationFunctions.php on line 219

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/LegacyFoundationFunctions.php on line 227

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/LegacyFoundationFunctions.php on line 231

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/LegacyFoundationFunctions.php on line 234

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/LegacyFoundationFunctions.php on line 237

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/LegacyFoundationFunctions.php on line 239

Driver confusions


Deprecated: Using null as the key parameter for array_key_exists() is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/cbPluginHandler.php on line 323

Deprecated: Using null as the key parameter for array_key_exists() is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/cbPluginHandler.php on line 323

Deprecated: Using null as the key parameter for array_key_exists() is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/cbPluginHandler.php on line 323

  • Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/LegacyFoundationFunctions.php on line 189

    Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/LegacyFoundationFunctions.php on line 237

    Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/LegacyFoundationFunctions.php on line 239
    service
  • [
    Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/LegacyFoundationFunctions.php on line 189

    Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/LegacyFoundationFunctions.php on line 237

    Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/LegacyFoundationFunctions.php on line 239
    service]

  • Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/LegacyFoundationFunctions.php on line 189

    Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/LegacyFoundationFunctions.php on line 237

    Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/LegacyFoundationFunctions.php on line 239
    帖子作者

  • Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/LegacyFoundationFunctions.php on line 189

    Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/LegacyFoundationFunctions.php on line 237

    Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/LegacyFoundationFunctions.php on line 239
    离线
  • 管理员
  • 管理员
更多
2026-01-18 09:21 - 2026-01-18 09:28 #1035
Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/LegacyFoundationFunctions.php on line 189

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/LegacyFoundationFunctions.php on line 237

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/LegacyFoundationFunctions.php on line 239
by service
新帖
Hardware:

Now installed检查已安装的驱动:
Code:
pip list | Select-String "torch"  # 只查看torch相关

>> pytorch-triton-xpu         3.4.0
>> torch                      2.8.0+xpu
>> torchaudio                 2.8.0+xpu
>> torchsde                   0.2.6
>> torchvision                0.23.0+xpu

批量卸载
# 批量卸载,一次性确认
pip uninstall torch torchvision torchaudio intel-extension-for-pytorch -y

# 或者分开卸载但都自动确认
pip uninstall torch -y
pip uninstall torchvision -y
pip uninstall torchaudio -y
pip uninstall intel-extension-for-pytorch -y强力清理(如果普通卸载失败)# 如果卸载失败,可以尝试强制删除
# 找到包的安装位置
pip show torch | findstr "Location"

# 手动删除残留文件(谨慎操作!)
# 通常位置在:Python安装目录\Lib\site-packages\
# 例如:
Remove-Item -Path "C:\Python310\Lib\site-packages\torch*" -Recurse -Force -ErrorAction SilentlyContinue
Remove-Item -Path "C:\Python310\Lib\site-packages\torchvision*" -Recurse -Force -ErrorAction SilentlyContinue
Remove-Item -Path "C:\Python310\Lib\site-packages\torchaudio*" -Recurse -Force -ErrorAction SilentlyContinue
Remove-Item -Path "C:\Python310\Lib\site-packages\intel_extension_for_pytorch*" -Recurse -Force -ErrorAction SilentlyContinue

Downloaded drivers:
Powershell
Code:
(Get-ChildItem -Recurse | Select-Object Name) PS E:\AI\driver\intel> Get-ChildItem -Recurse | Select-Object Name Name ---- intel_extension_for_pytorch-2.8.10+xpu-cp310-cp310-win_amd64.whl torch-2.5.1+cxx11.abi-cp310-cp310-win_amd64.whl torchaudio-2.5.1+cxx11.abi-cp310-cp310-win_amd64.whl torchvision-0.20.1+cxx11.abi-cp310-cp310-win_amd64.whl PS E:\AI\driver\pytorch> Get-ChildItem -Recurse | Select-Object Name Name ---- pytorch_triton_xpu-3.4.0-cp310-cp310-win_amd64.whl torch-2.8.0+xpu-cp310-cp310-win_amd64.whl torchaudio-2.8.0+xpu-cp310-cp310-win_amd64.whl torchvision-0.23.0+xpu-cp310-cp310-win_amd64.whl


Install intel drivers
cd "E:\AI\driver\intel"

# 1. 先安装 PyTorch
pip install "torch-2.5.1+cxx11.abi-cp310-cp310-win_amd64.whl"

# 2. 再安装 torchvision 和 torchaudio
pip install "torchvision-0.20.1+cxx11.abi-cp310-cp310-win_amd64.whl"
pip install "torchaudio-2.5.1+cxx11.abi-cp310-cp310-win_amd64.whl"

# 3. 最后安装 Intel Extension for PyTorch
pip install "intel_extension_for_pytorch-2.8.10+xpu-cp310-cp310-win_amd64.whl"

验证安装是否成功
# 检查所有包是否安装成功
python -c "import torch; print(f'PyTorch版本: {torch.__version__}')"
python -c "import torchvision; print(f'torchvision版本: {torchvision.__version__}')"
python -c "import torchaudio; print(f'torchaudio版本: {torchaudio.__version__}')"
python -c "import intel_extension_for_pytorch as ipex; print(f'IPEX版本: {ipex.__version__}')"

# 检查是否支持XPU(Intel GPU)
python -c "import torch; print(f'XPU可用: {torch.xpu.is_available()}')"
----

如果安装Pytorch:
# 切换到目录
cd "E:\AI\driver\pytorch"

# 切换到目录
cd "E:\AI\driver\pytorch"

# 第一步:先安装 pytorch-triton-xpu(它是 torch 的依赖)
pip install "pytorch_triton_xpu-3.4.0-cp310-cp310-win_amd64.whl"

# 第二步:安装 PyTorch
pip install "torch-2.8.0+xpu-cp310-cp310-win_amd64.whl"

# 第三步:安装 torchvision
pip install "torchvision-0.23.0+xpu-cp310-cp310-win_amd64.whl"

# 第四步:安装 torchaudio
pip install "torchaudio-2.8.0+xpu-cp310-cp310-win_amd64.whl"
 
Last edit: 2026-01-18 09:28 by service.

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/LegacyFoundationFunctions.php on line 234

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/LegacyFoundationFunctions.php on line 237

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/LegacyFoundationFunctions.php on line 239

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/LegacyFoundationFunctions.php on line 189

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/LegacyFoundationFunctions.php on line 237

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/LegacyFoundationFunctions.php on line 239

登录注册一个帐号 参加讨论


Deprecated: Using null as the key parameter for array_key_exists() is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/cbPluginHandler.php on line 323

Deprecated: Using null as the key parameter for array_key_exists() is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/cbPluginHandler.php on line 323

Deprecated: Using null as the key parameter for array_key_exists() is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/cbPluginHandler.php on line 323
  • service
  • [service]
  • 帖子作者

  • Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/LegacyFoundationFunctions.php on line 189

    Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/LegacyFoundationFunctions.php on line 237

    Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/LegacyFoundationFunctions.php on line 239
    离线
  • 管理员
  • 管理员
更多
2026-01-18 09:32 #1036 by service
Replied by service on topic Driver confusions
安装完intel的提示错误:PS F:\ai\fastapi> python app.py
Traceback (most recent call last):
File "F:\ai\fastapi\app.py", line 9, in <module>
import torch
File "D:\Program Files\Python310\lib\site-packages\torch\__init__.py", line 262, in <module>
_load_dll_libraries()
File "D:\Program Files\Python310\lib\site-packages\torch\__init__.py", line 258, in _load_dll_libraries
raise err
OSError: [WinError 126] 找不到指定的模块。 Error loading "D:\Program Files\Python310\lib\site-packages\torch\lib\aoti_custom_ops.dll" or one of its dependencies.
安装完Pytorch的提示错误:
PS F:\ai\fastapi> python app.py
Traceback (most recent call last):
File "F:\ai\fastapi\app.py", line 9, in <module>
import torch
File "D:\Program Files\Python310\lib\site-packages\torch\__init__.py", line 278, in <module>
_load_dll_libraries()
File "D:\Program Files\Python310\lib\site-packages\torch\__init__.py", line 261, in _load_dll_libraries
raise err
OSError: [WinError 127] 找不到指定的程序。 Error loading "D:\Program Files\Python310\lib\site-packages\torch\lib\c10_xpu.dll" or one of its dependencies.

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/LegacyFoundationFunctions.php on line 189

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/LegacyFoundationFunctions.php on line 237

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/LegacyFoundationFunctions.php on line 239

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/LegacyFoundationFunctions.php on line 189

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/LegacyFoundationFunctions.php on line 237

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/LegacyFoundationFunctions.php on line 239

登录注册一个帐号 参加讨论


Deprecated: Using null as the key parameter for array_key_exists() is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/cbPluginHandler.php on line 323

Deprecated: Using null as the key parameter for array_key_exists() is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/cbPluginHandler.php on line 323

Deprecated: Using null as the key parameter for array_key_exists() is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/cbPluginHandler.php on line 323
  • service
  • [service]
  • 帖子作者

  • Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/LegacyFoundationFunctions.php on line 189

    Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/LegacyFoundationFunctions.php on line 237

    Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/LegacyFoundationFunctions.php on line 239
    离线
  • 管理员
  • 管理员
更多
2026-01-18 09:50 - 2026-01-18 11:01 #1037 by service
Replied by service on topic Driver confusions
遇到:Error loading "盘符:\***\Python310\lib\site-packages\torch\lib\c10_xpu.dll" or one of its dependencies.返回只安装intel的驱动:完全清理已安装的
Code:
# 1. 先完全清理 pip uninstall torch torchvision torchaudio intel-extension-for-pytorch pytorch-triton-xpu -y # 2. 删除残留文件 $pythonDir = "D:\Program Files\Python310" $torchDirs = @(     "$pythonDir\Lib\site-packages\torch",     "$pythonDir\Lib\site-packages\torchvision",      "$pythonDir\Lib\site-packages\torchaudio",     "$pythonDir\Lib\site-packages\intel_extension_for_pytorch",     "$pythonDir\Lib\site-packages\pytorch_triton_xpu" ) foreach ($dir in $torchDirs) {     if (Test-Path $dir) {         Remove-Item $dir -Recurse -Force -ErrorAction SilentlyContinue         Write-Host "删除: $dir" -ForegroundColor Yellow     } } # 3. 重新安装(先试 CPU 版本) pip install torch==2.5.1 torchvision==0.20.1 torchaudio==2.5.1 --index-url https://download.pytorch.org/whl/cpu # 4. 测试 python -c "import torch; print(f'PyTorch {torch.__version__} 安装成功'); print(f'可用设备: CPU')"

----
安装intel后,查看已安装:

PS E:\AI\driver\pytorch> pip list | Select-String "torch"

torch 2.5.1+cpu
torchaudio 2.5.1+cpu
torchsde 0.2.6
torchvision 0.20.1+cpu
Last edit: 2026-01-18 11:01 by service.

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/LegacyFoundationFunctions.php on line 189

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/LegacyFoundationFunctions.php on line 237

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/LegacyFoundationFunctions.php on line 239

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/LegacyFoundationFunctions.php on line 189

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/LegacyFoundationFunctions.php on line 237

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /var/www/html/libraries/CBLib/CB/Legacy/LegacyFoundationFunctions.php on line 239

登录注册一个帐号 参加讨论

核心: Kunena 论坛
FaLang translation system by Faboba

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /var/www/html/plugins/system/falangdriver/falangdriver.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /var/www/html/plugins/system/falangdriver/falangdriver.php on line 100
mysqli object is already closed (500 Whoops, looks like something went wrong.)

Error

HTTP 500 Whoops, looks like something went wrong.

mysqli object is already closed

Exception

Error

  1. */
  2. public function disconnect()
  3. {
  4. // Close the connection.
  5. if (\is_callable([$this->connection, 'close'])) {
  6. $this->connection->close();
  7. }
  8. parent::disconnect();
  9. }
  1. */
  2. public function disconnect()
  3. {
  4. // Close the connection.
  5. if (\is_callable([$this->connection, 'close'])) {
  6. $this->connection->close();
  7. }
  8. parent::disconnect();
  9. }
  1. *
  2. * @since 2.0.0
  3. */
  4. public function __destruct()
  5. {
  6. $this->disconnect();
  7. }
  8. /**
  9. * Alter database's character set.
  10. *
DatabaseDriver->__destruct()

Stack Trace

Error
Error:
mysqli object is already closed

  at /var/www/html/libraries/vendor/joomla/database/src/Mysqli/MysqliDriver.php:318
  at mysqli->close()
     (/var/www/html/libraries/vendor/joomla/database/src/Mysqli/MysqliDriver.php:318)
  at Joomla\Database\Mysqli\MysqliDriver->disconnect()
     (/var/www/html/libraries/vendor/joomla/database/src/DatabaseDriver.php:496)
  at Joomla\Database\DatabaseDriver->__destruct()                

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /var/www/html/plugins/system/falangdriver/falangdriver.php on line 100

Deprecated: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in /var/www/html/plugins/system/falangdriver/falangdriver.php on line 100