So I had to completely rebuild my os today, and Parrot has a weird relationship with pip modules - pip3 is always installed by pip2 is not. Usually I would just go:
Uhh I think 4.10 is the latest version, but every time I have installed it I have been left with a different python configuration so who knows what you will get :lol:
Here’s the error its currently throwing:
The following packages have unmet dependencies:
python-pip : Depends: python-pip-whl (= 20.0.2-5kali1) but 20.1.1-2 is to be installed
Recommends: python-all-dev (>= 2.6) but it is not going to be installed
Recommends: python-setuptools but it is not going to be installed
Recommends: python-wheel but it is not installable
E: Unable to correct problems, you have held broken packages.
I’m considering just reinstalling py2. I would just force the dependencies through, but wheel not being installable would not really allow that.
Alright i grabbed a fresh parrot iso (4.10, security edition) for test, and before running a full system upgrade it let me install python-pip. Then I upgraded everything which pushed python-pip-whl to 20.1.1-2 and got rid of python-pip…which got me the same errors.
I also tried dpkg installing a python-pip-whl 20.0.2-5 deb package but it apt got mad about it.
Then i realized you shouldn’t need python-pip afterall, check out the man page for pip:
On Debian, pip is the command to use when installing
packages for Python 2, while pip3 is the command to
use when installing packages for Python 3
Alright i grabbed a fresh parrot iso (4.10, security edition) for test, and before running a full system upgrade it let me install python-pip. Then I upgraded everything which pushed python-pip-whl to 20.1.1-2 and got rid of python-pip…which got me the same errors.
I also tried dpkg installing a python-pip-whl 20.0.2-5 deb package but it apt got mad about it.
Then i realized you shouldn’t need python-pip afterall, check out the man page for pip:
On Debian, pip is the command to use when installing
packages for Python 2, while pip3 is the command to
use when installing packages for Python 3
"Ship /usr/bin/pip in python3-pip since it is no longer provided elsewhere"
So you should get pip (python2) and pip3 commands all from the python-pip package from now on.
Hope this helps
root@Parrot:~# apt install python3-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-pip is already the newest version (20.1.1-2).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Already had the latest version. Yes pip is installed with it, but it is mapped to pip3. I really need to be able to install dependencies for py2 tho. Pip2 seems to have disappeared from the face of the earth.
Guys - I’m having this same issue and can’t work out how to fix it. Any ideas?
$python2.7 get-pip.py
Traceback (most recent call last):
File “get-pip.py”, line 24244, in
main()
File “get-pip.py”, line 199, in main
bootstrap(tmpdir=tmpdir)
File “get-pip.py”, line 82, in bootstrap
from pip._internal.cli.main import main as pip_entry_point
File “/tmp/tmpL_U7Uh/pip.zip/pip/_internal/cli/main.py”, line 60
sys.stderr.write(f"ERROR: {exc}")
^
SyntaxError: invalid syntax
That doesnt work for me. Just says “/usr/bin/python2.7: No module named pip”. Tried installing via apt install python-pip but get the message :
Reading package lists… Done
Building dependency tree
Reading state information… Done
Package python-pip is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
python3-pip
Is there really no easy way to allow me to install Python2 specific dependencies? I’m just trying to do some windows enumeration using windows-exploit-suggester.py but it requires a python 2 library called python-xlrd. Trying to install that and I get the message
Package python-xlrd is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
python3-xlrd python-xlrd-docs
Which doesnt work as the suggester script is python2. Any other suggestions? Thx