I got the following error message when trying to install osmium:
$ pip install osmium --user
[...]
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-hjt_5k/osmium/setup.py", line 115, in <module>
raise Exception("Cannot find boost_python library")
Exception: Cannot find boost_python library
How can I fix it?
The fix for that issue on Ubuntu 16.04 is
$ sudo apt-get install libboost-python-dev
Other issues
libosmium-2.14.2/include/osmium/io/bzip2_compression.hpp:52:19: fatal error: bzlib.h: No such file or directory
compilation terminated.
error: command 'c++' failed with exit status 1
is fixed with
sudo apt-get install libbz2-dev
Related
ERROR: Command errored out with exit status 1:
command: /Users/siddhantsrivastava/Desktop/PROGRAMMING/PythonProjects/AI_Assistant/bin/python /Users/siddhantsrivastava/Desktop/PROGRAMMING/PythonProjects/AI_Assistant/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /var/folders/lm/1n6xwbk14939ct0z6xl1qbvw0000gn/T/tmpkrnkoe2y
cwd: /private/var/folders/lm/1n6xwbk14939ct0z6xl1qbvw0000gn/T/pip-install-ppgn_c8e/pyqt5_45bc8def44524a95a74a079d41ea15ba
Complete output (29 lines):
Traceback (most recent call last):
File "/Users/siddhantsrivastava/Desktop/PROGRAMMING/PythonProjects/AI_Assistant/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 143, in prepare_metadata_for_build_wheel
hook = backend.prepare_metadata_for_build_wheel
AttributeError: module 'sipbuild.api' has no attribute 'prepare_metadata_for_build_wheel'
Trying to install pyqt5 using pip3 with command pip3 install pyqt5, getting me to this error ...other solutions suggest me to upgrade pip to the latest version.done that still givingme this error? what to do now?
Here is what happened.I even tried to remove pip, but it shows the same problem.My python version is 2.7.12
saikat#saikat:~$ pip install --upgrade pip
Collecting pip
Using cached pip-9.0.1-py2.py3-none-any.whl
Installing collected packages: pip
Found existing installation: pip 8.1.2
Uninstalling pip-8.1.2:
Exception:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/usr/local/lib/python2.7/dist-packages/pip/commands/install.py", line 317, in run
prefix=options.prefix_path,
File "/usr/local/lib/python2.7/dist-packages/pip/req/req_set.py", line 736, in install
requirement.uninstall(auto_confirm=True)
File "/usr/local/lib/python2.7/dist-packages/pip/req/req_install.py", line 742, in uninstall
paths_to_remove.remove(auto_confirm)
File "/usr/local/lib/python2.7/dist-packages/pip/req/req_uninstall.py", line 115, in remove
renames(path, new_path)
File "/usr/local/lib/python2.7/dist-packages/pip/utils/__init__.py", line 267, in renames
shutil.move(old, new)
File "/usr/lib/python2.7/shutil.py", line 303, in move
os.unlink(src)
OSError: [Errno 13] Permission denied: '/usr/bin/pip'
You are using pip version 8.1.2, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
try this.
wget https://pypi.python.org/packages/e7/a8/7556133689add8d1a54c0b14aeff0acb03c64707ce100ecd53934da1aa13/pip-8.1.2.tar.gz
tar -xzvf pip-8.1.2.tar.gz
cd pip-8.1.2
sudo python setup.py install
It should help
I'm having issues installing broken link-checker.
When I do 'sudo pip install LinkChecker' like said in installation, I get following error
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-uBq7xh/LinkChecker/setup.py", line 95, in <module>
import py2app
File "/Library/Python/2.7/site-packages/py2app/__init__.py", line 31, in <module>
__version__ = pkg_resources.require('py2app')[0].version
File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 968, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 854, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'macholib>=1.4' distribution was not found and is required by py2app
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-uBq7xh/LinkChecker/
You are using pip version 8.1.2, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
The error message you get suggests you fail to meet the dependencies needed for the package you're installing.
Try installing macholib and upgrading pip, as suggested by the log
pip install macholib
pip install --upgrade pip
I trying to install mitmproxy on centos 6.4 with python 2.6.6, I am getting below error when execute install command.
#pip install mitmproxy
Downloading/unpacking mitmproxy
Running setup.py egg_info for package mitmproxy
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/tmp/pip-build-root/mitmproxy/setup.py", line 19
"netlib>=%s, <%s" % (version.MINORVERSION, version.NEXT_MINORVERSION),
^
SyntaxError: invalid syntax
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/tmp/pip-build-root/mitmproxy/setup.py", line 19
"netlib>=%s, <%s" % (version.MINORVERSION, version.NEXT_MINORVERSION),
^
SyntaxError: invalid syntax
----------------------------------------
Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-root/mitmproxy
Storing complete log in /root/.pip/pip.log
That error seems to indicate that mitmproxy is not compatible with python 2.6.x. I assume that syntax is new for 2.7.x or something like that.
That line doesn't work for me in 2.4.3 or 2.6.6 but does in 2.7.8.
Is it possible to install packages to any arbitrary folder? e.g. I tried to install a package to a local folder but it throws error, same error comes up with any other package
/tmp$ pip install --install-option="--prefix=mypython" IPy
Downloading/unpacking IPy
Downloading IPy-0.75.tar.gz
Running setup.py egg_info for package IPy
Installing collected packages: IPy
Running setup.py install for IPy
Exception:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/pip-1.1-py2.7.egg/pip/basecommand.py", line 104, in main
status = self.run(options, args)
File "/usr/local/lib/python2.7/dist-packages/pip-1.1-py2.7.egg/pip/commands/install.py", line 250, in run
requirement_set.install(install_options, global_options)
File "/usr/local/lib/python2.7/dist-packages/pip-1.1-py2.7.egg/pip/req.py", line 1133, in install
requirement.install(install_options, global_options)
File "/usr/local/lib/python2.7/dist-packages/pip-1.1-py2.7.egg/pip/req.py", line 604, in install
f = open(os.path.join(egg_info_dir, 'installed-files.txt'), 'w')
IOError: [Errno 2] No such file or directory: 'mypython/lib/python2.7/site-packages/IPy-0.75-py2.7.egg-info/installed-files.txt'
Also this question indicate it should be working, so what is wrong here?
--prefix= needs to be an absolute path. Doing:
$ pip install --install-option="--prefix=/tmp/mypython" IPy
for example, should work without any errors.