How to replace apt package with pip package if it has dependencies?
up vote
0
down vote
favorite
I'd like to install a specific version of psutil:
$ sudo -H pip install psutil==5.4.2
Found existing installation: psutil 5.4.2
Cannot uninstall 'psutil'. It is a distutils installed project and
thus we cannot accurately determine which files belong to it which
would lead to only a partial uninstall.
... it looks like psutil was already installed with apt:
$ apt list --install | grep psutil
python-psutail/trusty,now ......
But if I try to remove it:
$ sudo apt-get remove python-psutil
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
gir1.2-keybinder-3.0 libkeybinder-3.0-0
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
python-psutil terminator
0 upgraded, 0 newly installed, 2 to remove and 38 not upgraded.
After this operation, 3,145 kB disk space will be freed.
I'd like like to keep terminator. I just want to upgrade psutil to a specific version (which apt likely doesn't provide).
Are virtual environments the only answer or is there some way to force psutil to managed by pip, and not apt.
apt python pip
add a comment |
up vote
0
down vote
favorite
I'd like to install a specific version of psutil:
$ sudo -H pip install psutil==5.4.2
Found existing installation: psutil 5.4.2
Cannot uninstall 'psutil'. It is a distutils installed project and
thus we cannot accurately determine which files belong to it which
would lead to only a partial uninstall.
... it looks like psutil was already installed with apt:
$ apt list --install | grep psutil
python-psutail/trusty,now ......
But if I try to remove it:
$ sudo apt-get remove python-psutil
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
gir1.2-keybinder-3.0 libkeybinder-3.0-0
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
python-psutil terminator
0 upgraded, 0 newly installed, 2 to remove and 38 not upgraded.
After this operation, 3,145 kB disk space will be freed.
I'd like like to keep terminator. I just want to upgrade psutil to a specific version (which apt likely doesn't provide).
Are virtual environments the only answer or is there some way to force psutil to managed by pip, and not apt.
apt python pip
Do you need the newer psutil across your entire computer or can you get by with it being usable only for your own user without being available tosudoor other programs on the system that run under different users?
– Thomas Ward♦
Nov 28 at 0:59
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'd like to install a specific version of psutil:
$ sudo -H pip install psutil==5.4.2
Found existing installation: psutil 5.4.2
Cannot uninstall 'psutil'. It is a distutils installed project and
thus we cannot accurately determine which files belong to it which
would lead to only a partial uninstall.
... it looks like psutil was already installed with apt:
$ apt list --install | grep psutil
python-psutail/trusty,now ......
But if I try to remove it:
$ sudo apt-get remove python-psutil
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
gir1.2-keybinder-3.0 libkeybinder-3.0-0
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
python-psutil terminator
0 upgraded, 0 newly installed, 2 to remove and 38 not upgraded.
After this operation, 3,145 kB disk space will be freed.
I'd like like to keep terminator. I just want to upgrade psutil to a specific version (which apt likely doesn't provide).
Are virtual environments the only answer or is there some way to force psutil to managed by pip, and not apt.
apt python pip
I'd like to install a specific version of psutil:
$ sudo -H pip install psutil==5.4.2
Found existing installation: psutil 5.4.2
Cannot uninstall 'psutil'. It is a distutils installed project and
thus we cannot accurately determine which files belong to it which
would lead to only a partial uninstall.
... it looks like psutil was already installed with apt:
$ apt list --install | grep psutil
python-psutail/trusty,now ......
But if I try to remove it:
$ sudo apt-get remove python-psutil
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
gir1.2-keybinder-3.0 libkeybinder-3.0-0
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
python-psutil terminator
0 upgraded, 0 newly installed, 2 to remove and 38 not upgraded.
After this operation, 3,145 kB disk space will be freed.
I'd like like to keep terminator. I just want to upgrade psutil to a specific version (which apt likely doesn't provide).
Are virtual environments the only answer or is there some way to force psutil to managed by pip, and not apt.
apt python pip
apt python pip
edited Nov 28 at 0:48
asked Nov 28 at 0:28
user48956
2431311
2431311
Do you need the newer psutil across your entire computer or can you get by with it being usable only for your own user without being available tosudoor other programs on the system that run under different users?
– Thomas Ward♦
Nov 28 at 0:59
add a comment |
Do you need the newer psutil across your entire computer or can you get by with it being usable only for your own user without being available tosudoor other programs on the system that run under different users?
– Thomas Ward♦
Nov 28 at 0:59
Do you need the newer psutil across your entire computer or can you get by with it being usable only for your own user without being available to
sudo or other programs on the system that run under different users?– Thomas Ward♦
Nov 28 at 0:59
Do you need the newer psutil across your entire computer or can you get by with it being usable only for your own user without being available to
sudo or other programs on the system that run under different users?– Thomas Ward♦
Nov 28 at 0:59
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1096658%2fhow-to-replace-apt-package-with-pip-package-if-it-has-dependencies%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Do you need the newer psutil across your entire computer or can you get by with it being usable only for your own user without being available to
sudoor other programs on the system that run under different users?– Thomas Ward♦
Nov 28 at 0:59