Guest User

Untitled

a guest
May 26th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3.  
  4. # // import native python packages
  5. import os
  6. import subprocess
  7.  
  8. # // define function that will execute pip package installation
  9. def install(name):
  10. subprocess.call(['pip', '--proxy=cr-proxy.us.aegon.com:9090', 'install', '-U', name])
  11.  
  12. # // install packages as desired
  13. install('dbfread')
  14. install('pandas')
  15.  
  16. # // once packages are install, import them into your python script
  17. import dbfread
  18. import pandas as pd
Add Comment
Please, Sign In to add comment