2017-02-13 71 views
0

我是这个repo的拥有者,我试图从另一个项目导入它。我使用点通过pip install git+https://github.com/FranGoitia/shapelets安装它,但我无法导入它。我尝试导入shapelets和shapelets_classifier,都没有工作。导入Python包

回答

1

您不要安装混帐回购协议的正确途径。

试试这个:

pip install -e git+git://github.com/FranGoitia/[email protected]#egg=shapelets_classifier-1.0-py3.5 

那么你可以使用 进口shapelet

0

正如你可以在仓库中看到,你实际上是试图从导入的文件是shapelet.py,所以尽量import shapelet