Cannot Install Anything Using easy_install.exe - python

I was trying to install beautifulsoup4 and pyreadline using easy install in Python 2.7 in Windows 7 (64 bit). I am getting "timed out -- some packages may not be found" error. I tried many solutions, one of them was using pip instead of easy_install so, I tried to install "pip". But I keep on getting same kind of error.
Any help would be great. I can install "pyreadline" using windows binary but want to know the solution.
I don't know why do they call this "easy" install.
Here is the screenshot of error (don't have 10 rep).
http://i62.tinypic.com/24wrbx3.jpg

I think you have an old version of pip which tries to download packages from the wrong location.
Please install a newer version of pip.
You can verify if you have the latest version with:
pip --version

Related

Can't install lxml for python 3.8.1 on windows

I am on Windows 10 64-bit, in a venv.
Pip install lxml return
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
So I tried to use the appropriate .whl availlable here (lxml-4.5.0-cp38-cp38-win_amd64.whl) which leads to another error:
lxml-4.5.0-cp38-cp38-win_amd64.whl is not a supported wheel on this platform.
I tried to use pip.exe, pip3.exe, pip3.8.exe and the 64x and 32x bit versions of the .whl file without success
Am I missing something or is the Python 3.8 version of the package not compatible with Python 3.8.1?
This happens because you probably have an older version of python alongside 3.8 and when you install the package it references the older one. You can try deleting all python versions and installing Python 3.8 again
I used deactivate to get out of venv mode, then it worked.
Use "pip3 install lxml" and you will get it installed. Make sure you have updated pip3 version. You can install it by "easy_install -U pip3". Let me know in case of issues.

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

Pip Install throws error code 1

Recently switched from MacOSX to a ThinkPad with Windows 10.
Installed Python 3.7, Pip 9
Attempted pip install jupyter and received the following error:
Command python setup.py egg_info failed with error code 1 in
C:\Users\BRIANM~1\AppData\Local\Temp\pip-build-greiazb7\pywinpty\
Uninstalled setup tools, upgraded setup tools, upgraded pip, ran as admin, all the traditional fixes are not working.
Anyone have a fix?
Check that you have installed the 64-bit version of python and try again with
pip3 install jupyter notebook
If it still doesn't work than I would prefer you to use Anaconda it offers the easiest way to install, run and update libraries and packages and virtual environments for windows.
It comes with jupyter notebook pre-installed. On the jupyter notebook doumentation page they also recommend installing it using anaconda
I had the same problem and I found a solution that worked for me. Instead of pip I used: py -m easy_install textract
You should downgrade to python 3.6.5 (after trying all ways you can find on the Internet).
Today, I install python 3.7.0b5 on a new computer(windows 10). Then pip install didn't work with this error code 1. I tried all methods I can find on the Internet. And still stuck here. So I downgrade to 3.6.5 which works well on my mbp. Finally, it works!!!

Install opencv-python under python3 ubuntu 14.04

I want to use opencv under python 3 in Ubunto 14.04. I plan to use the PyCharm IDE to develop my program.
Inside PyCharm I choose, I set:
File/Settings/Project:HelloWorld/Project Interpreter/3.4.3(/usr/bin/python3.4)
Python 3.4.3 is the default version of python in Ubunto 14.04.
Then I try to add opencv-python package:
File/Settings/Project:HelloWorld/Project Interpreter/+ (where you add the package)
and the system gives me this error:
Executed command:
pip install opencv-python
Try to run this command from the system terminal. Make sure that you
use the correct version of 'pip' installed for your Python interpreter located at '/usr/bin/python3.4'.
DEPRECATION: --no-install, --no-download, --build, and --no-clean are deprecated. See https://github.com/pypa/pip/issues/906.
Downloading/unpacking opencv-python
Could not find any downloads that satisfy the requirement opencv-python
Cleaning up...
No distributions at all found for opencv-python
Storing debug log for failure in /root/.pip/pip.log
the error is the same when I run the command from terminal. I believe the problem is related to installing opencv under python3 but I am not sure I know if I can fix it. Please let me know your opinion.
Thanks
The fix is to update your pip and try again. This worked for me.
So, first:
pip install --upgrade pip
after that:
pip install opencv-python
First, you should not use install opencv-python, this is not the official opencv package.
Please, see:
**SOLVED** How to include libgtk2.0-dev and pkg-config in cmake when installing openCV on Ubuntu 16
If you want to install opencv, you can follow this website, that worked for me. You might need to apapt some parts (mainly version numbers, and paths during the cmake process).
I also faced similar issue in the windows and pip upgrade worked for me,
pip install --upgrade pip
and install using below command,
pip install opencv-python
As far as I can see from querying pip (using pip search opencv) there is no package called opencv-python I think the one you're looking for is pyopencv.
this issue appears to be almost identical

Error "filename.whl is not a supported wheel on this platform"

I would like to install scipy-0.15.1-cp33-none-win_amd64.whl that I have saved to the local drive. I am using:
pip 6.0.8 from C:\Python27\Lib\site-packages
python 2.7.9 (default, Dec 10 2014, 12:28:03) [MSC v.1500 64 bit (AMD64)]
When I run:
pip install scipy-0.15.1-cp33-none-win_amd64.whl
I get the following error:
scipy-0.15.1-cp33-none-win_amd64.whl is not a supported wheel on this platform
What is the problem?
cp33 means CPython 3.3.
You need scipy‑0.15.1‑cp27‑none‑win_amd64.whl instead.
This can also be caused by using an out-of-date pip with a recent wheel file.
I was very confused, because I was installing numpy-1.10.4+mkl-cp27-cp27m-win_amd64.whl (from here), and it is definitely the correct version for my Python installation (Windows 64-bit Python 2.7.11). I got the "not supported wheel on this platform" error.
Upgrading pip with python -m pip install --upgrade pip solved it.
I had the same problem while installing scipy-0.17.0-cp35-none-win_amd64.whl and my Python version was 3.5. It returned the same error message:
scipy-0.17.0-cp35-none-win_amd64.whl is not a supported wheel on this platform.
I realized that amd64 is not about my Windows, but about the Python version. Actually I am using a 32-bit Python on a 64-bit Windows. Installing the following file solved the issue:
scipy-0.17.0-cp35-none-win32.whl
Change the filename to scipy-0.15.1-cp33-none-any.whl and then run this command:
pip install scipy-0.15.1-cp33-none-any.whl
It should work :-)
I come across this problem because of a wrong name of my package (scipy-0.17.0-cp27-none-win_amd64 (1)).
After I deleted the '(1)' and changed the package to
scipy-0.17.0-cp27-none-win_amd64, the problem got resolved.
If you are totally new to Python, read step by step or go directly to 5th step directly.
Follow the below method to install SciPy 0.18.1 on Windows 64-bit, Python 64-bit.
Be careful with the versions of
Python
Windows
.whl version of NumPy and SciPy files
First install NumPy and then SciPy.
pip install FileName.whl
For NumPy: http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy
For SciPy: http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy
Be aware of the file name (what I mean is check the "cp" number).
Example: scipy-0.18.1-cp35-cp35m-win_amd64.whl
To check which "cp" number is supported by your pip. Go to point number 2 below.
If you are using .whl file, the following errors are likely to occur.
You are using pip version 7.1.0, however version 8.1.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command
scipy-0.15.1-cp33-none-win_amd64.whl.whl is not supported wheel on this platform
For the above error: start Python (in my case 3.5), and type:
import pip print(pip.pep425tags.get_supported())
Output:
[('cp35', 'cp35m', 'win_amd64'), ('cp35', 'none', 'win_amd64'), ('py3', 'none', 'win_amd64'), ('cp35', 'none', 'any'), ('cp3', 'none', 'any'), ('py35', 'none', 'any'), ('py3', 'none', 'any'), ('py34', 'none', 'any'), ('py33', 'none', 'any'), ('py32', 'none', 'any'), ('py31', 'none', 'any'), ('py30', 'none', 'any')]
In the output you will observe "cp35" is there, so download "cp35" for NumPy as well as SciPy.
Please do notice that all platform requirements *are taken from the name of the .whl file!
So be very careful with renaming of *.whl package. I occasionally renamed my newly compiled TensorFlow package from
tensorflow-1.11.0-cp36-cp36m-linux_x86_64.whl
to
tensorflow-1.11.0-cp36-cp36m-linux_x86_64_gpu.whl
just to remind myself about GPU support and struggled with
tensorflow-1.11.0-cp36-cp36m-linux_x86_64_gpu.whl is not a supported
wheel on this platform.
error for about half an hour.
First of all, cp33 means that it is to be used when you have Python 3.3 running on your system. So if you have Python 2.7 on your system, try installing the cp27 version.
Installing scipy-0.18.1-cp27-cp27m-win_amd64.whl, needs a Python 2.7 running and a 64-bit system.
If you are still getting an error saying "scipy-0.18.1-cp27-cp27m-win_amd64.whl is not a supported wheel on this platform", then go for the win32 version.
By this I mean install scipy-0.18.1-cp27-cp27m-win32.whl instead of the first one.
This is because you might be running a 32-bit python on a 64-bit system.
The last step successfully installed scipy for me.
cpXX indicates the Python version.
Whichever Python X.X version you have installed into your system, download that particular cpxx file.
For example, if you have installed Python version 3.7 then
install
packagename-packageversion-cp37-cp37m-osx_10_13_x86_64.whl
Things to check:
You are downloading proper version like cp27 (means for Python 2.7) cp36 (means for Python 3.6).
Check of which architecture (32 bit or 64 bit) your Python is (you can do it so by opening Python IDLE and typing).
import platform
platform.architecture()
Now download the file of that bit, irrespective of your system architecture.
Check whether you're using the correct filename (i.e., it should not be appended with (1) which might happen if you download the file twice)
Check if your pip is updated or not. If not, you can use:
python -m pip install -upgrade pip
For my case, with a dlib installation into my Python installation (Python 3.6.9), I have found that changing the WHL file name from dlib-19.8.1-cp36-cp36m-win_amd64.whl to dlib-19.8.1-cp36-none-any.whl works for me.
Here is the way I run pip install to install dlib:
pip3 install dlib-19.8.1-cp36-none-any.whl
However, I still wonder whether there are any alternatives to installation of a WHL file by the pip command without changing the name.
I tried to install scikit-image, but I got the following error when I tried to install the .whl file, even though my installed version of Python was 2.7 32-bit:
scikit_image-0.12.3-cp27-cp27m-win32.whl is not a supported wheel on this platform.
However, I also got this message before the error message:
You are using pip version 7.1.0, however version 8.1.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
I then ran the command python -m pip install --upgrade pip and then pip install scikit_image-0.12.3-cp27-cp27m-win32.whl worked fine.
I'm deploying Flask using Python 3.4 on IIS.
The following steps worked for me:
Upgrade pip
Install the wheel file for NumPy
pip install pandas
It's better to check the version of Python where you want to install your package.
If the wheel was built for Python 3 and your Python version is Python 2.x you may get this error.
While installing using pip, follow this convention:
python2 -m pip install XXXXXX.whl # If the .whl file is for Python 2
python3 -m pip install XXXXXX.whl # If the .whl file is for Python 3
I had a similar problem, installing a 64-bit version for Python 2.7 on Windows 7 64-bit. Everything was up-to-date, yet I got the message:
scipy-0.18.1-cp27-cp27m-win_amd64.whl is not supported wheel on this platform
Then I downloaded a 32-bit .whl file and it worked.
pip install scipy-0.18.1-cp27-cp27m-win32.whl
I suspect that the problem was probably that I didn’t have an AMD processor, rather an Intel one, and the SciPy 64-bit version says amd64 at the end.
This error might happen because of the difference between armv7 and armv6. If you download the package for armv7 and try to install for armv6, this error occurs.
For me I had similar issue. In my case, I didn't notice the python version was different (32bit vs 64bit) between the computers.
By the way, you can still do it, but you will need to manually replace all the whls files that are not recognized.
for example, for cryptography-36.0.1, from
https://pypi.org/project/cryptography/36.0.1/#files
use:
cryptography-36.0.1-cp36-abi3-win32.whl (32bit)
vs
cryptography-36.0.1-cp36-abi3-win_amd64.whl (64bit)
In addition, for some reason there were version differences between what was in the requirements.txt file, versus the whl files version in the folder.
For example, I had numpy 1.22.3 in requirements file, and numpy-1.22.2-cp39-cp39-win32.whl in the folder.
So make sure they match, and adjust the requirements file accordingly
Try Conda for installation. It seems to resolve versions
on the fly:
conda install scikit-learn
Simply, if you have more than one Python installation on your system, for example, 2.7/3.4/3.5, it's necessary you check your installation path. :)
During TensorFlow configuration I specified Python 3.6. But default, Python on my system is Python 2.7. Thus pip in my case means pip for 2.7. For me
pip3 install /tmp/tensorflow_pkg/NAME.whl
did the trick.
In my case (Windows 64-bit, Python 2.7, and Cygwin) the issue was with a missing gcc.
Using apt-cyg install gcc-core enabled me to then use pip2 wheel ... to install my wheels automatically.
I am using Python 2.7 and a Windows 64-bit system. I was getting the same error for lxml-3.8.0-cp27-cp27m-win_amd64.whl while doing pip install lxml-3.8.0-cp27-cp27m-win_amd64.whl.
Run pip install lxml and it auto-detected and successfully installed the Win32 version (though my system is Windows-64 bit)
cd C:\Python27
pip install lxml
Collecting lxml
Downloading lxml-3.8.0-cp27-cp27m-win32.whl (2.9MB)
100% |################################| 2.9MB 20kB/s
Installing collected packages: lxml
Successfully installed lxml-3.8.0
So, I will go with #1man's answer.
In my case, it had to do with not having installed the GDAL core previously. For a guide on how to install the GDAL and Basemap libraries go to GISPython
I tried a bunch of the stuff in previous answers to no avail.
Previously, I upgraded to pip 18.1, but I kept getting the following error when trying (for pyFltk):
>>from fltk import *
ImportError: DLL load failed %1 is not a valid Win32 Application
I was getting all sorts of errors about the *.whl file not being supported by my machine or something about being unable to remove the correct files from distutils.
I went back to my notes and they indicated that the whl file:
pyFltk-1.3.3.1-cp36-cp36m-win_amd64.whl but I kept getting the error above sooo...
it required pip 9.0.3 to install.
I downgraded my version of pip to 9.0.3:
pip install pip=9.0.3
And the .whl file installed properly.
This is also related to: here
I was trying to verify the installation of TensorFlow as specified here on a newly created virtual environment on Python 3.6. On running:
pip3 install --ignore-installed --upgrade "/Users/Salman/Downloads/tensorflow-1.12.0-cp37-cp37m-macosx_10_13_x86_64.whl"
I get the error and/or warning:
tensorflow-1.12.0-cp37-cp37m-macosx_10_13_x86_64.whl is not a supported wheel on this platform.
Since I had previously upgraded from pip to pip3, I simply replaced pip with pip3 as in:
pip3 install --ignore-installed --upgrade "/Users/Salman/Downloads/tensorflow-1.12.0-cp37-cp37m-macosx_10_13_x86_64.whl"
and it worked like a charm!
I had the same problem
I downloaded the latest pip from https://pypi.org/project/pip/#files
And then....
pip install << downloaded file location >>
And then the Pygame and Kivy installation worked...
For me, it worked when I selected the correct bit of my Python version, not the one of my computer version.
Mine is 32 bit, and my computer is 64 bit. That was the problem and the 32 bit version of fixed it.
To be exact, here is the one that I downloaded and worked for me:
mysqlclient-1.3.13-cp37-cp37m-win32.whl
Once again, just make sure to chose your Python version of bits and not your system one.
All right, the problem is easy. TensorFlow requires Python 3.4 - 3.7 and 64 bit. I see then you're using Python 2.7.
Read the TensorFlow install instructions on Install TensorFlow with pip.

Categories