SadieDragon / TPR-Hints-Tool

A tool to take notes on the hints provided in the current release 1.2 of the Twilight Princess Randomizer.
0 stars 1 forks source link

Cross-Platform "Install requirments" is wrong #109

Open SadieDragon opened 3 months ago

SadieDragon commented 3 months ago

Thank you Ecconia for pointing this out.

Ecconia commented 3 months ago

On my Linux system and with my python version, some "virtual environment" feature seems to have been added.

This means to run the program from source files locally I have to run the following commands:

# Executed in the project directory after cloning (on main branch).
python3 -m venv .venv
source .venv/bin/activate
pip install --upgrade pip # Optional
pip install -r requirements.txt
python3 main.py

I have no clue which systems would be affected by this, or what this means for a production release.

I found these instructions here: https://stackoverflow.com/questions/75608323/how-do-i-solve-error-externally-managed-environment-every-time-i-use-pip-3 (that also has a lot of "bad" instructions which are NOT to be followed).

Ecconia commented 3 months ago

My IDE PyCharm also has instructions on how to make this work via https://www.jetbrains.com/help/pycharm/creating-virtual-environment.html

I ran these instructions after I ran previous commands to create an environment. After I switched the interpreter, I was able to install requirements properly and start editing.