Skip to content

Instantly share code, notes, and snippets.

View GPla's full-sized avatar

GPla

View GitHub Profile
@AnsonH
AnsonH / pipsize.py
Created March 5, 2022 04:20
Lists size of pip packages
# Run `python pipsize.py` in Terminal to show size of pip packages
# Credits: https://stackoverflow.com/a/67914559/11067496
sort_in_descending = True # Show packages in descending order
import os
import pkg_resources
def calc_container(path):
total_size = 0
@pratos
pratos / condaenv.txt
Created November 30, 2016 07:01
To package a conda environment (Requirement.txt and virtual environment)
# For Windows users# Note: <> denotes changes to be made
#Create a conda environment
conda create --name <environment-name> python=<version:2.7/3.5>
#To create a requirements.txt file:
conda list #Gives you list of packages used for the environment
conda list -e > requirements.txt #Save all the info about packages to your folder