0

I have been trying to install matplotlib on offline linux system without much success. I have tried: python2.7 setup.py build

It then tries the following: Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.28.tar.gz

The same happens with setup.py install. How can I get it to install without an internet connection? I use Python 2.7.12

Wool
  • 138
  • 10
NKL
  • 13
  • 4
  • Possible duplicate of [Python Packages Offline Installation](https://stackoverflow.com/questions/11091623/python-packages-offline-installation) – Maximilian Peters Jun 15 '17 at 10:57

2 Answers2

0

Go to Matplotlib pypi package index and download the appropriate file for your system. Then use:

$ sudo apt-get install python-setuptools build-essential 
$ pip install wheel_file.whl

you might have to use sudo with this command.

Arpit Solanki
  • 7,961
  • 2
  • 33
  • 56
  • `Traceback (most recent call last): File "//python2.7/bin/pip", line 6, in from pkg_resources import load_entry_point ImportError: No module named pkg_resources` same error with or without sudo. – NKL Jun 15 '17 at 11:26
  • You should have `python-setuptools` and `build-essential` in your system to install with this way. – Arpit Solanki Jun 15 '17 at 11:37
-1

Download the matploitdb wheel "http://www.lfd.uci.edu/~gohlke/pythonlibs/#matplotlib"

Then do,

pip install matploitdb_wheel.whl

Arpit Solanki
  • 7,961
  • 2
  • 33
  • 56
Stack
  • 2,660
  • 3
  • 14
  • 21
  • 3
    I want the installation on a linux system. All the wheels you mentioned are windows wheels. – NKL Jun 15 '17 at 11:05