擅长:python、mysql、java
<p>这是一个很奇怪的情况,如果Continuum有它的任何一部分(我是一个工程师),我们想了解是什么导致了它,这样我们就可以避免它在未来。在</p>
<p>你在哪里试着安装Python?你设置了环境变量吗?在</p>
<p>这个问题“最容易解决”的原因是您设置了一些环境变量,这些变量混合了系统Python库和Anaconda Python库。您应该查看以下输出:</p>
<pre><code>env | grep -i anaconda
</code></pre>
<p>看看有没有什么能指明通往水蟒的路。唯一应该出现的是<code>PATH</code>中的一个条目。如果有任何<code>LD_LIBRARY_PATH</code>、<code>PYTHONPATH</code>、<code>PYTHONHOME</code>或类似的环境变量指向水蟒,那么这将是一个问题。在</p>
<p>我唯一能想到的是您指定了<code>/usr</code>作为Anaconda的安装路径。如果是这样的话,你可能会陷入痛苦的世界:你刚刚用Python取代了你的系统Python。您应该研究如何强制重新安装*nix发行版附带的Python包,但即使这样做也可能很棘手:像<code>yum</code>这样的工具是用Python编写的,需要一个工作系统的Python解释器才能工作。但是RPM是二进制的(如果您使用的是RedHat或派生发行版),所以也许您可以<code>wget</code>或{<cd8>}必要的系统Python包,并强制安装它们来尝试修复问题。在</p>
<p>让我们知道这些信息是否足以让您解决问题,或者至少能更好地确定问题的根源。在</p>