Saturday, May 18, 2024
 Popular · Latest · Hot · Upcoming
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 31249  / 2 Years ago, wed, april 6, 2022, 6:04:09

I recently setup a new Ubuntu 16.04.2 machine. I'm trying to install some python packages, but all the packages are getting installed at /usr/local/lib/python2.7.10/bin instead of /usr/bin or /usr/local/bin.



Installing collected packages: git-review

changing mode of /usr/local/lib/python2.7.10/bin/git-review to 755
Successfully installed git-review-1.25.0


What's the problem here?


More From » apt

 Answers
0

I had to remove the pip package that was installed by apt.



sudo apt remove python-pip


And then install pip again according to instructions on their website - https://pip.pypa.io/en/stable/installing/.



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


Looks like pip from Ubuntu's default repository is not same as one distributed by pypi.


[#12153] Friday, April 8, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
inciplyies

Total Points: 10
Total Questions: 114
Total Answers: 93

Location: French Polynesia
Member since Sun, Dec 20, 2020
3 Years ago
;