How to download matplotlib for python 3.7 in windows 8? - python

How do you download matplotlib to windows so I can use it with python?
Every other question related to this that I've found on StackOverflow has led to the same problem which is that it keeps giving me the error:
python setup.py egg_info failed with error code 1 in C:\Users\Myname\AppData\Local\Temp\pip-install-9gc765gs\matplotlib\
Things I have tried (from the command prompt):
pip install matplotlib
pip install matplotlib-1.5.0-cp35-none-win_amd64.whl (which is the file I downloaded from SourceForge and is now stored in my computer)
pip install "matplotlib-1.5.0-cp35-none-win_amd64.whl"
python -mpip install -U matplotlib
I even tried tried:
pip install --upgrade setuptools
python -mpip install -U pip
prior to using the other commands to make sure everything was up to date.
Any help would be very appreciated.

Matplotlib has not been officially released for Python 3.7 yet.
As of this writing, a 3.7 version for Mac and Linux has been uploaded to PyPI earlier today, which means the Windows versions are probably coming very soon. pip will probably work after that.
Similarly, no 3.7 compatible versions have been put onto conda-forge or integrated into the main conda repo yet. I'm sure those will be coming in the next couple of weeks.
Until then, maybe installing from source will work?

Related

ERROR: You must give at least one requirement to install - CDSW

I am trying to install packages on my cdsw environment.
I have placed the packages in my cd /home/ folder
and I am running below command:
pip install --no-index --find-links=/home/cdsw/Package/scipy-1.7.1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl
I get below error:
ERROR: You must give at least one requirement to install (maybe you meant "pip install /home/cdsw/Package/scipy-1.7.1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl"?)
Linux version:
4.4
Python 2: Python 2.7.11
Python 3: Python 3.6.1
Java: openjdk version "1.8.0_211"
How do I resolve this problem.
Currently, you are only passing information to pip of where you want to find the package but not what package to install. find-links is used to pass a location of where your package will be located (and not the package).
To successfully installl you can use:
pip install --no-index /home/cdsw/Package/scipy-1.7.1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl
Edit 1:
Based on your comments, you also do not have the whl downloaded. So, you can also simply install scipy using the command:
pip install scipy
or can download a specific whl file from scipy's github
Edit 2:
Since you still are running into the error, and have 2 python versions installed, the pip command might be associated with python2.7. In that case, it is likely that python3 is the command associated to the python3 installation and python is the command associated to the python2 installation. Using the command in the format below will install scipy correctly.
python3 -m pip install --no-index /home/cdsw/Package/scipy-1.7.1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl
Edit 3:
You have python 3.6.1 installed on your machine, which is not supported by scipy v1.7.1. You have 2 options to fix this issue:
Upgrade to a newer version of python
Install a version of scipy which has python 3.6 support. I looked into the same and found v1.5.4 as the last version with support for python 3.6 support. You can download the whl for the same here.
Make sure you are downloading the file containing a file with cp36 in it, since those will be the files compatible with python 3.6

Pip won't let me upgrade to the latest version of package

How can I upgrade to 0.1.20 of ax-platform?
0.1.20 was released yesterday and appears on pypi
I have 0.1.19 and wish to upgrade to 0.1.20
If I run:
pip install --upgrade ax-platform
I just get:
Requirement already satisfied: ax-platform... (0.1.9)
If I uninstall and then install again with the above command or with pip install --upgrade –-no-cache-dir ax-platform “–no-cache-dir” I just get 0.1.19.
pip version 21.0.1
EDIT:
reason is one of the dependencies doesn't support python 3.6
First, try specifying version on command line pip install --upgrade ax-platform==0.1.20. If it doesn't work it means that PIP thinks that this package is not available for your system (combination of Python version, OS version, CPU version, etc).
Second, you may try installing manually, go to this page. There download .whl file. And install it by pip install --upgrade ax_platform-0.1.20-py3-none-any.whl. If for some reason you don't see .whl file download link, here it is.
Also for any PIP package if you want to get .whl file manually, go to pypi project's page (e.g. this), there on upper left of the page (navigation pane) go to "Release History", choose (click) version that you want, then on same navigation pane go to "Download files". There you'll see .whl files download link. You have to choose .whl file that suits your Python/OS/CPU version.
Also if PIP fails for any reason then try adding option --verbose to pip command line, it should help you to see real full reason or explanation of your failure. For example for ax-platform package it shows several debug screens of installing process and shows a message Acceptable python versions are:>=3.7, and you have Python 3.6, so it is definitely a reason of failure. Basically --verbose will help you debug real reason of failure of any pip command.
As it appeared to be that you have Python 3.6 and ax-platform needs Python >= 3.7. So only way to have the newest version of your package is to reinstall Python to 3.7 or newer or to use virtual environments with different versions of Pythons.

I get an error while trying to install Ride

I get an error when I type the command to install Robotframework ride on my Debian :
pip3 install robotframework--ride
The error is :
Could not find a version that satisfies the requirement Pywin32 (from robotframework--ride) (from versions: )
No matching distribution found for Pywin32 (from robotframework--ride)
Btw, it is quite strange that Pywin32 is mentionned while I'm not on Windows... I have both python2 andpython3` on my machine and I've read many topics where I saw it could bring about problems so it may be the reason I have this error...
can you please try the following two steps mentioned below?
According to this RIDE-doc, one needs to do the following if they are not on windows.
Excerpt from release notes
NOTE: The installation process mentioned in
the RIDE-RELEASE-NOTES is only working smoothly on Windows.
For other operating systems is better to do a two step install, with:
pip install -U -r https://raw.githubusercontent.com/robotframework/RIDE/master/requirements.txt
pip install -U robotframework-ride
That problem was fixed in versions not yet released.
See Release Notes for v1.7.4b2 on recommendations to install. Please install wxPython before.
A new version will be released soon.
pip install -U -r https://raw.githubusercontent.com/robotframework/RIDE/master/requirements.txt
pip install -U robotframework-ride
Try the above installation.
pip3 install robotframework--ride is only for Windows according to instruction given. Apparently Pywin32 is for creating desktop shortcut in windows.

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 stuck while "Using cached wheezy.template-0.1.167.tar.gz"

I recently had issues with my local Anaconda version and decided to reinstall it.
I chose the newest version (Anaconda 5.0.1 (Python 3.6)) and started to reinstall all my packages.
There's a problem installing pyimzml package.
To install it, I've tried:
pip install pyimzml
and
pip install git+git://github.com/alexandrovteam/pyimzML.git
Pip always gets stuck during Using cached wheezy.template-0.1.167.tar.gz.
Tried to install wheezy.template as source tarball from PyPI with pip, then it stucks at Processing c:\users\kawu\downloads\wheezy.template-0.1.167.tar.gz.
What can I do?
I solved the problem with the following steps (Windows 10 x64 machine):
Download wheezy.template tarball
Extract it and remove the nthreads=2 within the setup.py code.
Install wheezy.template with the python .\setup.py install command.
Install pyimzml
I tried many ways to install wheezy.template in my machine, like pip by network, pip/easy_install from local file, but the way above was the only way working out. I can not explain why but it works.

Categories