Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pyrebase install on windows Python 3.7 fails

I just installed python 3.7 64 bits on windows 10 for all u sers and modified the PATH I updated the pip to 18.1 I installed pygame, with

py -3 -m pip install pygame

it works fine

I wanted to install pyrebase with

py -3 -m pip install pyrebase

Download fine then I have this msg and the pip log dir is erased, so I can't figure out what is hapenning

Command ""C:\Program Files\Python37\python.exe" -u -c "import setuptools, tokenize;file='C:\Users\mine\AppData\Local\Temp\pip-install-2rr8v7jh\pycryptodome\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\Users\mine\AppData\Local\Temp\pip-record-om6lqxmm\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\mine\AppData\Local\Temp\pip-install-2rr8v7jh\pycryptodome\

but before it gives this error

Installing collected packages: pycryptodome, pyrebase

Found existing installation: pycryptodome 3.7.0

Uninstalling pycryptodome-3.7.0:

Successfully uninstalled pycryptodome-3.7.0

Running setup.py install for pycryptodome ... error

this is when I tried to install pycryptodome, which installed well alone, but when trying to install pyrebase it uninstall the previous pycryptodome and try it own but fails.

Any advice? thanks

Edit: I tried

pip install --upgrade setuptools

as suggested in https://github.com/thisbejim/Pyrebase/issues/179

but it didn't solve my issue

I am still having an error, on Windows10, python 3.7:

Installing collected packages: pycryptodome, pyrebase Running setup.py install for pycryptodome ... error Complete output from command "C:\Program Files\Python37\python.exe" -u -c "import setuptools, tokenize;file='C:\Users\...\AppData\Local\Temp\pip-install-a9kop2nb\pycryptodome\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\Users...\AppData\Local\Temp\pip-record-dm88ctzw\install-record.txt --single-version-externally-managed --compile:

like image 267
Lotfi Avatar asked Nov 24 '18 18:11

Lotfi


2 Answers

To install https://github.com/thisbejim/Pyrebase

I needed to download the .zip file (or Git) than manually install it after modifying the setup.py by specifying the latest 'pycryptodome==3.7.3' then copy the pyrebase\ directory to my python install

c:\WPy-3710\python-3.7.1.amd64\Lib\site-packages\

but the previous comment of @silkindustry showed me a new lib/Wrapper: Pyrebase4 https://github.com/nhorvath/Pyrebase4

that install easily with

pip3 install pyrebase4
like image 164
Lotfi Avatar answered Dec 11 '22 08:12

Lotfi


I had the same issue. I solved it using the following steps.

pip install pycryptodome

and then I ran

pip install pyrebase
like image 38
phantom Avatar answered Dec 11 '22 06:12

phantom