Just a homework repository for my Econometric course.
This is a tutorial on how to setup python
, pip
and venv
. So if you know how to use it, then promptly skip this part. I would write this for Windows
and Mac
only, because Linux
and BSD
users could probably figure it out anyways. (# Fedora User)
If you don't understand what I'm talking about you could go find the relevent information on the internet or just not care and follow along
- Download Python and install it in your PATH
- Open up your terminal (
Windows
->Powershell
andMac
->Terminal
) and change the current directory
cd <dir> # replace <dir> with the correct directory
For example my folder is called econometric and is saved inside the Documents folder.
cd .\Documents\ecnometric # Windows
cd ~/Documents/econometric # Mac
- Type either one of the following commands (Whatever works for you.) to setup your
virtual environment
and activate it.
py -m venv . # or
python3 -m venv .
If you have errors now, check if Python is on your PATH
- Activate your
virtual environment
.\Script\activate # Windows
source bin/activate # Mac
- Download the required packages with
pip
python -m pip install -r .\requirements.txt # Windows
pip3 install -r requirements.txt # Mac
- Startup
Jupyter Lab
jupyter-lab
If you're on Linux, install the following dependencies (list based on apt
):
- libmpfr-dev
- libcurl4-openssl-dev
- libssl-dev
- libxml2-dev
- r-base-dev
- r-base