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
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.
I am a little bit confused....
I installed anaconda on my computer (I have windows 10).
Normally, when I want to install a package I simply do "pip install package_name" or "conda install package_name" and it is done.
First question: what is the difference between pip and conda?
Now I tried to install xgboost and it was really complicated I tried lot of things nothings worked until I install something called miniconda.
There it works but now, when I do "conda install package_name" it install it in miniconda3/lib/site _package and I have to copy/paste it in Anaconda3/lib/site_package if I want it to work.
Second question: how can I ask to the computer that "conda install
package_name" install it directly in anaconda3 and not miniconda3?
Finally I tried to install the package "surprise" for recommended systems. Both "pip install" or "conda install" failed.
I went in github and got the file "surprise" from https://github.com/NicolasHug/Surprise
I tried to copy it in Anaconda3/lib/site_package but it doesn't work.
When I do from surprise import Reader I did not get the error "no module name surprise" anymore but I get "cannot import name 'Reader'"
Last question: how can I make it work? I think I have to build it but
I do not now how...
Thank you in advance for anyone that can explain all this for me :-)
Similarly to you, I had issues installing the surprise package.
I tried both pip install surprise and conda install surprise unsuccessfully.
conda install -c conda-forge scikit-surprise
conda install -c conda-forge/label/gcc7 scikit-surprise
conda install -c conda-forge/label/cf201901 scikit-surprise
I found those on the anconda website and the first one worked for me.
Hopefully this would help you as well
pip vs conda
pip is a package manager that facilitates installation, upgrade,
and uninstallation of python packages. It also works with virtual python environments.
conda is a package manager for any software (installation, upgrade and uninstallation).
It also works with virtual system environments.
Conda is a packaging tool and installr that aims to do more than what pip does;
handle library dependencies outside of the Python packages as well as the Python packages themselves.
Conda also creates a virtual environment, like virtualenv does.
For more see here
Anaconda vs miniconda
The open source version of Anaconda is an easy-to-install
high performance Python and R distribution with a package manager,
environment manager and collection of 720+ open source packages.
It also comes with the options to install RStudio.
The "lite" version of Anaconda without the collection of 720 packages.
The downside is that you need to type in command line commands,
"conda install PACKAGENAME"
And Last
To install this package with conda run:
conda install -c anaconda py-xgboost=0.60
Update for surprise
The easiest way is to use pip (you'll need numpy):
$ pip install numpy
$ pip install scikit-surprise
Or you can clone the repo and build the source (you'll need Cython and numpy):
$ git clone https://github.com/NicolasHug/surprise.git
$ python setup.py install
When I use the command "pip install chromedriver" and checked the directory. It installed a directory named "chromedriver" and only have init.py and pycache inside, rather than a executable file.
Is this because some errors of my environment and how can I fix it?
Isn't the name of the package you want to install rather chromedriver_installer. So try to install chromedriver_installer with pip install chromedriver_installer and see if this works.
recently i found pip2pi, which is super useful to install pip package from local pypi repo. I just followed the post here to do that http://blog.nknj.me/python-guide-to-hacking-on-an-airplane
But when I use setup tools, requires, I do not know how I can make it to use my local repo. I do not want to download the packages each time when i run "python setup.py develop". I am getting started with pyramid, and it will be helpful if i can avoid downloading packages everytime i create a new virtualenv.
Thanks in advance
Here is workaround:
$ python setup.py egg_info
The command above creates a directory {PackageName}.egg-info and places requires.txt file into one, but downloads nothing. So you can use requires.txt file with pip command to install dependencies:
$ pip install -r {PackageName}.egg-info/requires.txt --index-url=file:///path/to/local/repo
After that, you can install your application without access to the internet:
$ python setup.py develop