Skip to content

Instantly share code, notes, and snippets.

@cjjavellana
Created June 2, 2018 09:11
Show Gist options
  • Save cjjavellana/e58c2d75b4e90de947088821ce60214e to your computer and use it in GitHub Desktop.
Save cjjavellana/e58c2d75b4e90de947088821ce60214e to your computer and use it in GitHub Desktop.
Yum, PIP installation from Cache
## Installing Yum dependencies from cache
$ yum install -y package -C
## Building Wheel Packages for Offline Installation
$ pip wheel --wheel-dir=/tmp/SomePackage SomePackage
## Installating Wheel Packages from Cache
$ pip install --no-index --find-links=/tmp/SomePackage SomePackage
## Miscellaneous
If you have faced the error on MacOS X, here's the quick fix - add these lines to your ~/.bash_profile:
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
Credit goes to: https://coderwall.com/p/-k_93g/mac-os-x-valueerror-unknown-locale-utf-8-in-python
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment