How to reinstall Mac OSX default python2.7? - python-2.7

I removed Mac OSX's default python2.7 by mistake. Can I reinstall it and IDLE without reinstalling Mac OSX? A similar question was posted in trying to reinstall python2.7 mac, but it is not helpful for me. Any help is highly appreciated.

Found a solution link in Chinese(https://www.zhihu.com/question/22972209). Not tried yet because I don't need to use python2.7 at the moment. Wish it to be useful for others.

Related

How update or uninstall GStreamer on macOS?

There are no instructions on the GStreamer site about how to update to the latest version or just uninstall it on macOS. Even googling comes up with basically nothing. How do I do it? Is it sufficient to simply delete the whole /Library/Frameworks/GStreamer.framework folder? And then reinstall the latest version? That would be just guesswork which a regular user should not be doing.
Thanks for reading and answering if you can--

netbeans c++ mingw - no shell found

I have netbeans IDE v8.2 . Im trying to create a C++ project. I dont have cygwin, but I have already installed MinGW, inside it, i have msys-make.bin, mingw32-gcc-g++.bin. Also, when i installed mingw, it came with nysys 1.0.
This is the tools options table:
However, it keep sending the message "no shell found. Cannot proceed. Please install either cygwin or mysys".
What is the solution for this?
We can solve it if we set as environment variables MinGW (C:\MinGW\bin) and MySYS (C:\MinGW\msys\1.0\bin).
This is my current setup:
#john I think that i solved it. Yes, minGW has msys 1.0, but i installed mysys standalone version in c:\ and netbeans worked with it. It now seems to work. Thanks.

How to install numpy on win7 64bit for python 2.7.8?

I was trying unofficial binaries here: http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy
but I still don't know which one is good for me. Any ideas?
numpy‑MKL‑1.9.1.win‑amd64‑py2.7 should do.

Install qt-creator doesn't run

I'm trying to install qt-creator on my computer (windows 8.1). I have this installation qt-windows-opensource-5.1.1-mingw48_opengl-x86-offline but when I run it, nothing happens. The installation process won't start. I have tried installing qt-windows-opensource-5.1.1-msvc2012-x86_64-offline which installs fine but the compiler is not stable. What should I do?
Just found the solution. Turns out the installation file was corrupted. i download the same version from a different mirror and worked just fine. Thank you all for your comments and answers

Is the latest version of xattr (0.6.4) compatible with the latest stable version of Python (2.7.5)?

I'm asking this question because I'm having problems installing Little Snitch 3.1 on Mac OS X Mountain Lion 10.8.3. Indeed, I'm getting the following error:
Error removing quarantine on ...: python version 2.7.5 can't run /usr/bin/xattr. Try the alternative(s):
/usr/bin/xattr-2.5 (uses python 2.5)
/usr/bin/xattr-2.6 (uses python 2.6)
/usr/bin/xattr-2.7 (uses python 2.7)
Run man python for more information about multiple version support in
Mac OS X.
Mountain Lion comes with Python 2.7.2. I updated Python to version 2.7.5 using the instructions found here:
http://wolfpaulus.com/jounal/mac/installing_python_osx
Personally, I understand neither what the quarantine is nor what xattr does!
The help I got from Little Snitch Support was:
"Without MacPorts option to switch back to previous versions, it would be best for you to reinstall your 10.8.3 system files from the OS X Installer Disk to hopefully recover the python installation."
Yet, I followed Wolf Paulus' instructions because I wanted to avoid having several version of Python on my Mac. I just wanted the latest stable version, i.e. 2.7.5. I also suspect that doing what Little Snitch Support proposes is really going to make things messy on my Mac!
Any help in understanding the problem or, even better, solving the issue would be greatly appreciated.
Thank you.