Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
Dependency resolve
SUBMITTED BY:
Guest
DATE:
May 7, 2013, 7:01 p.m.
FORMAT:
Python
SIZE:
491 Bytes
Raw
Download
Tweet
HITS:
1370
Go to comments
Report
try
:
from
Crypto.Cipher
import
AES
except
ImportError
:
print
"You don't have PyCrypto installed"
print
"We will try installing this for you"
if
os
.
path
.
exists
(
"pip"
):
system
(
"pip install colorama"
)
else
:
# Time to install pip
getPip
()
system
(
"pip install pycrypto"
)
try
:
from
Crypto.Cipher
import
AES
except
ImportError
:
print
"Looks like you don't have pip in your path"
print
"Try installing it on your own"
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus