Changing versions in Python without uninstalling it - python

I want to go back to python 3.6 and I have python 3.9 because some of the libraries such as numba is not compatible with it on windows 10. I do not use conda or anything. Is there anyway I could downgrade my python version without uninstalling and reinstalling everything?
C:\Users\maste>python -V
Python 3.9.1

Related

Upgrade Python and all packages in anaconda base env

I am using anaconda and my current python version in it is Python 3.7.10.
I want to upgrade everything: anaconda, the python version (which includes a major version upgrade to 3.8, I read somewhere that that matters), and all anaconda packages within I want to upgrade too.
I want to do this in my base anaconda env i.e. just upgrade everything.
Of course I can do this by uninstalling and then downloading latest version and installing anaconda again. But I want to avoid complete reinstallation.
I was reading the answers here
Upgrade to python 3.8 using conda
but it's not clear to me... how does one do this update in his base env?
Side question: I see version 3.9.2 for Python available here: https://anaconda.org/anaconda/python but the current full download of anaconda includes just Python 3.8. Why is that difference?
How can I do so that I have the latest and greatest of all packages (incl. the python interpreter)? Should I go for Python 3.8 or 3.9? I guess if I install 3.9 some anaconda packages might not work, is that so?

Unable to install microsoft presidio-analyzer in Python 3.8

I am using Python 3.8 and its unable to install .whl from dist folder.
Presidio-analyzer is asking for grpcio==1.21.0 but it not able install in Python 3.8.
I ran into this issue as well with Win10 + Python 3.8. It looks like older versions of grpcio had installation issues with Python 3.8 on Windows but should be fine on Python 3.7 or 3.6.
Although the newer versions of grpcio (v1.34.0 being the latest) have done away with those issues and install without errors on Python 3.8, there is a hardcoded dependency defined in presidio-analyzer's setup.py on v1.21.1, removing which could fix the issue.
You can follow this GitHub issue for further updates: Microsoft/presidio#378
grpcio is no longer a dependency of presidio-analyzer, so installing the latest version should work for you.

Can the latest Anaconda package for Python 3.6 work for Python 3.5?

I have the 3.5 version of python. I want to install Anaconda, but it says on the Anaconda website the latest version of it is for Python 3.6. My question is could I still use the packages for Python 3.5, or should I install Python 3.6?
When you install Anaconda Python, it installs into its own area and wouldn't conflict with an existing Python installation. If you already have additional Python packages installed, you will need to reinstall them for the new Python installation, preferably using a Python virtual environment. You can't use a Python virtual environment from an existing Python installation and would need to create a new one against Anaconda Python if already using one.
If your own personal code works with Python 3.5, it likely will work with Python 3.6 no problems.
So with the above caveats on re-installing additional Python packages, there shouldn't be any reason why you couldn't use Anaconda Python 3.6.
I had the same problem where I couldn't run anaconda with python 3.6. What I did was to install anaconda with python 3.5. Go to https://repo.continuum.io/archive/ then download Anaconda3-4.2.0-Windows-x86_64.

How do I upgrade python 2.7.8 to 2.7.9 in Anaconda without conflicting other components in its environment?

After successful installation of Anaconda on Windows 7 I realized the default Python version is 2.7.8. However I need 2.7.9. So how do I upgrade?
Unfortunately, you cannot update Python in the root environment of Anaconda on Windows. See https://stackoverflow.com/a/29238416/161801.
Your anaconda installation ships its own package manager conda. You can use it for updating python packages and also the python interpreter.
To update the python interpreter in your default environment, all you have to do is executing the command below from command line:
conda update python
Install newest version of Anaconda from their website. This will upgrade your Anaconda and python as well. Also, uninstall the previous version of Anaconda.

Get Brew to use Python 2.7.3

I am trying to install opencv which requires Python 2.7.3 to install. However, in terminal my python continues to point to 2.7.2 although I have installed the 2.7.3 installer from the python website.
How do I solve this?
You can get Homebrew to install the newer version of Python for you:
brew install python
If you've got Homebrew installed (and reading between the lines, assuming you're using Mac OS X).
Homebrew will install to a different place than the system version (2.7.2) so if we want to update or remove this Homebrew version later on, you can revert back to just using the system version instead since you didn't modify it.

Categories

Resources