我用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',
),