Anmol Durgapal
Anmol Durgapal

Reputation: 111

Python(pip): Module Not Found, after installing my own package from pypi

So i have created this package called footyplots and have uploaded it to PyPi. It has installed successfully on my machine.

enter image description here

Here is my setup file.

enter image description here

Here is the directory tree. enter image description here

Here is the error when I am importing it. enter image description here

I don't know what's wrong. Can somebody help.

Upvotes: 1

Views: 1281

Answers (1)

Sashank
Sashank

Reputation: 580

Your setup.py is missing the packages argument to the setuptools.setup function call. You might also want to double check the package_dir argument, you might not need it at all.

Try:

  • either packages=['footyplots']
  • or packages=setuptools.find_packages()

Upvotes: 2

Related Questions