擅长:python、mysql、java
<p>我遇到了同样的问题。。。
你必须使用<a href="https://docs.python.org/3/library/venv.html" rel="nofollow noreferrer">virtual-env</a>(由社区推荐)。在</p>
<p>在一个活动的虚拟环境中重新安装所有的依赖项(包括SPI模块)对我来说很有帮助。在</p>
<p>文件:<a href="https://virtualenv.pypa.io/en/stable/" rel="nofollow noreferrer">Virtualenv</a>。在</p>