Update scripts/graphs/analysis_graphs_py_inst.md

This commit is contained in:
2024-06-23 00:53:43 -06:00
parent 1cfa7f1327
commit d6f5a62bcc

View File

@@ -70,6 +70,60 @@ plt.savefig('combined_scores_recommended.png')
plt.show()
```
If `pip` is not recognized as a command, it might be because it is not installed or not added to your system's PATH. Here are steps to address this:
1. **Ensure Python and pip are installed**:
- If you are on Windows, you can download the Python installer from [python.org](https://www.python.org/downloads/). During installation, make sure to check the option to "Add Python to PATH".
- If you are on macOS or Linux, Python might already be installed. You can check by running `python --version` or `python3 --version` in the terminal.
2. **Installing pip**:
- If Python is installed but pip is not, you can install pip manually. Download `get-pip.py` by running:
```bash
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
```
- Then run the following command to install pip:
```bash
python get-pip.py
```
3. **Using pip3**:
- On some systems, especially if both Python 2 and Python 3 are installed, you might need to use `pip3` instead of `pip`. You can install matplotlib using:
```bash
pip3 install matplotlib
```
4. **Verify the installation**:
- After installing pip, you can verify the installation by running:
```bash
pip --version
```
- If you had to use `pip3` to install, verify with:
```bash
pip3 --version
```
5. **Installing matplotlib with pip**:
- Once pip is available, you can install matplotlib by running:
```bash
pip install matplotlib
```
- Or if you used `pip3`:
```bash
pip3 install matplotlib
```
6. **Running the script**:
- After installing matplotlib, create the `generate_charts.py` file as described previously, and run it with:
```bash
python generate_charts.py
```
- Or if you need to use Python 3 explicitly:
```bash
python3 generate_charts.py
```
If you run into any specific issues or errors during these steps, please let me know so I can help troubleshoot further.
### Instructions to run the script:
It looks like `pip` was installed in a directory that is not included in your system's PATH. To resolve this, you can add the directory to your PATH temporarily or permanently.