安装车轮后未找到模块

时间:2019-05-31 10:18:42

标签: python-3.x setup.py python-wheel

我用setup.txt用

建立了自己的
python setup.txt bdist_wheel

比我有dist/GraphCalculatorVisualiser-0.0.1-py3-none-any.whl

使用

安装后
pip install GraphCalculatorVisualiser-0.0.1-py3-none-any.whl

(安装为 成功),我可以在

中看到此模块
pip freeze

就像GraphCalculatorVisualiser==0.0.1

但是当我尝试在程序中使用它时,出现了错误

>>> import GraphCalculatorVisualiser
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'GraphCalculatorVisualiser'**

我该如何解决?

这是setup.txt:

from setuptools import setup, find_packages
from pathlib import Path
from os import path


datapath = Path(__file__).parent.resolve()

with open(datapath / "README.md",encoding="utf8") as file:
    long_decription = file.read()

setup(
    name='GraphCalculatorVisualiser',
    version='0.0.1',
    author='Ildar Kharrasov, Stanislav Kitaev, Anastasia Mazurenko',
    author_email='kharrasov.radiokha94@yandex.ru',
    description='',
    long_decription=long_decription,
    packages=find_packages(exclude=['Tests']),
    url='https://github.com/darioradio1man/python-cmc-msu',
    classifiers=[
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
        'Programming Language :: Python :: 3.7',
    ],
    install_requires=[
        'matplotlib==3.1.0',
        'numpy==1.16.4',
        'networkx==2.3',
        'flake8-per-file-ignores==0.8.1',
    ],
    locale_src='./GraphCalculator/ru/LC_MESSAGES',
),

enter image description here

0 个答案:

没有答案