Python Packages @ Coding:
Packages are the files for adding an external modules. In Python 3.4 PIP is installed with Python by default.
How to Check?
- Wondering if you have PIP installed? Open your termainl /console and do:
Install Guide:
Go to https://pypi.org/project/pip/ or Click Here.
Installing a Package:
- To install a package do
pip installthen the package name.
Tip
Most packages tend to have documentation on how to install their package. We reccomend you find it and follow their documentation.
Virtual Environments:
Getting an error message or a warning message about Virtual Environments? Well then you need to setup Virtual Environments. Simply enter the commands below.
$ cd your-working-directory
$ python3 -m venv bot-env
$ myenv\Scripts\activate.bat # Activate your environmen (For Windows Users).
$ source myenv/bin/activate # Activate your environment.
source myenv/bin/activate
- If your are on Windows though do: $ myenv\Scripts\activate.bat
Warning
You will need to re-install your Python Packages after activating your Virtual Environment(s).
- If you have a
requirements.txtsimply do:pip install -r requirements.txt.
Info
When forking this or contributing to this monorepo you should beware that IndiSpark uses uv to handle packages, virtual environments and more. Click Here to Learn More