problem of installing matplotlib

21 views
Skip to first unread message

Weiwei Sun

unread,
Aug 9, 2018, 2:30:46 PM8/9/18
to pycroscopy
I got stuck on the installationof matplotlib:





mac98587:~ ws4$ python -mpip install -U matplotlib

Collecting matplotlib

Using cached https://files.pythonhosted.org/packages/61/38/d70e8bf77d5cb27d5f3595edd0b3978825063feadd023786d2591e393e6e/matplotlib-2.2.2-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl

Collecting python-dateutil>=2.1 (from matplotlib)

Using cached https://files.pythonhosted.org/packages/cf/f5/af2b09c957ace60dcfac112b669c45c8c97e32f94aa8b56da4c6d1682825/python_dateutil-2.7.3-py2.py3-none-any.whl

Requirement already satisfied, skipping upgrade: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from matplotlib) (2.0.1)

Requirement already satisfied, skipping upgrade: numpy>=1.7.1 in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from matplotlib) (1.8.0rc1)

Requirement already satisfied, skipping upgrade: pytz in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from matplotlib) (2013.7)

Collecting backports.functools-lru-cache (from matplotlib)

Using cached https://files.pythonhosted.org/packages/03/8e/2424c0e65c4a066e28f539364deee49b6451f8fcd4f718fefa50cc3dcf48/backports.functools_lru_cache-1.5-py2.py3-none-any.whl

Collecting six>=1.10 (from matplotlib)

Using cached https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl

Collecting cycler>=0.10 (from matplotlib)

Using cached https://files.pythonhosted.org/packages/f7/d2/e07d3ebb2bd7af696440ce7e754c59dd546ffe1bbe732c8ab68b9c834e61/cycler-0.10.0-py2.py3-none-any.whl

Collecting subprocess32 (from matplotlib)

Using cached https://files.pythonhosted.org/packages/fa/60/b50459f291cae6bc1d0ff711b75e5130684fd3949370fdba78f6c57c1903/subprocess32-3.5.2-cp27-cp27m-macosx_10_6_intel.whl

Collecting kiwisolver>=1.0.1 (from matplotlib)

Using cached https://files.pythonhosted.org/packages/79/d8/94633718f3f77dcb638687a77ba199325a1cb158d2d4b00c9dc17f2b5c72/kiwisolver-1.0.1-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl

Requirement already satisfied, skipping upgrade: setuptools in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from kiwisolver>=1.0.1->matplotlib) (18.5)

Installing collected packages: six, python-dateutil, backports.functools-lru-cache, cycler, subprocess32, kiwisolver, matplotlib

Found existing installation: six 1.4.1

Cannot uninstall 'six'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.




What do you think?
Thanks!
Weiwei

Weiwei Sun

unread,
Aug 9, 2018, 2:39:54 PM8/9/18
to pycroscopy
some update:

I used 
pip install --ignore-installed --user six
and python -mpip install -U --ignore-installed --user matplotlib

It seems to be fine, but calling matplotlib does not produce any plot.

Thanks for your time!
Weiwei

Chris Smith

unread,
Aug 10, 2018, 9:08:39 AM8/10/18
to pycroscopy
six was probably installed by Anaconda, and pip won't be able to update it.   Having the same package installed with both conda and pip will usually cause problems.  You should always install with conda if possible.  You will likely need to 

pip uninstall -U six

and

pip uninstalll -U matplotlib

Then you can 

conda install matplotlib

It should also install six for you.

Chris Smith
Reply all
Reply to author
Forward
0 new messages