擅长:python、mysql、java
<p>如果您查看故障排除部分,我想<a href="https://ostrokach.github.io/posts/configuring_apache_django_anaconda/" rel="nofollow noreferrer">configuring_apache_django_anaconda</a>是相关的。在</p>
<blockquote>
<p>This means that apache is using Python 2 instead of Python 3 to run a program that is designed for Python 3 only, and fails because Python 2 does not have the _sysconfigdata_m module. The solution is to add the following file to your apache envvar file (/etc/apache2/envvar):
export PATH=/opt/anaconda3/bin:$PATH</p>
</blockquote>
<p>所以,也许要检查运行的python anaconda版本是什么?在</p>
<p>这两个可能也有关联:<a href="https://stackoverflow.com/questions/21446220/linux-weird-python-output">Linux - Weird Python Output</a></p>
<p><a href="https://bugs.launchpad.net/command-not-found/+bug/1480388" rel="nofollow noreferrer">ubuntu anaconda suggested fix</a></p>
<p>我建议您打印您的PATH变量,看看是否有几个python3条目在其中,并尝试明确指定要运行哪个条目。在</p>