Python Forum
Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python error
#11
Thanks,But could you please share complete URL link to downnload this "download and install wheel from gohlke
cycler‑0.10.0‑py2.py3‑none‑any.whl
"
Reply
#12
https://download.lfd.uci.edu/pythonlibs/...ne-any.whl
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#13
was able to download from same link ("https://www.lfd.uci.edu/~gohlke/pythonlibs/#matplotlib")
but after running cmd command error is same.
Reply
#14
1. download whl for cycle from this link
https://download.lfd.uci.edu/pythonlibs/...ne-any.whl
2. install cycler with pip install cycler-0.10.0-py2.py3-none-any.whl
3. install matplotlib with pip install matplotlib‑3.0.2‑cp36‑cp36m‑win_amd64.whl, assuming you didn't delete the whl previously downloaded

also you may need to install other dependencies, before install matplotlib
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#15
could not find a version that satisfies the requirement six (from cycler==0.10.0)(from versions: )
No matching distribution
Reply
#16
found for six (from cycler==0.10.0)

cycler error "could not find a version that satisfies the requirement six (from cycler==0.10.0)(from versions: )
No matching distribution found for six (from cycler==0.10.0)"

and for matplotlib same error still exists.

despite following advised steps still same error.

also what do you mean by other dependencies here as i downloaded cycler and matplab both and tried to install both from cmd promt but same error stil exists.
Reply
#17
Sounds like you are not following buran's instructions.

These are javascript links so can click on them to download:

if you have 64 bit python installed, download this:
  • Everything from command line:
  • Python -V
    see if 32 bit or 64 bit (this is important, don't skip this)
  • go to https://www.lfd.uci.edu/~gohlke/pythonlibs/#matplotlib
  • double click: matplotlib‑3.0.2‑cp36‑cp36m‑win_amd64.whl -- remember path where you save the file
  • cd path_where_download_exists
  • type pip -V make sure matches python 3.6.2 (if not use pip3, not pip)
  • run command
    pip install matplotlib‑3.0.2‑cp36‑cp36m‑win_amd64.whl


If you have 32 bit python installed, download this:
  • Everything from command line:
  • Python -V
    see if 32 bit or 64 bit (this is important, don't skip this)
  • go to https://www.lfd.uci.edu/~gohlke/pythonlibs/#matplotlib
  • double click: matplotlib‑2.2.3‑cp36‑cp36m‑win32.whl -- remember path where you save the file
  • cd path_where_download_exists
  • type pip -V make sure matches python 3.6.2 (if not use pip3, not pip)
  • run command
    pip install matplotlib‑2.2.3‑cp36‑cp36m‑win32.whl

Done
Reply
#18
All Requires are linked to in wheel(numpy, dateutil, pytz, pyparsing, kiwisolver, cycler, setuptools).
So only need to install matplotlib wheel as shown,Requires will be downloaded.

Look at this for to be sure that pip work.
Python 3.6/3.7 and pip installation under Windows

To show a clean install from virtual environment,as i have all this from before.
(maplot_env) G:\env\maplot_env

# Check pip,18.1 is the newest(python -m pip install --upgrade pip)
λ pip -V
pip 18.1 from g:\env\maplot_env\lib\site-packages\pip (python 3.7)

# Install wheel(.whl)
(maplot_env) G:\env\maplot_env
λ pip install matplotlib-3.0.2-cp37-cp37m-win32.whl
Processing g:\env\maplot_env\matplotlib-3.0.2-cp37-cp37m-win32.whl
Collecting kiwisolver>=1.0.1 (from matplotlib==3.0.2)
  Using cached https://files.pythonhosted.org/packages/63/95/6e03c1e40776851eda7af2e9b014bcf510e3205033c33b604c2ee36687a1/kiwisolver-1.0.1-cp37-none-win32.whl
Collecting cycler>=0.10 (from matplotlib==3.0.2)
  Using cached https://files.pythonhosted.org/packages/f7/d2/e07d3ebb2bd7af696440ce7e754c59dd546ffe1bbe732c8ab68b9c834e61/cycler-0.10.0-py2.py3-none-any.whl
Collecting numpy>=1.10.0 (from matplotlib==3.0.2)
  Downloading https://files.pythonhosted.org/packages/42/5a/eaf3de1cd47a5a6baca41215fba0528ee277259604a50229190abf0a6dd2/numpy-1.15.4-cp37-none-win32.whl (9.9MB)
    100% |████████████████████████████████| 9.9MB 1.9MB/s
Collecting python-dateutil>=2.1 (from matplotlib==3.0.2)
  Downloading https://files.pythonhosted.org/packages/74/68/d87d9b36af36f44254a8d512cbfc48369103a3b9e474be9bdfe536abfc45/python_dateutil-2.7.5-py2.py3-none-any.whl (225kB)
    100% |████████████████████████████████| 235kB 3.2MB/s
Collecting pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 (from matplotlib==3.0.2)
  Downloading https://files.pythonhosted.org/packages/71/e8/6777f6624681c8b9701a8a0a5654f3eb56919a01a78e12bf3c73f5a3c714/pyparsing-2.3.0-py2.py3-none-any.whl (59kB)
    100% |████████████████████████████████| 61kB 3.1MB/s
Requirement already satisfied: setuptools in g:\env\maplot_env\lib\site-packages (from kiwisolver>=1.0.1->matplotlib==3.0.2) (39.0.1)
Collecting six (from cycler>=0.10->matplotlib==3.0.2)
  Downloading https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl
Installing collected packages: kiwisolver, six, cycler, numpy, python-dateutil, pyparsing, matplotlib
Successfully installed cycler-0.10.0 kiwisolver-1.0.1 matplotlib-3.0.2 numpy-1.15.4 pyparsing-2.3.0 python-dateutil-2.7.5 six-1.12.0
As you see all Requires get download and installed.
So if i try pip list in virtual environment.
(maplot_env) G:\env\maplot_env
λ pip list
Package         Version
--------------- -------
cycler          0.10.0
kiwisolver      1.0.1
matplotlib      3.0.2
numpy           1.15.4
pip             18.1
pyparsing       2.3.0
python-dateutil 2.7.5
setuptools      39.0.1
six             1.12.0
Test that it work.
(maplot_env) G:\env\maplot_env
λ python
Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:06:47) [MSC v.1914 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib.pyplot as plt
>>> import numpy as np
>>> # No error in import over
This is what you look if you have 32-bit or 64-bit Python(python -V dos not show it).
Aslo you type python in cmd.
[MSC v.1914 32 bit (Intel)]
[MSC v.1914 64 bit (AMD64)]
Reply
#19
My operating system is windows 10 -64 bit.
my python version is "python 3.6.2 (v3.6.2:5fd33b5, Jul 98 2017, 04:57:36) [MSC v.1900 64 bit (AMD64) on win32"

so what does this mean my python version is 32 bit or 64 bit here?
Reply
#20
In a nutshell it means that you are running the version of python that will take advantage of your CPU's addressing capability.
You have a proper match.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020