git clone [email protected]:Jon-Bull/ikt450.git
cd ikt450/
Show steps
Show steps
-
Create a Virtual Environment:
python3 -m venv env
This will create a directory named
env
that contains your virtual environment. -
Activate the Virtual Environment:
- On Linux or macOS:
source env/bin/activate
- On Windows:
.\env\Scripts\activate
- On Linux or macOS:
-
Install Required Packages:
pip install -r requirements.txt
Show steps
-
Create a Conda Environment:
conda create --name ikt450 python=3.x
Replace
3.x
with the desired Python version. -
Activate the Conda Environment:
conda activate ikt450
-
Install Required Packages:
pip install -r requirements.txt
Show steps
To ensure that Python can properly locate the modules within this project, you should add the project's root directory to your PYTHONPATH
environment variable. This can be done by adding the following line to your shell configuration file (e.g., .bashrc
, .zshrc
, .bash_profile
, etc.), depending on your operating system:
Show steps
- Open your terminal.
- Edit your
.bashrc
or.zshrc
file:or for zsh:nano ~/.bashrc
nano ~/.zshrc
- Add the following line at the end of the file:
export PYTHONPATH="${PYTHONPATH}:/REPLACE/THIS/PATH/ikt450/"
- Save and close the file.
- Apply the changes by sourcing the file:
or for zsh:
source ~/.bashrc
source ~/.zshrc
Show steps
- Open Command Prompt as an administrator.
- Set the
PYTHONPATH
for your session:set PYTHONPATH=%PYTHONPATH%;C:\REPLACE\THIS\PATH\ikt450\
- To set it permanently, use the
setx
command:setx PYTHONPATH "%PYTHONPATH%;C:\REPLACE\THIS\PATH\ikt450\"
Show steps
Before | Coding... | After |
---|---|---|
git pull git checkout -b <feature> |
🌟 WRITE AWESOME CODE 🌟 | git add . git commit -m "<message>" git push -u origin <feature> |
git checkout main
git pull