Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

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

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:

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

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.

>Solution :

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.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading