Install python2 and python3
Install pip2 and pip3
Install a package
Open the interactive interpreter
Press Ctrl+L
to clean the screen
Create a Python package
- Go to https://pypi.org and create an account
- You will need to add your phone
- Create the file
/root/.pypirc
with the following content:
- Inside
init.py
you must define the modules of the package:
- Now edit the
setup.py
file:
- Install twine:
pip3 install twine
- Upload the content:
twine upload dist/*