python -c "import library_name; print(librar_name.__file__)"
2024-07-29
Python - Automatic installation of all pip packages in requirements.txt
pip install -r pip_requirements.txt
Python - Anaconda automatic installation of all requirements
conda install --file conda_requirements.txt
Python - Conda active environment check and setup
conda activate parser3
which python
python -m site
which -a python
Python - Create automatic list of pip packages, automatic requirements.txt file for existing project
pip freeze > pip_requirements.txt
Python - Create conda installed packages file automatically
cd ~/path_to/your_project/
conda list --export > conda_requirements.txt
2024-06-17
MacOS - Terminal recursive unzipping
# Good one!!
find ~/Documents/unzipTest -type f -name "*.zip" -exec unzip {} -d ~/Documents/unzipTest/ \;
# Alternative
find ~/Documents/unzipTest -type f -name "*.zip" -print0 | xargs -0 -I{} unzip {} -d ~/Documents/unzipTest
find <path_of_your_zips> -type f -name "*.zip" -exec unzip {} -d <out> \;
find <path_of_your_zips> -type f -name "*.zip" -exec unzip {} -d <out> \;
find /Users/ca/Documents/unzipTest/ -type f -name "*.zip" -exec unzip {} -d ~\Documents\unzipTest\ \;
find /Users/ca/Documents/unzipTest -type f -name "*.zip"