出于特定原因,我需要在 python 2.7 版本中安装 nltk 2.09b。但是每当我执行以下命令时,
pip2 install nltk==2.0b9
我收到以下错误:
Collecting nltk==2.0b9
Using cached https://files.pythonhosted.org/packages/ea/b3/4c5157bf034437905fbbd3c80e58c8b4a22cf3400db0bdf19dae3079a732/nltk-2.0b9.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
IOError: [Errno 2] No such file or directory: '/private/var/folders/3b/yskb8jks10lf_pqvv1sy7v740000gn/T/pip-install-63jdDZ/nltk/setup.py'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/3b/yskb8jks10lf_pqvv1sy7v740000gn/T/pip-install-63jdDZ/nltk/
但是,如果我在没有任何版本规范的情况下运行,则不会出现错误。像下面这样:
pip2 install nltk;
我该如何解决这个问题?
江户川乱折腾
一只萌萌小番薯
相关分类