python-3.xmacospython-2.7macos-catalinau8darts

removing python2 Mac as it is asking to upgrade


I tried to install new packages such dtale, u8darts, but also upgrade old ones such statsmodels and many others but with not success and I have the following message:

DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python 
as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. 
More 
details about Python 2 support in pip can be found at 
https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove 
support for this functionality.
ERROR: Could not find a version that satisfies the requirement u8darts (from versions: none)
ERROR: No matching distribution found for u8darts

I have also tried to install the same packages using pip3 as and I have python3 and that works. The only problem is, I am not able to import them although I am only using python3 on my IDEs (Jupyter Notebookand VScode). I am now trying to remove python2 from my systems and I am trying hard.


Solution

  • I had merged the Anconda, all I needed to do was to revert to bash using the command below:

    chsh -s /bin/bash
    

    then reinstall Anaconda and choose home installation (insuring that your opt folder does not contain any anaconda folder, you access by typing space barand /opton )

    Now I am able to install all the packages I wanted to. No problem.