Python + PyQt + (Linux/Windows/Mac OS X) 2011 NINJA-IDE (from: 'Ninja Is Not Just Another IDE'), is a cross-platform integrated development environment specially design to build Python Applications. 4Videosoft DVD Audio Ripper for Mac is the best Mac DVD Audio Ripper software and is a program designed just for Mac OS X (include Mac OS X 10.5 leopard, Mac Intel and Mac PowerPC) users. This Mac DVD Audio Ripper can rip DVD audio to MP3 Mac.
Active1 year ago
A colleague of mine wants to use my python 2 code on his OS X (10.6) machine. My code imports several built-in python packages, including Tkinter and shelve, and also uses third-party packages, including numpy, scipy, matplotlib, and ipython.
I've encountered a few problems with OS X's built-in python. (IDLE doesn't work, for example*). I suspect I should install a more recent version of python, and a different version of Tk.
My questions:
If this process goes well, I'd consider adding OS X instructions to my code's documentation, so I'd like to boil down this process to the simplest, most general approach.
*EDIT: Also, this
EDIT: Thank you everyone for the useful answers. My colleague tried MacPorts, which seems to work well, but has a few speedbumps. First we had to install Xcode from the system install disk. This is not a fast or lightweight install (several GB). Luckily we still had the disk! Once Xcode was installed, MacPorts was easy to install. Python and the python subpackages we needed were also easy to install, but he told me this installation took several hours. Presumably this delay is due to compilation? He had an easy time setting the MacPorts python as default. However, I think we have to change the 'Python Launcher' application by hand, this seems to still default to the system python.
Even though he has a working system now, I'm tempted to ask him to try one of the other solutions. I'm not sure all of my code's potential users will tolerate a multi-hour, multi-gigabyte installation.
Community♦
AndrewAndrew
1,48233 gold badges2121 silver badges4444 bronze badges
7 Answers
Using MacPorts, you can install python 2.6, 2.7, 3.1 and 3.2 at the same time, with their own packages, without ever touching the built-in python.
numpy, scipy, matplotlib, and ipython are also available as ports for most of those python versions.
Moreover, if you install the python_select port, you'll be able:
Add virtualenv to the mix, and you'll have a very, very flexible Python development environment.
As for your questions:
Q1: with MacPorts, no. while not a frequent user, I've installed and used matplotlib in 2.6 and 2.7, switching between the two using python_select. Drum extract vst crack rutracker.
Q2: easy_install, pip, ipython will be 'linked' to the python they were installed by. (but see tip 1)
Q3: it's easier to install one of the py{26,27,xx}-numpy ports, or
pip install numpy under your python_select'ed python.
Q4: well, MacPorts is the best thing I know after APT on Debian/Ubuntu.. :-)
Now, two tips if you try MacPorts:
Photo editing softwares for mac free. Regards,
Georges
Georges MartinGeorges Martin
62911 gold badge55 silver badges1010 bronze badges
I use
brew to install all my libraries/compilers/interpreters.
To install
python try this:
Then add Python's binaries directory to your
$PATH in your ~/.profile :
I'd recommend you to install igorgueigorgue
pip , virtualenv and virtualenvwrapper to have better control over your environment too.
7,4721010 gold badges3333 silver badges5151 bronze badges
Have you tried ActivePython?
It includes a package manager (PyPM) that, by default, installs into your home directory (eg:
~/Library/Python/2.7 ). Main scripts get symlinked in /usr/local/bin ; use the included pythonselect to set the active Python version.
You don't have to bother installing .dmg packages, as PyPM is a binary package manager .. therefore you can install non-pure Python packages like NumPy without having to compile things yourself.
ActivePython can use Apple's Tcl/Tk or, if installed, ActiveTcl.
A 'simplest, most general approach' in your documentation could be:
37.5k5454 gold badges127127 silver badges164164 bronze badges
In almost all cases, the best python to use is the one from http://python.org/. It sets up the paths correctly and doesn't overwrite anything. DMG package installs usually work automatically, as does Andrew JaffeAndrew Jaffe
python setup.py install , and it's not too hard to get setuptools to work. If you want per-user installs, it is easy to set up .pydistutils.cfg and python automatically recognizes the path install_lib = ~/Library/Python/$py_version_short/site-packages
19.5k22 gold badges3939 silver badges5151 bronze badges
![]()
An addendum regarding the usage of
brew :
Download game king of fighter 97 untuk android. Since some time,
brew install python will install python3.
If you intend to install python2, you want to use
It is perfectly fine to install both python and python3 using brew!
GhostCatGhostCat
109k1818 gold badges108108 silver badges184184 bronze badges
Best Python Editor For Ubuntu
In general it is not a problem at all to have more than one python installation on your machine. You just have to watch out which one you are calling on the command line.
.. helps to identify where your python binary is located. The original Mac OS X python is usually at '/usr/bin/python'
I personally use the MacPorts python installation. It also supports you with the installation of modules. (see link above)
Community♦
sebssebs
3,35322 gold badges1414 silver badges2222 bronze badges
I have 4 versions of python on my MacBook Pro. 2 from the original install of OS X 10.6 and a subsequent update, then self installed copies of python 2.7 and 3.2. You can update the
python command to point at any of the versions. They all install in separate directories and cause no problems with each other.
I'm not sure what will happen when you install from a .dmg file. I believe it will simply use whatever version
python points to.
This post on superuser.com answers your questions on changing default paths.
Community♦
EndophageEndophage
13.9k77 gold badges5151 silver badges8080 bronze badges
Not the answer you're looking for? Browse other questions tagged pythonmacosnumpytkinteripython or ask your own question.
Active9 years, 1 month ago
Possible Duplicate:
What’s a good IDE for Python on the Mac?
Hi,
I'm going to start a quite big python project development under Mac OS X. What is the best python IDE for Mac OS X -recommended freeware-.
Community♦
Osama GamalOsama Gamal
54633 gold badges99 silver badges1818 bronze badges
marked as duplicate by BoltClock♦, Jan Jongboom, Jochen Ritzel, Daniel Roseman, bernieAug 8 '10 at 18:47
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
1 Answerbanxbanx
2,01244 gold badges1919 silver badges3030 bronze badges
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Using Python On MacNot the answer you're looking for? Browse other questions tagged pythonmacoside or ask your own question.Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |