Package in python code example
Example 1: how to install python libraries
python -m pip install SomePackage
Example 2: python upload to pip
1. Create files:
__init__.py setup.py README.md LICENSE
2. Check for setuptools and wheel:
pip install --user --upgrade setuptools wheel
3. Generate package:
py setup.py sdist bdist_wheel
4. Upload to pip:
twine upload dist/*
Example 3: package in python
A package is basically a directory with Python files and a file with the name __init__.py
Example 4: pip install python
"""to install a python module just use pip command"""
"""open cmd as administrator and write this command"""
pip install <package-name>
"""for ex. pip install pandas"""