$ sudo su - # pip --verbose install ldtp Collecting ldtp Getting page https://pypi.python.org/simple/ldtp/ Starting new HTTPS connection (1): pypi.python.org "GET /simple/ldtp/ HTTP/1.1" 200 345 1 location(s) to search for versions of ldtp: * https://pypi.python.org/simple/ldtp/ Getting page https://pypi.python.org/simple/ldtp/ Analyzing links from page https://pypi.python.org/simple/ldtp/ Found link https://pypi.python.org/packages/source/l/ldtp/ldtp-1.0.0.tar.gz#md5=b3fc52b1ab2c48b825bcc463003d95f9 (from https://pypi.python.org/simple/ldtp/), version: 1.0.0 Skipping link http://download.freedesktop.org/ldtp/0.x/0.9.x/ldtp-0.9.2.tar.gz (from https://pypi.python.org/simple/ldtp/); it is externally hosted Skipping link http://download.freedesktop.org/ldtp/1.x/1.0.x/ldtp-1.0.0.tar.gz (from https://pypi.python.org/simple/ldtp/); it is externally hosted Skipping link http://download.freedesktop.org/ldtp/1.x/1.1.x/ldtp-1.1.0.tar.gz (from https://pypi.python.org/simple/ldtp/); it is externally hosted Skipping link http://download.freedesktop.org/ldtp/3.x/3.0.x/ldtp-3.0.0.tar.gz (from https://pypi.python.org/simple/ldtp/); it is externally hosted Skipping link http://download.freedesktop.org/ldtp/3.x/3.5.x/ldtp-3.5.0.tar.gz (from https://pypi.python.org/simple/ldtp/); it is externally hosted Skipping link http://ldtp.freedesktop.org (from https://pypi.python.org/simple/ldtp/); not a file Using cached ldtp-1.0.0.tar.gz Downloading from URL https://pypi.python.org/packages/source/l/ldtp/ldtp-1.0.0.tar.gz#md5=b3fc52b1ab2c48b825bcc463003d95f9 (from https://pypi.python.org/simple/ldtp/) Running setup.py (path:/tmp/pip-build-6j6vgvsb/ldtp/setup.py) egg_info for package ldtp Running command python setup.py egg_info Traceback (most recent call last): File "", line 18, in File "/usr/lib/python3.4/tokenize.py", line 438, in open buffer = _builtin_open(filename, 'rb') FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-build-6j6vgvsb/ldtp/setup.py' Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 18, in File "/usr/lib/python3.4/tokenize.py", line 438, in open buffer = _builtin_open(filename, 'rb') FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-build-6j6vgvsb/ldtp/setup.py' ---------------------------------------- Cleaning up... Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-6j6vgvsb/ldtp Exception information: Traceback (most recent call last): File "/usr/local/lib/python3.4/dist-packages/pip-7.1.2-py3.4.egg/pip/basecommand.py", line 211, in main status = self.run(options, args) File "/usr/local/lib/python3.4/dist-packages/pip-7.1.2-py3.4.egg/pip/commands/install.py", line 305, in run wb.build(autobuilding=True) File "/usr/local/lib/python3.4/dist-packages/pip-7.1.2-py3.4.egg/pip/wheel.py", line 705, in build self.requirement_set.prepare_files(self.finder) File "/usr/local/lib/python3.4/dist-packages/pip-7.1.2-py3.4.egg/pip/req/req_set.py", line 334, in prepare_files functools.partial(self._prepare_file, finder)) File "/usr/local/lib/python3.4/dist-packages/pip-7.1.2-py3.4.egg/pip/req/req_set.py", line 321, in _walk_req_to_install more_reqs = handler(req_to_install) File "/usr/local/lib/python3.4/dist-packages/pip-7.1.2-py3.4.egg/pip/req/req_set.py", line 505, in _prepare_file abstract_dist.prep_for_dist() File "/usr/local/lib/python3.4/dist-packages/pip-7.1.2-py3.4.egg/pip/req/req_set.py", line 123, in prep_for_dist self.req_to_install.run_egg_info() File "/usr/local/lib/python3.4/dist-packages/pip-7.1.2-py3.4.egg/pip/req/req_install.py", line 410, in run_egg_info command_desc='python setup.py egg_info') File "/usr/local/lib/python3.4/dist-packages/pip-7.1.2-py3.4.egg/pip/utils/__init__.py", line 733, in call_subprocess % (command_desc, proc.returncode, cwd)) pip.exceptions.InstallationError: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-6j6vgvsb/ldtp # pip install ./ldtp Exception: Traceback (most recent call last): File "/usr/local/lib/python3.4/dist-packages/pip-7.1.2-py3.4.egg/pip/basecommand.py", line 211, in main status = self.run(options, args) File "/usr/local/lib/python3.4/dist-packages/pip-7.1.2-py3.4.egg/pip/commands/install.py", line 282, in run wheel_cache File "/usr/local/lib/python3.4/dist-packages/pip-7.1.2-py3.4.egg/pip/basecommand.py", line 272, in populate_requirement_set wheel_cache=wheel_cache File "/usr/local/lib/python3.4/dist-packages/pip-7.1.2-py3.4.egg/pip/req/req_install.py", line 213, in from_line wheel_cache=wheel_cache, constraint=constraint) File "/usr/local/lib/python3.4/dist-packages/pip-7.1.2-py3.4.egg/pip/req/req_install.py", line 67, in __init__ req = pkg_resources.Requirement.parse(req) File "/usr/local/lib/python3.4/dist-packages/pip-7.1.2-py3.4.egg/pip/_vendor/pkg_resources/__init__.py", line 2980, in parse reqs = list(parse_requirements(s)) File "/usr/local/lib/python3.4/dist-packages/pip-7.1.2-py3.4.egg/pip/_vendor/pkg_resources/__init__.py", line 2924, in parse_requirements "version spec") File "/usr/local/lib/python3.4/dist-packages/pip-7.1.2-py3.4.egg/pip/_vendor/pkg_resources/__init__.py", line 2889, in scan_list raise RequirementParseError(msg, line, "at", line[p:]) pip._vendor.pkg_resources.RequirementParseError: Expected version spec in ./ldtp at /ldtp root@bivdesk04:~# python --version Python 2.7.9 root@bivdesk04:~# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 15.04 Release: 15.04 Codename: vivid