BlueRoseNote/06-DCC/Blender/Blender Python笔记.md

18 lines
446 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 使用Pyside6以及非基础模块
安装Pyside6
```
pip install PySide6
```
默认情况下需要添加路径才能调用下载的库,执行以下代码即可:
```python
import sys
import pathlib
my_python_path = "C:\Python311\Lib\site-packages"
sys.path.insert(0, my_python_path)
```
## 其他模块
对于一些非基础模块比如PySide6.QtWebSockets需要执行以下命令进行安装
```bash
pip install PySide6-Addons
```