Skip to content

Instantly share code, notes, and snippets.

@optimistanoop
Last active May 8, 2019 12:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save optimistanoop/220494d933aa458e34b5cbe39a6f73c0 to your computer and use it in GitHub Desktop.
Save optimistanoop/220494d933aa458e34b5cbe39a6f73c0 to your computer and use it in GitHub Desktop.
python modules installed in local folder

pip3 install numpy -t py_modules/

pip3 install -r requirements.txt -t py_modules/

Use this below lines for referencing your local py_modules

import os
import sys
where_am_i = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, where_am_i+"/py_modules")

import cv2
print(cv2.__file__)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment