【发布时间】:2017-12-09 08:27:20
【问题描述】:
我正在尝试从github 下载 python 中的this 项目
并将其导入eclipse ubuntu。
python 的解释器是 3,我注意到在 git clone 并运行 setup.py 之后,输出在文件夹 python 2.7 而不是 python 3
当我尝试import scapy_http.http 时,我得到一个例外(可能是解释器在python 2.7 文件夹中寻找它)。
当我尝试将解释器替换为 python 2.7 时,import scapy.all 上出现其他异常
import scapy假设在import scapy_http之前我为 python 3 安装了 scapy:
pip3 install scapy-python3
如果解释器是python 3,我如何将scapy-http 项目导入到我的eclipse 项目中?
谢谢。
【问题讨论】:
标签: python eclipse python-2.7 python-3.x github