-1

I downloaded PyCharm today and installed Crypto, but it says that it's missing, I tried almost all the solutions here.

I'm using a Mac and I should be using pip3 to install any package.

Also, take a look at this screenshot, the screenshot shows the result when I search for crypto. Maybe this could be the problem:

Screenshot

Here is my code:

from firebase import firebase

firebase = firebase.FirebaseApplication("https://smallworld-89f21.firebaseio.com/")
data = {
    "Name" : "Abdullah",
    "Age" : 20
}

result = firebase.post("smallworld-89f21/hellYeah", data)
print(result)

This is the error I'm getting:

Error

halfer
  • 19,824
  • 17
  • 99
  • 186
Abdullah Ajmal
  • 431
  • 5
  • 17

2 Answers2

0

try

from crypto import PublicKey
#use PublicKey.RSA
okie
  • 847
  • 6
  • 18
0

Let me try to help you. The correct package to install is pycrypto. And I think you didn't install it through pip that is why it is giving error.

pip install pycrypto
Adam Strauss
  • 1,889
  • 2
  • 15
  • 45