Raspberry pi machine cannot install due to pycrypto error - python

Im currently attempting to install the machine module via python3
however when I attempt to install the machine module via
python3 -m pip install machine
I get an error saying no matching distrubution found for pycrypto
Ive attempted to install pycrypto directly via
python3 -m pip install pycrypto
When I do this I get the same error stating that no matching disturbution for pycrypto has been found
Ive looked around and found a solution telling me to install pycryptodome
I have successfully installed it however it didnt have any impact
I have updated and upgraded everything

Related

Cannot use pip after installing Python 3.8.5 on by Bluehost domain

I have my own domain hosted by Bluehost. I went through the instructions on their instructions page and missed that it did not install _ssl. When I first ran pip to see what I had out of the gate, it gave the the standard message that it needed to upgrade pip. Which I did using python -m pip install --upgrade pip. Pip uninstalled and then failed the installation of the upgrade.
Now when I try to run pip I get a traceback that looks like it's relying on Python 2.6. The file .local/lib/python2.6/site-packages/pip/_internal/cli/cmdoptions.py line 104 binary_only = FormatControl(set(), {':all:'})
How can I restore pip, or failing that uninstall Python 3.8.5 and start over?

Not able to install "pip"

So I am trying to download pip for gRPC as given on grpc.io website. And I read many questions related to that but I am still not able to download pip. I am using mac with python (version 2.7.10).
when I write pip on console. It gives below error :-
bash: pip: command not found
I checked few questions and they were recommending easy_install pip but didn't work either.
One of my colleague recommended to use brew install pip as we have installed almost everything using brew.Got below error when I did that.
Error: No available formula with the name "pip"
Homebrew provides pip via:brew install python. However you will then
have two Pythons installed on your Mac, so alternatively you can install
pip via the instructions at:
https://pip.readthedocs.io/en/stable/installing/
I went on this link and it says to run curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py and after that, run this python get-pip.py.
I did this but it gives below thing :
Collecting pip
Using cached https://files.pythonhosted.org/packages/c2/d7/90f34cb0d83a6c5631cf71dfe64cc1054598c843a92b400e55675cc2ac37/pip-18.1-py2.py3-none-any.whl
Installing collected packages: pip
Found existing installation: pip 18.1
Uninstalling pip-18.1:
Successfully uninstalled pip-18.1
Rolling back uninstall of pip
Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/pip'
Consider using the `--user` option or check the permissions.
Could you all suggest a way to download and use pip?
UPDATE
Earlier I was trying to install using sudo easy_install pip, it was giving an error. Now I tried doing it, it got installed. Thanks all for the help.
follow the following steps:
go to pypi website pip offcial account .
Download the source file. pip-18.1.tar.gz
Extract the file.
in command prompt run command :
python setup.py install
pip is installed now.

PyAudio will NOT install

I've been trying to install PyAudio for a speechrecognition project but for everything I've tried nothing has worked. I tried to install with the latest version of python (3.7) only to noobishly find out that pyaudio isnt compatible with that yet and now im trying with 3.4.
However, whenever I run 'pip install PyAudio' I get an error message saying 'error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat).' I have Microsoft Visual C++ 10.0 installed but it just doesn't work.
I'm at my wits end here please help.
(Running Windows 8.1 btw)
A good site to know about is Christoph Gohlke's page "Python Extension Packages for Windows" at https://www.lfd.uci.edu/~gohlke/pythonlibs/.
I ended up solving my own problem by downloading a different version of python, the one that worked for me was Python 3.6.5rc1 (but any 3.6 version seems to work) (Found here: https://www.python.org/downloads/release/python-365rc1/ ) I don't know the full details of why this worked as I'm not the best at this kind of thing yet but it worked when I retried python -m pip install pyaudio(this installed pyaudio successfully)
First upgrade pip to pi3 using following command:
pip3 install --upgrade setuptools pip
and then try with
pip3 install pyaudio
It will install but old versions PyAudio-0.2.11.tar.gz, PyAudio-0.2.11-cp36-cp36m-win_amd64.whl, PyAudio-0.2.11-cp36-cp36m-win_amd64.whl, not support to python 3.7 and after it
Download file from https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio , get the file for your Python version and bitness. Paste the file of interest in location "C:\Users\YOUR_USER_NAME"
Install it with pip install filename.whl

Getting ImportError: No module named 'Crypto' after installation

I am getting ImportError: No module named 'Crypto' error when trying to run. I have installed pycrypto using pip install pycrypto and updated it also. Everything I have tried to far has been unsuccessful.
Tried:
reinstalling pycrypto,
updating both python and pycrypto
Any suggestions?
The error messages says, it does not able to find the module so please try to run below command,
#pip list -- # what does it show to you, if it would have installed successfully it will show you up there.
if "pip install pycrypto" doesn't work so try to download the source tar ball and try to install it from prompt.
pip download pycrypto
it will download tar.gz file.. so you can install using with pip install --no-index --find-links /path/to/some/dir/ pycrypto
for python3.5 version
python3.5 -m pip install pycrypto
this will install in python3.5 environment and after that you can able to import pycrypto module
Is python defined properly on your machine?
Make sure PATH environment variable has python's installation folder in it

Installing MoviePy for Python 3.2 with pip

I am trying to install the Python module MoviePy onto my Raspberry Pi for use with Python 3.2.3 which came ready installed with the OS. I have tried every command line command that I can find and lots of possible permutations of certain words.
Following are the download instructions.
https://zulko.github.io/moviepy/install.html
After much effort, I eventually managed to download pip and installed moviepy, but it was the Python 2.7 version. 😡
I found a separate thing called pip3 and installed it using:
sudo apt-get install python3-pip --fix-missing
It appeared to be successful.
Eventually I found a command that should work with Python 3.2:
pip-3.2 install moviepy
But it gave the error:
Cannot fetch index base URL http://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement moviepy
No distributions at all found for moviepy
Storing complete log in /home/Pi/.pip/pip.log
What do I do?
I have no knowledge of CLI at all...
Do
sudo pip install ez_setup
sudo pip install moviepy
If it says like pip not found type
sudo apt-get install python
Python 3 is a little harder to setup so doing that command will give you 2.7
But there syntax is basicly the same.

Categories