正在导入 Python 包
Importing Python package
我是这个 repo 的所有者,我正在尝试从另一个项目导入它。我通过 pip install git+https://github.com/FranGoitia/shapelets
使用 pip 安装它,但我无法导入它。我尝试导入 shapelets 和 shapelets_classifier 但都没有用。
如您在存储库中所见,您实际尝试从中导入的文件是 shapelet.py,因此请尝试 import shapelet
您没有以正确的方式安装 git 存储库。
试试这个:
pip install -e git+git://github.com/FranGoitia/shapelets@master#egg=shapelets_classifier-1.0-py3.5
那么你可以使用
导入 shapelet
我是这个 repo 的所有者,我正在尝试从另一个项目导入它。我通过 pip install git+https://github.com/FranGoitia/shapelets
使用 pip 安装它,但我无法导入它。我尝试导入 shapelets 和 shapelets_classifier 但都没有用。
如您在存储库中所见,您实际尝试从中导入的文件是 shapelet.py,因此请尝试 import shapelet
您没有以正确的方式安装 git 存储库。
试试这个:
pip install -e git+git://github.com/FranGoitia/shapelets@master#egg=shapelets_classifier-1.0-py3.5
那么你可以使用 导入 shapelet