Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No networks Module on PyPi #5

Open
pweibert opened this issue Nov 25, 2022 · 1 comment
Open

No networks Module on PyPi #5

pweibert opened this issue Nov 25, 2022 · 1 comment

Comments

@pweibert
Copy link

PyPi Package torchir==0.1 Does Not Include Networks Package
Reproduce:
pip3 install torchir
in python:
from torchir.networks.globalnet import ConvBlock

@nslay
Copy link

nslay commented Mar 10, 2023

Here's how I fixed it. I changed setup.py as follows (just 2 lines)

# From https://stackoverflow.com/questions/43253701/python-packaging-subdirectories-not-installed
#from distutils.core import setup
from setuptools import setup, find_packages

setup(
    name="torchir",
    #packages=["torchir"],  # Chose the same as "name"
    packages=find_packages(),
    version="0.1",
... # All the rest is the same
)

Delete the build, dist folders and egg file. Also delete the package from site-packages. Rerun python setup.py install.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants