擅长:python、mysql、java
<p>我没有使用波动性,但听起来你需要添加产量到<code>PYTHONPATH</code>而不是<code>PATH</code>。在</p>
<p><a href="https://docs.python.org/3/tutorial/modules.html#the-module-search-path" rel="nofollow">https://docs.python.org/3/tutorial/modules.html#the-module-search-path</a></p>
<p>您可以直接从解释器运行模块:</p>
<p><a href="https://docs.python.org/3/using/cmdline.html" rel="nofollow">https://docs.python.org/3/using/cmdline.html</a></p>
<p>如果不是这些,我将查看python导入顺序,然后查看各种gotchas</p>
<p><a href="http://python-notes.curiousefficiency.org/en/latest/python_concepts/import_traps.html" rel="nofollow">http://python-notes.curiousefficiency.org/en/latest/python_concepts/import_traps.html</a></p>