*Thought it would be more appropriate to ask in Ask Ubuntu rather than in Stack Overflow.
Using Ubuntu16.04, I am working with python2 (along with some scientific modules) for scientific purposes and decided to switch to python3, and to my understanding; I would need to install the packages again, this time for python3.
As I am a beginner, I especially worry about not removing the packages properly (I would actually prefer to purge them), and of course, not installing the packages properly.
How can I make this transition clean? More specifically I would like to:
- Remove all packages I installed with pip (which are connected to python2).
- Install anew the packages, this time for python3.
For 1. Searching online I came up with
pip freeze | xargs pip uninstall -y
Which should remove the packages I installed, but is it possible to purge?.
For 2. Does it mean I need to install pip3? When installing packages or updating with pip i would get a call:
The directory '/home/.../.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/.../.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Figuring I might have installed something improperly. What should i do differently?