用于python3.3.3的nltk-3.0a3的安装;ImportError:没有名为';设置工具&x27&引用;

用于python3.3.3的nltk-3.0a3的安装;ImportError:没有名为';设置工具&x27&引用;,python,nltk,setuptools,python-3.3,distribute,Python,Nltk,Setuptools,Python 3.3,Distribute,我已使用以下命令安装了Python 3.3.3: sudo apt-get install python3 sudo apt-get install python3-setuptools 我称之为Python3,因为我也安装了Python2.7 我还使用以下命令安装了distribute(setuptools): sudo apt-get install python3 sudo apt-get install python3-setuptools 可以肯定的是,安装工具是为python

我已使用以下命令安装了Python 3.3.3:

sudo apt-get install python3
sudo apt-get install python3-setuptools
我称之为Python3,因为我也安装了Python2.7

我还使用以下命令安装了distribute(setuptools):

sudo apt-get install python3
sudo apt-get install python3-setuptools
可以肯定的是,安装工具是为python3安装的,我用pip3进行了搜索,收到了一个输出:

$ pip3 search setuptools
setuptools                - Easily download, build, install, upgrade, and
                            uninstall Python packages
INSTALLED: 2.0 (latest)
$ python3 setup.py install
Traceback (most recent call last):
  File "setup.py", line 33, in <module>
    from setuptools import setup, find_packages
ImportError: No module named 'setuptools'
现在我想为Python3安装NLTK的版本,也就是nltk3.0a3。我从官方网站下载了它,在文件夹中我运行了一个标准python安装,并收到一个输出:

$ pip3 search setuptools
setuptools                - Easily download, build, install, upgrade, and
                            uninstall Python packages
INSTALLED: 2.0 (latest)
$ python3 setup.py install
Traceback (most recent call last):
  File "setup.py", line 33, in <module>
    from setuptools import setup, find_packages
ImportError: No module named 'setuptools'
所以实际上没有所谓的setuptools模块

有人知道我做错了什么吗?或者有没有其他方法安装Python3的NLTK?(在apt中,python 2只有NLTK)


谢谢大家的努力

您可以使用μon或您最喜欢的软件包管理器来安装
python3 setuptools
,支持python3的nltk实验版本可在

我想您还需要为Python3安装和numpy

我试了一下:

muon
检查我是否安装了
python3setuptools
python3numpy

已经从上面的链接下载并解包了代码


如果在Python3命令行中键入
import setuptools
,会发生什么?谢谢,同样的:“回溯(最近一次调用):文件“”,第1行,在ImportError中:没有名为“setuptools”的模块。嘿,Steve,谢谢你的回答。如果你读了我的帖子,你就会知道这正是我所做的。如果你进入python3并键入import setuptools,会发生什么?