No module name Pyrebase on Fedora 26

328 Views Asked by At

im actually doing a project where i need to communicate with a database in Python.

So, i decided to use Firebase as its pretty simple to use and im a beginner.

In my code i wrote import pyrebase and tried from pyrebase import pyrebase but i still have this error :

Traceback (most recent call last): File "./N4S.py", line 4, in import pyrebase ImportError: No module named pyrebase

My pip is up to date, i tried to install pyrebase and all tools i could found (pyasn1) with both pip and pip3 and it says that its already installed.

Thanks.

Edit : The problem is now solved, i just added import time and it suddenly works.

1

There are 1 best solutions below

1
On

Have you tryed to install it from the .whl file ?

Download link: https://pypi.python.org/pypi/Pyrebase/3.0.27

sudo pip install "Pyrebase-3.0.27-py3-none-any.whl"