如何修复 PySpice WARNING - Unsupported Ngspice version 36
问题:
尝试运行 PySpice 脚本时,你会看到类似这样的错误日志
pyspice_ngspice_warning.txt
PySpice.Spice.NgSpice.Shared.NgSpiceShared._send_char - WARNING - spinit was not found
PySpice.Spice.NgSpice.Shared.NgSpiceShared._send_char - ERROR - Note: can't find init file.
PySpice.Spice.NgSpice.Shared.NgSpiceShared._init_ngspice - WARNING - Unsupported Ngspice version 36解决方案
你的 PySpice 对于系统安装的 ngspice 版本来说太新了。
通常,最简单的方法是安装稍旧的 PySpice 版本:
install_older_pyspice.sh
pip install -U "pyspice<1.5"(但你也可以更新你的 ngspice)。
Check out similar posts by category:
Electronics, Python
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow