Remove all previous versions of python

solalito

I have some experience with C++ and Fortran, and I want to start using python for my post-processing as I am starting to realise how inefficient MATLAB is for what I need to do (mostly involves plots with millions of points).

I already had a few versions of python installed, from every time I wanted to start using. It has now become a mess. In /usr/local/bin/, here is what the command ls python* returns:

python            python2.7         python3           python3.5         python3.5m        pythonw-32
python-32         python2.7-32      python3-32        python3.5-32      python3.5m-config pythonw2.7 
python-config     python2.7-config  python3-config    python3.5-config  pythonw           pythonw2.7-32

I now want a clean slate. I want a safe way to remove all the previous versions of python, including all of their packages, so I can just install the latest version and import all the libraries I want like numpy and matplotlib smoothly (I had some issues with that).

EDIT:

I am running on OSX Yosemite 10.10.

Peque

Do not uninstall your system's Python interpreter (Python 2.7 most probably). You might consider uninstalling the other version (Python 3.5 most probably), but I do not think you really need to do that (it may not be a bad idea to keep a system-wide Python 3 interpreter... who knows!).

If you want a clean state I would recommend you to use virtual environments for now on. You have two options:

  • Use virtualenv and pip to setup your virtual environments and packages. However, using pip means you will have to compile the packages that need compilation (numpy, matplotlib and many other scientific Python packages that you may use for your "post-processing").
  • Use Conda (or Miniconda). This way you will be able to handle virtual environments but without having to compile Python packages yourself. Conda also allows you to handle different Python interpreters without the need of having them installed in your system (it will download them for you).

Also, you say you are feeling MATLAB is inefficient for plotting millions of points. I do not know your actual needs/constraints, but I find Matplotlib to be very inefficient for plotting large data and/or real-time data.

Just as a suggestion, consider using PyQtGraph. If you still feel that is not fast enough, consider using VisPy (probably less functional/convenient at the moment, but more efficient).

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

MSI: How to remove all previous versions?

From Dev

Does .NET Framework 4.6 remove the need of all previous .NET Framework versions?

From Dev

Delete all previous versions of file in git repo

From Dev

How to get previous versions of Python Selenium Webdriver

From Dev

How to get previous versions of Python Selenium Webdriver

From Dev

Remove old versions of Python and pip

From Dev

Remove old versions of Python and pip

From Dev

How to remove previous versions of .NET Core from Linux (CentOS 7.1)

From Dev

Safe to remove kernel versions from previous Fedora installation?

From Dev

How to remove all versions of python except the default version so that Ubuntu doesn't break?

From Dev

On reboot yocto system, all files revert to previous versions

From Dev

Fetch all the previous versions of any file committed in Git

From Dev

How to list all Python versions installed in the system?

From Dev

Is there any way to see all the versions for a python package?

From Dev

How to check all the installed Python versions on Windows?

From Dev

How to list all Python versions installed in the system?

From Dev

Can I remove all the recent kernel versions at /lib/modules/

From Dev

Download previous versions of ExtJs

From Dev

NTFS "Restore previous versions"

From Dev

Using Homebrew how do I remove some specific versions but not all old versions

From Dev

Using Homebrew how do I remove some specific versions but not all old versions

From Dev

My Google Chrome.app is too big. Can I remove previous versions from the Content folder?

From Dev

How do I SSH and remove all previous SSH activity history?

From Dev

Git remove specific files from all previous commits

From Dev

Remove .idea directory from all previous git commits

From Dev

Python 3 else for all previous ifs

From Dev

Remove all the '#' from a list in python

From Java

Get previous versions of a package in NPM

From Dev

Is guava binary compatible with previous versions?

Related Related

  1. 1

    MSI: How to remove all previous versions?

  2. 2

    Does .NET Framework 4.6 remove the need of all previous .NET Framework versions?

  3. 3

    Delete all previous versions of file in git repo

  4. 4

    How to get previous versions of Python Selenium Webdriver

  5. 5

    How to get previous versions of Python Selenium Webdriver

  6. 6

    Remove old versions of Python and pip

  7. 7

    Remove old versions of Python and pip

  8. 8

    How to remove previous versions of .NET Core from Linux (CentOS 7.1)

  9. 9

    Safe to remove kernel versions from previous Fedora installation?

  10. 10

    How to remove all versions of python except the default version so that Ubuntu doesn't break?

  11. 11

    On reboot yocto system, all files revert to previous versions

  12. 12

    Fetch all the previous versions of any file committed in Git

  13. 13

    How to list all Python versions installed in the system?

  14. 14

    Is there any way to see all the versions for a python package?

  15. 15

    How to check all the installed Python versions on Windows?

  16. 16

    How to list all Python versions installed in the system?

  17. 17

    Can I remove all the recent kernel versions at /lib/modules/

  18. 18

    Download previous versions of ExtJs

  19. 19

    NTFS "Restore previous versions"

  20. 20

    Using Homebrew how do I remove some specific versions but not all old versions

  21. 21

    Using Homebrew how do I remove some specific versions but not all old versions

  22. 22

    My Google Chrome.app is too big. Can I remove previous versions from the Content folder?

  23. 23

    How do I SSH and remove all previous SSH activity history?

  24. 24

    Git remove specific files from all previous commits

  25. 25

    Remove .idea directory from all previous git commits

  26. 26

    Python 3 else for all previous ifs

  27. 27

    Remove all the '#' from a list in python

  28. 28

    Get previous versions of a package in NPM

  29. 29

    Is guava binary compatible with previous versions?

HotTag

Archive