Dependency resolve


SUBMITTED BY: Guest

DATE: May 7, 2013, 7:01 p.m.

FORMAT: Python

SIZE: 491 Bytes

HITS: 1370

  1. try:
  2. from Crypto.Cipher import AES
  3. except ImportError:
  4. print "You don't have PyCrypto installed"
  5. print "We will try installing this for you"
  6. if os.path.exists("pip"):
  7. system("pip install colorama")
  8. else:
  9. # Time to install pip
  10. getPip()
  11. system("pip install pycrypto")
  12. try:
  13. from Crypto.Cipher import AES
  14. except ImportError:
  15. print "Looks like you don't have pip in your path"
  16. print "Try installing it on your own"

comments powered by Disqus