How to make a Python script Pip-installable

As Python developers, we’ve all used pip to install applications, but speaking to other Python developers, it’s not always clear how to make your own application/script pip-installable. If you want to automatically publish your Python to PyPi, check out makepip automation tip Steps involved Create a python script, or application Add and configure a setup file Build your new Pip Package Locally Upload them both to the Python Package Index (PyPi) So let’s run through these 4 steps to get you going....

March 19, 2020 · 3 min · 581 words · Andrew

When to use Pip3 instead of Pip in Python

If you have multiple versions of Python installed on a system, such as both Python 2.7 and Python 3.6+. Then pip will often refer to the Python2 bin, while pip3 will point to the Python3 bin. You can easily tell what your own setup is by running the following commands in a terminal window / command-line. $ which pip $ which pip3 /usr/local/bin/pip3 It is also useful to know what version of Python you have on your system and where it is, as Pip is always coupled with it....

February 10, 2020 · 2 min · 263 words · Andrew

[Solved] Pip: There was a problem confirming the ssl certificate

If you ever get the following error when trying to install a Pip module under Python: Could not fetch URL https://pypi.python.org/simple/****/: There was a problem confirming the ssl certificate: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:777) - skipping Then an easy way to get around it is by adding the trusted-host flag to your commandline argument as follows: --trusted-host pypi.python.org So your final command may look something like this: pip install some_module --trusted-host pypi....

February 26, 2018 · 1 min · 73 words · Andrew