擅长:python、mysql、java
<p>有一个<a href="https://stackoverflow.com/questions/26922501/app-engine-unit-testing-importerror-start-directory-is-not-importable">similar question with a helpful answer here</a>。</p>
<p>但是,如果在Linux中使用类似于PyCharm的IDE并在<a href="https://askubuntu.com/questions/56339/how-to-create-a-soft-or-symbolic-link">soft-linked</a>目录中打开文件,则可能会发生这种情况。运行测试的编辑器似乎对同一个模块的两条路径感到困惑,并说其中一条不存在。把它放在一个位置,没有任何软链接为我修复了这个。</p>