Skip to content

sudarshan-koirala/random-ML-and-DL-projects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

random machine learning and deep learning projects

Projects related to random topics in Machine Learning and Deep Learning

Creating python environment and installing packages

Assuming you have python and pip installed

Creating virtual environment with pipenv Brad YLink & Brad pipenv Cheatsheet

  1. Install pipenv -> pip3 install pipenv
  2. Creating and activating vir env -> pipenv shell
  3. Installing packages -> pipenv install packagename
  4. Installing dev packages -> pipenv install packagename --dev
  5. Installing all the packages -> pipenv install -r requirements.txt
  6. Run Jupyterlab -> jupyter lab

Creating virtual environment with virtualenv

  1. Install virtual environment -> pip3 install virtualenv
  2. Create the virtual env -> python3 -m virtualenv mlearning
  3. Activate the virutal env -> source mlearning/bin/activate
  4. Install all the packages -> pip3 install -r requirements.txt
  5. Run jupyterlab -> jupyter lab

Creating custom conda environment

  1. Create new environment: conda create -n mlearning python=3.8
  2. Activate the environment: conda activate mlearning
  3. Install all libraries through pip: pip install -r requirements.txt
  4. Create new ipython kernel: ipython kernel install --user --name mlearning

Uninstall & Update the package if necessary

  • Check which package needs update -> pip-review pip-review GitHub link
  • If uninstall needed -> pip/pip3 uninstall <packagename>
  • If update is needed -> pip/pip3 install <packagename> -U

Releases

No releases published

Packages

No packages published