如何快速安装Swampy?
我按照python.org上的教程尝试安装Swampy,使用了以下几种方法:
easy_install -f http://www.greenteapress.com/thinkpython/swampy/install.html
easy_install http://www.greenteapress.com/thinkpython/swampy/swampy-2.0.python.zip
easy_install swampy-2.0
(Swampy的文件夹已经放在site-packages文件夹里了)。
但是这些方法都不管用!我到底哪里出错了呢?
1 个回答
0
如果你在使用Python 3.x版本,而swampy这个库只支持Python 2.x版本,那么你可能会遇到这个问题。这就解释了为什么会出现语法错误(前提是PyPI上swampy的版本没有其他问题)。