Home > Blockchain >  Installed custom package from setup.py, but it doesn't show up in Conda List
Installed custom package from setup.py, but it doesn't show up in Conda List

Time:12-30

I was trying to get rid of the

ImportError: attempted relative import with no known parent package

And followed the instructions here, which basically say to create a setup.py file with the following:

from setuptools import setup, find_packages  
setup(name = 'practice01', packages = find_packages())

And then run python setup.py install from Conda command line. Package works, no import errors now. But when I do conda list I don't see "practice01." Closed/reopened session, everything still works, but it's still not on the conda list. What does python setup.py install do? Does it not install a package? Totally new to this and learning how to make packages.

CodePudding user response:

To see a list of all packages installed in your Python environment, you can use the pip freeze command instead of conda list as it only shows packages that have been installed using the conda command. also notice that python setup.py install just install the package on your current env.

  • Related