擅长:python、mysql、java
<p>我开始在Spyder(水蟒)上探索Python,并面对这些问题。虽然很晚了,但这可以帮助面临类似问题的人。我在Windows7和Anaconda3(64位)上执行了这些。</p>
<p><strong>步骤1</strong>:确定安装水蟒的位置。</p>
<pre><code>Windows > All Programs > Anaconda3(64 bit) > Right Click on Spyder > Properties.
It shows Spyder target location, say, "C:\bla\bla\anaconda3\Scripts\spyder-script.py"
</code></pre>
<p><strong>第2步</strong>:现在通过文件夹资源管理器导航到步骤1中标识的路径,即“C:\ bla\bla\anaconda3\Scripts”</p>
<pre><code>Here you will see many exe files including conda.exe and pip.exe
</code></pre>
<p><strong>步骤3</strong>:打开Windows命令提示符</p>
<pre><code>C:\>cd C:\bla\bla\anaconda3\Scripts
C:\bla\bla\anaconda3\Scripts>
</code></pre>
<p><strong>步骤4</strong>:现在只需键入所有pip或conda命令。它将安装这些库</p>
<pre><code>C:\bla\bla\anaconda3\Scripts>pip install pandas
C:\bla\bla\anaconda3\Scripts>conda update conda
</code></pre>
<p><strong>步骤5</strong>:现在可以直接在Spyder中导入已安装的库。它不会抱怨的。</p>