Fail to install QGIS on my mac - macos

I tried several times to install almost everything from the website, http://www.kyngchaos.com/software/qgis
However, when I open QGIS, the initial image just got stuck on the sentence "starting python" and then just quit automatically.
My mac OS version is 10.8.5
Is such a problem due to my two versions of python in my system? The python in my system is 2.7.5, and perviously I also installed a standard version of python which is about 3.3. Then I realize that I could just use the 2.7 one instead, so I just dragged the whole fold named "python" from my application folder into trashcan and use the 2.7 from terminal instead. But I'm afraid that doesn't work either...
And how can I install the QGIS correctly now? the process seems to messy to me as a beginner...

Related

How to solve problem with Tkinter on MacOS: TclError?

I developed a Tkinter app (with python version 3.10.6) on a mac (BigSur) and wrapped all the app files through py2app for use on others macs.
When I run on another mac (Monterey) I get the following error:
_tkinter.TclError: Can't find a usable init.tcl in the following directories:
/usr/local/Cellar/tcl-tk/8.2 12_1/lib/tcl8.6
I search all over the internet and couldn't find any solution. What should I do to correct this blocking problem ?
update question 01/10/2022
In fact, here is the problem that I was unable to explain the first time:
I coded my python application on a 2020 Mac (Silicon processor). At work I have an old Mac from 2013 (Intel processor).
When I coded my app on the work Mac, I wrapped all my python files with py2app to make it an .app (the goal being to use the application on other macs).
For that I had to update my version of python and install the homebrew package manager.
Homebrew is installed in /opt/homebrew for Macs equipped with a Silicon processor
Homebrew is installed in /usr/local for Macs with an Intel processor
So when I run my version (coded on the 2013 Mac) on my 2020 Mac, I get an error message because it is looking for tcl-tk/8.2 12_1/lib/tcl8.6 in the /usr/ folder local/ and it can't find it since it's in /opt/homebrew.
Conversely, if I code on my 2020 mac, wrap with py2app and run the app on my 2013 work computer, I get an error message because it's looking for tcl-tk/8.2 12_1/lib /tcl8.6 in the /opt/homebrew folder.
I don't know how to solve this problem; in any case I tried hard to understand; I am a beginner and if you have an idea of ​​code to add to make this distinction and get the right folder in the right place it would be very useful to me.

How to install System Python 2.7 on a Mac

I need to know How to install System Python 2.7 on my Mac. This is because, I unknowingly uninstalled it (I thought I was removing the Python I downloaded from Python.org)
I followed this Stack Overflow answer, and after the damage had been done, I read the comments telling me NOT TO do that.
The current reason I am wanting to install System Python 2.7 is because it is needed to install PyGame. Below is a screenshot of what I am facing when trying to install PyGame:
I recommend installing packages on OS X using Homebrew as it keeps everything you install in one place. Allowing you to upgrade or uninstall easily and not needing to remember how or where you installed it.
Once it is installed you simply type brew install python in your terminal. This will install Python 2.7.10 and it will be available at /usr/local/bin/python.
The only supported way to restore the system Python framework on macOS is to reinstall the operating system. It is treated as a component of the core operating system, so there is no way to selectively reinstall it.

Issues with Python update on Mac

So, yesterday I could run python scripts just fine. I also had numpy installed and tested on my system. From here, I proceeded to install opencv on my Mac following this link.
Afterwards, I tested it and it worked fine. Then I installed pyOSC.
Then I proceeded to use two example scripts to test that it was working fine, and it was.
Then, I updated python on my system, and now it can't find OSC and numpy whenever I try to call them (from the python interpreter or another script). When I run pip list I can see that they're still installed. I'm pretty sure this is the root of the issue, I'm just not sure how to fix it without uninstalling and re-installing everything.
Any Ideas? Currently running python 2.7
EDIT I had the version of python that came with the system and I downloaded the new version of python from python.org because I was having issues with segmentation fault 11 error.
After some googling I figured it out.
I used type -a python to see all versions I had of python.
Weirdly enough, I had the Mac System version as /usr/bin/python and then I had two entries under /usr/local/bin/python. I deleted both of these and now everything is working properly.

Uninstall python 3.2 on mac os x 10.6.7

According to the documentation from python.org, python 3.2 install on mac os requires an upgrade to tcl/tk 8.5.9 (for use of IDLE). In my haste, I have done both. Now my friend told me that python 3 is not recommended yet because only the built-ins and a few modules have been released for 3. The stable one so far is 2.7 (especially if one wants to make extensive use of a variety of modules). My machine has both 2.6.1 and 3.2 (because some OS services make use of 2.6.1 that comes as default with the OS).
1. How do i remove 3.2 completely to avoid any compatibility issues?
tcl/tk 8.5.9 was also installed and this is not the default. There was no verbose mode during installation, so I don't know whether it replaced the default one. If it did how bad can it be for the OS? and hence
2. If the above is really bad, how do i downgrade to the old version of tcl/tk?
In short, how do i bring my machine back to its original state? If anyone knows all the paths to the directories and files I can do it manually.
Thanks
Since Python installs using a package manager, you can use Suspicious Package to look at the install script and where everything is installed.
Be aware this is for demonstration purposes only. My environment is OSX 10.6.8 and am uninstalling python-3.2.2-macosx10.6.dmg.
sudo rm -Rfv /Library/Frameworks/Python.framework/ /Applications/Python\ 3.2/
cd /usr/local/bin/
sudo rm -fv 2to3 2to3-3.2 idle3 idle3.2 pydoc3 pydoc3.2 python3 python3-32 python3-config python3.2 python3.2-32 python3.2-config python3.2m python3.2m-config pythonw3 pythonw3-32 pythonw3.2 pythonw3.2-32 /Developer/Documentation/Python/Reference\ Documentation\ 3.2
I did the same (3.2 on a mac 10.6) and:
-Moved both the Python 3.2 folder and the ActiveState ActiveTcl folder from the Applications Folder to the Trash.
-Moved the Python.framework folder from the Library/Frameworks folder to the Trash.
Running System profiler shows only the 2.6 version of Python.
Marcos
just uninstall 3x version of python if you have already installed it. Eclipse has that option when you click "see whats already installed".
Install later 2.7 version. It works for me on my OS X 10.9.2 with Eclipse Juno.

confused about macports

I am using MacBook Pro Mac OS 10.5 with related version of XCode. I am new to this development environment. I am learning macports, and I read information about macports from http://www.macports.org/. But I am still confused what macports is after reading information from this site.
I am previous working on Windows and Linux, could anyone let me know what macports is (in easy words) and what is the similar item on Windows/Linux?
thanks in avdance,
George
macports is a way of getting executables and other compiled code installed on your computer without having to work out the details of compiling/linking each apllication.
It is equivalent to a package manager under Linux and other Unicies. There is no direct equivalent under Windows.
It is just a convenient way to install a lot of *nix soft on your mac book. They are installed separately (not overwriting) from binaries/daemons/libs already installed on your mac (by default in folder /opl/local). Also they are much fresher than those installed on your mac.
For example 10.6 ships with bash 3.2, but after running sudo port install bash, you will get version 4.x (to make it your default shell add /opt/local/bin/bash to file /private/etc/shells, run chsh -s /opt/local/bin/bash and reopen terminal).
Note other os x package managers: fink and homebrew (superuser question)

Resources