2016-02-25 40 views
1

我试图安装内包虚拟ENV虚拟ENV手动安装包和PIP要求知道

pip install -r requirements.txt 

不过,我必须下载并从源代码安装2包

antlr4-python2-runtime 4.5.2.1 

tar xvfz antlr4-python2-runtime-4.5.2.1.tar.gz 

cd antlr4-python2-runtime-4.5.2.1 

python setup.py install 

但现在它显示我这个错误:

Could not find any downloads that satisfy the requirement antlr-python-runtime>=3.1.3 (from Intellect==1.4.9->-r requirements.txt (line 3)) 
+0

您是否激活了virtualenv? – orvi

回答

1

我不知道发生了什么(考虑所提供的信息不够了),但是从PyPI中搜索时,它看起来这些是2个不同的包:

4版antlr4-python2-runtime

3版antlr_python_runtime

所以,看来你安装了错误的包。

注意:也请确保您正在运行python setup.py install并激活virtualenv。