Downgrade Python Version 3.7 to 3.6 - python

I am trying to downgrade my python version to 3.6. Currently, I am running python version 3.7.2. I've looked at other posts who have encountered the same issue, but I have tried some of the solutions and they don't seem to work (I am running on Mac OS).
When I run the following in terminal I receive the following error:
MacBookPro:~ robertg21$ brew unlink python
Error: No such keg: /usr/local/Cellar/python
Anyone have some ideas?

Related

how to fix package versions after downgrading python

I recently had to downgrade my python version from 3.8 to 3.6. All of a sudden I'm getting No module named 'onnx.onnx_cpp2py_export' errors which (according to a quick google) are the result of some old packages being installed under 3.8 and not properly downgraded to 3.6. How can I fix all these package version errors?
Is there a simple command for me to view which python version each package was installed under? Is there a simple command for pip to try and resolve all versions on its own?

Vercel CLI Pyhon version issue when deploying Django project

When running the vercel command in Ubuntu terminal:
Error! Command failed: python3.6 /tmp/2de7da56/get-pip.py --user
ERROR: This script does not work on Python 3.6 The minimum supported Python version is 3.7. Please > use https://bootstrap.pypa.io/pip/3.6/get-pip.py instead.
python --version returns 3.8.10.
pip --version returns 22.0.4.
vercel --version returns 24.0.1
requirements.txt just has Django == 4.0.3
What I tried:
Ran the script linked in the error message and added its installation directory to PATH.
Updated pip in default directory to 22.0.4.
Even aliased python3.6 to python at one point.
Tried on both Windows and Ubuntu.
I faced the same error when I recently tried to host my Django rest framework project on vercel.
I think the problem is that due to a recent update by pip the minimum version it now supports is python 3.7.
Am assuming you followed jayhale's post on Django deployment to vercel like I did. The problem is that the script in his tutorial runs on python 3.6 that's why vercel is giving out "ERROR: This script does not work on Python 3.6 The minimum supported Python version is 3.7. Please > use "https://bootstrap.pypa.io/pip/3.6/get-pip.py" instead."
I wrote a post about the work around I found. Just click on the link below and follow the steps in the post.
Link
P.s the new script works with python 3.9

why am i getting error massage of, "NO USABLE PYTHON FOUND" when python 3.8 is already installed

When writing the below code in Ubuntu Terminal
./setup.sh --install
I am getting the below error message
No Usable python found. Please make sure to have python 3.6 or python 3.7 installed.
However, Python 3.8 is already installed in the system.

Upgrading python from 32 bit to 64 bit messed up pip (Windows)

I upgraded python from 32-bit version to the 64-bit one, I did this by uninstalling python using add or remove programs and installing a new one from the official installer. While doing so, I also upgraded it from python 3.6 to 3.7.
Now when I try running pip I get the following error
The code execution cannot proceed because python36.dll was not found. Reinstalling the program may fix this problem.
It didn't.
python -m pip works for me but I would still like to fix the original functionality.
This happened with me too and I didn't get any solution to it. But when I installed Python 3.7 then I did not face any problem. And the pip too was working.
Maybe there was an error in the bindings of Python 3.6.

How can I fix my python installation?

For some work I'm doing at my office I needed to downgrade my python version from 2.7.9 (OS X default installation) to 2.7.6. It seemed the easiest way to do this would be to uninstall python and then reinstall the older version. After following the instructions here and then running the official Python 2.7.6 installer. I then tried to just run python in the terminal to make sure the installation worked and received this error:
-bash: /usr/local/Cellar/python/2.7.9/bin/python: No such file or directory
Running python --version gave the same results. which python yielded the following directory:
/usr/local/bin/python
Does anyone have any idea how I can fix this issue to get the right version of Python running? I'm pretty much out of ideas at this point.
The symlink in/usr/local/bin/Python is still pointing to the other version. Update it to point to the version currently installed and it should work.

Categories

Resources