pyrebase install on windows Python 3.7 fails - python-3.x

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:

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

Just upgrade setuptools (Successfully installed setuptools-40.6.3) with your suggested command and install newer version of Pyrebase. (Pyrebase4).

I had the same issue. I solved it using the following steps.
pip install pycryptodome
and then I ran
pip install pyrebase

I faced the same issue when I was working with Anaconda which runs python 3.7 as its default python interpreter. So I created a virtual environment with Python 3.6 with
conda create --name env_name python=3.6
Then with conda activate env_name activate the environment and run pip install pyrebase
and it should be installed.

As Lotfi said, go to the pyrebase repository, https://github.com/thisbejim/Pyrebase and download the .zip file of git repository and then edit as he said,then save the /pyrebase folder to site packeges folder, if you still found no module error(Crypto) then visit this link, ImportError: No module named Crypto.Cipher

first install pycryptodome version 3.10.1
pip install pycryptodome==3.10.1
then install pyrebase4
pip install pyrebase4
It work for me

I couldn't solve the issue although I tried the above solutions.
Finally I can install pyrebase like following.
Re-install Python at C:\Pyton. : To avoid searching error of C:\Users...
Install JWS manually. Specify file format by UTF8 at setup.py file.
Install pycryptodomex not pycryptodome.
When make Project check following "inherit global site-packages"

i also faced the same issue with Anaconda, then i solved it by opening the command prompt of Anaconda and type the following,
pip install pycryptodome and then i ran
pip install pyrebase4, these two commands help to clear the issue

If your are using Pycharm you can install the pyrebase5 or any other modules directly from it without getting any error.
Go to Files
Open the settings(Ctrl+Alt+s if you're using Win10)
Go to the Project >> project interpreter
Now you can see all the packages installed in the root folder of python.
(Make sure your your project interpreter is selected to the python root folder :
C:\Users\ (Username)\AppData\Local\Programs\Python\Python38-32
In project interpreter you can see the +(Install) sign in the right. Click on it
the available packages window id open
Now you can search any packages you want to install like pyrebase: you can see all the versions of the pyrebase.
select the package and install package.

This worked for me.
Step 1: Follow the answer given by Nayan and answer by Lotfi. But use 'pycryptodome==VERSION_OF_PYCRYPTODOME_YOU_HAVE_ALREADY_INSTALLED'.Ex. 'pycryptodome==3.10.1'
Step 2: After that Go to the site-packages/Pyrebase folder with updated setup.py file.
Step 3: Install the Pyrebase library from that folder. For that use command
python setup.py install
That's it!

I solved my problem with the 2 steps below. I hope this is going to solve yours as well.
uninstall pyrebase:
pip uninstall pyrebase
Install Pyrebase-t:
pip install Pyrebase-t

The only thing that worked for me was deactivating the virtual environment and reactivating it before trying
pip install pyrebase

Related

Error when trying to install oct2py package

I am trying to install to oct2py package to import in my python script. However whenever I run the command pip install oct2py I get the following error:
Fatal error in launcher: Unable to create process using '"c:\python37\python.exe" "C:\Program Files\Python37\Scripts\pip.exe" ': file cannot be found.
How can I install oct2py?
Found the answer
Deinstalled python and reinstalled it. I checked the environment variable and changed it from this one : 'C:\Program Files\Python39' to this one 'C:\Users\lsee\AppData\Local\Programs\Python\Python39'.
Is unable to locate your pip installer, easy fix is unusually to either upgrade or test pip :
# to upgrade your pip
python -m pip install --upgrade pip
pip --version
# test you have pip in your machine
If your pip version is showing that means you have it installed, it could be a problem activating your virtual environnement, or your path.
It says the file cannot be locate, are you sure your path for Python and pip is correct ?
Try:
python -m pip install oct2py
This should work (as python -m pip install gave not errors)

Pip Not recognized as an external command in cmd in windows

When I am trying to install the Python 3.7.1 It installed the Python 3.7.1. I can also check the pip install checkbox. Later I am trying to install pip in cmd. The below error occurs. When I try to see the pip.exe file in Python37/Scripts it shows an empty folder. I don't know what to do and what is the issue. Please help me because it was my study project to do.
Your pip is not setup during installation, you can re-run the python installer and make sure to check the option to install pip or simply access pip using:
python3 -m pip
All commands are the same,so you can install packages like:
python3 -m pip install cython
Hope this works for you!

Can't install cx_Freeze or scipy for Python 3.7 64-bit

I'm trying to install cx_Freeze and scipy but I get a
compile failed with error code 1
error every time. Here's what I see when I try to do it with cx_Freeze:
error: file 'C:\Users\myAccount\AppData\Local\Temp\pip-install-nabp1tpo\cx-fre
eze\cxfreeze-postinstall' does not exist
----------------------------------------
Command "c:\users\myAccount\appdata\local\programs\python\python37\python.exe -u -
c "import setuptools, tokenize;__file__='C:\\Users\\myAccount\\AppData\\Local\\Tem
p\\pip-install-nabp1tpo\\cx-freeze\\setup.py';f=getattr(tokenize, 'open', open)(
__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __fil
e__, 'exec'))" install --record C:\Users\myAccount\AppData\Local\Temp\pip-record-3
6fbtmht\install-record.txt --single-version-externally-managed --compile" failed
with error code 1 in C:\Users\myAccount\AppData\Local\Temp\pip-install-nabp1tpo\c
x-freeze\
How can I fix this?
You could manage to install it from wheel.
First you need to install wheel:
pip install wheel
Then go to the following link to download the cx_Freeze wheel file according to you python version and windows version:
https://www.lfd.uci.edu/~gohlke/pythonlibs/#cx_freeze
For 64bit and Python 3.7: cx_Freeze‑5.1.1‑cp37‑cp37m‑win_amd64.whl
On your command prompt change directory to the downloaded folder and use the command:
pip install cx_Freeze‑5.1.1‑cp37‑cp37m‑win_amd64.whl
For further description on installing from wheel, check the following link: https://pip.pypa.io/en/latest/user_guide/#installing-from-wheels
The same method will solve your problem to install scipy.
It seems that this problem occurs because the version on PyPI isn't up to date.
It works for me when I manually download it from the master branch on GitHub.
pip install --upgrade git+https://github.com/anthony-tuininga/cx_Freeze.git#master
Got this answer from issue #407 published on the GitHub page.
I tried Nischal's solution (which worked) but then ran into more errors down the line.
I then rolled back python to 3.6-32bit and everything worked flawlessly, just a heads up to whoever else gets this, unless you can get cx_freeze 6.0 installed it may be easier to rollback to python3.6 (or make a virtualenv of it).
I downloaded 32 bit installer when 64 bit didn't work.
pip install cx_Freeze-5.1.1-cp37-cp37m-win32.whl
This works fine for me. So I guess no need to downgrade to Python 3.6
I am using Python 3.7 (64-bit)
Download cx_Freeze here (depending on your Python version):
And paste this .whl file in working directory.
Open command prompt, paste following command and press enter:
pip install cx_Freeze-5.1.1-cp37-cp37m-win_amd64.whl
Please note that this command is for Python 3.7(64-bit)
Output should look like:
Processing c:\users\Python37\cx_freeze-5.1.1-cp37-cp37m-win_amd64.whl*
Installing collected packages: cx-Freeze*
Successfully installed cx-Freeze-5.1.1*

Simple python library can't install

Windows 10 Enterprise version 10.0.1.15063 build 15063. Tried both pip and pip3:
pip install scipy
pip3 install scipy
Both didn't work. Even tried to specify path of python directory, still didn't work.
If you're using Windows, open Command Prompt (CMD) and run this command
run python pip -m install [module]
OR
run py pip -m install [module]
Finally installed.
Just updated git and ran the same command again "pip install scipy"
but this time it worked and installed the library.

Issue installing shapely Python Package

I am running python 3.6 on windows and am attempting to install Shapely using
pip install shapely==1.6b2
It is giving me the following errors
Command "python setup.py egg_info" failed with error code 1 in C:\Users\Cameron\AppData\Local\Temp\pip-build-242ae_ih\shapely\
I have seen the other posts about this issue and have tried:
pip install --upgrade setuptools
pip install ez_setup
easy_install -U setuptools
Nothing seems to work and I am not sure what to do next. Any advice would be appreciated.
Thanks
You may try to use the binary from this unofficial site. Just use pip install {wheel file name} to install it.
Shapely‑1.5.17‑cp36‑cp36m‑win32.whl (32-bit)
Shapely‑1.5.17‑cp36‑cp36m‑win_amd64.whl (64-bit)
Hope this would make the installation easier.
I had a similar error for installing shapely-1.5.17 via pip install shapely, and installing this made the pip install command work thereafter:
sudo apt-get install libgeos-dev
As of 2020, you can now simply install Shapely for Windows with:
pip install shapely
(you many need --upgrade to get at least version 1.7.0, when binary wheels were added for Windows)

Resources