When trying:
$ sudo dpkg -i python-numpy_1.13.3-2ubuntu1_amd64.deb
...
dpkg: dependency problems prevent configuration of python-numpy:
python-numpy depends on python (>= 2.7~); however:
Package python is not installed.
python-numpy depends on python (<< 2.8); however:
Package python is not installed.
python-numpy depends on python:any (>= 2.7.5-5~); however:
python-numpy depends on python:any (<< 2.8); however:
In same directory doing:
$ python
Python 2.7.15rc1 (default, Apr 15 2018, 21:51:34)
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
$ which python
/usr/bin/python
How to solve dpkg error?
OS is Ubuntu18.04 LTS & I downloaded the releavnt numpy version.
Machine is not connected to internet.
the dpkg error is a-bit misleading, what is missing isn't python but python-dev. Install python-dev with all it's dependencies.
I would suggest this code for dependency Problems
sudo apt-get install -f
This may solve Your problem if the dependent .deb files are in the Linux repository