导入Python包

2024-09-28 16:58:47 发布

您现在位置:Python中文网/ 问答频道 /正文

我是这个repo的所有者,我正在尝试从另一个项目导入它。我通过pip install git+https://github.com/FranGoitia/shapelets使用pip安装了它,但是我无法导入它。我尝试导入shapelets和shapelets\u分类器,但都不起作用。你知道吗


Tags: installpip项目httpsgitgithubcom分类器
2条回答

您没有正确安装git repo。你知道吗

试试这个:

pip install -e git+git://github.com/FranGoitia/shapelets@master#egg=shapelets_classifier-1.0-py3.5

那你可以用 导入shapelet

正如您在存储库中看到的,您实际尝试从中导入的文件是形状.py,所以试试import shapelet

相关问题 更多 >