It is searched on the pip list, but it is not visible when importing.

Asked 2 years ago, Updated 2 years ago, 101 views

Create and install user packages Pip list provides a good view of the installed packages. And if you import from Python code, you should see the name of the installed package I can't see it. Please tell me what the cause is.

For your information, there were cases where it was imported

pip

2022-09-20 21:46

1 Answers

It's a self-answer.
Inside the setup.py file, you can import the same file name and module name.
If you know the exact cause, please leave a comment.

from setuptools import setup

setup(
    name="z_stock_model", #<<<------------------------
    version='1.0.1',
    description='this module is rnn test module for lstm',
    author='honna',
    author_email='[email protected]',
    url='honna.com',
    py_modules=['z_stock_model'], #<<<------------------------
)


2022-09-20 21:46

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.