擅长:python、mysql、java
<p>不清楚您的问题可能是什么,但请注意,您不需要将<code>sys.path</code>的默认值添加到<code>PYTHONPATH</code>变量中。放入<code>PYTHONPATH</code>中的目录是要搜索的附加</em>目录;系统默认值附加到<code>PYTHONPATH</code>。换句话说,粗略地说:</p>
<pre><code>sys.path = ":".split( os.environ['PYTHONPATH'] ) + sys.path
</code></pre>
<p>显示<code>PYTHONPATH</code>的精确值和由此产生的错误将帮助我们确定问题。</p>