Python install failure Pi3


#1

Having problems getting the python SDK to install:
Rasp Pi 3
Raspbian jessie based openplotter image -
http://www.sailoog.com/openplotter

From the terminal, seemed to work OK til almost the end -

Cleaning up…
Command /usr/bin/python -c “import setuptools, tokenize;file=’/tmp/pip-build-YcvOPs/python-wifi/setup.py’;exec(compile(getattr(tokenize, ‘open’, open)(file).read().replace(’\r\n’, ‘\n’), file, ‘exec’))” install --record /tmp/pip-Eu04f3-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip-build-YcvOPs/python-wifi
Storing debug log for failure in /root/.pip/pip.log

And the log -

Command /usr/bin/python -c “import setuptools, tokenize;file=’/tmp/pip-build-YcvOPs/python-wifi/setup.py’;exec(compile(getattr(tokenize, ‘open’, open)(file).read().replace(’\r\n’, ‘\n’), file, ‘exec’))” install --record /tmp/pip-Eu04f3-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip-build-YcvOPs/python-wifi
Exception information:
Traceback (most recent call last):
File “/usr/lib/python2.7/dist-packages/pip/basecommand.py”, line 122, in main
status = self.run(options, args)
File “/usr/lib/python2.7/dist-packages/pip/commands/install.py”, line 295, in run
requirement_set.install(install_options, global_options, root=options.root_path)
File “/usr/lib/python2.7/dist-packages/pip/req.py”, line 1436, in install
requirement.install(install_options, global_options, *args, **kwargs)
File “/usr/lib/python2.7/dist-packages/pip/req.py”, line 707, in install
cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
File “/usr/lib/python2.7/dist-packages/pip/util.py”, line 716, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command /usr/bin/python -c “import setuptools, tokenize;file=’/tmp/pip-build-YcvOPs/python-wifi/setup.py’;exec(compile(getattr(tokenize, ‘open’, open)(file).read().replace(’\r\n’, ‘\n’), file, ‘exec’))” install --record /tmp/pip-Eu04f3-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip-build-YcvOPs/python-wifi

Suspect the raspbian image might be causing the problems, any ideas?
Ta

EDIT - Cancel that cry for help, removed /usr/local/man file and it seemed to install OK . Ta


#2

Error is coming from pip. Follow these instructions to remedy:

sudo apt-get remove python-pip python3-pip
sudo wget https://bootstrap.pypa.io/get-pip.py
sudo python get-pip.py

Same issue in Nova python installer broken?