Publishing Your Python Package on conda and conda-forge

Will Norris
Level Up Coding
Published in
5 min readFeb 10, 2021

It is worth publishing your python packages on conda and conda-forge

Photo by David Clode on Unsplash

Why Use Conda?

I recently wrote a post guiding users through the process of publishing their python package to PyPI to be installed via pip. However, many users prefer to use conda. I like to have my packages available on conda since it plays nicely with packages that have external dependencies. Sometimes a package will also only be available on a conda channel, and it is best to avoid mixing pip and conda installations in a single environment in order to steer clear of dependency issues.

Note: If you have not already published your package on PyPI, make sure to see the initial steps I layout in my other post. You need to have the correct file hierarchy, __init__.py files, and a License. See my example Github repo for an example of proper file hierarchy.

Conda Channels

Channels are simply the locations where packages are stored. Some very popular packages are stored in the default conda channel, many smaller packages are stored in individual user’s own channel, or there are community channels like conda-forge.

You can specify the channel you would like to use when installing a package in the command line. Or you can create a conda

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Written by Will Norris

Software Dev and Earth Scientist. Background involves the use of python and machine learning to study snowpack and full-stack web development.

Responses (3)

What are your thoughts?

I actually found getting access to twitter API quite daunting and quit trying. They kept asking me a bunch of questions like how was my use of the data not going to benefit a government agency. What was my purpose for wanting access etc. I'm not…

--

Do you have screenshots or a live demo?

--