Download Python Programming for Arduino - Pratik Desai2015-05

Transcript
>pythonez_setup.py
ThiswillinstallSetuptoolsintheScriptsfolderofyourdefaultPythoninstallationfolder.
UsingthesamemethodthatweusedwhenweaddedPythontoEnvironmentVariables,
nowincludeSetuptoolsbyaddingC:\Python27\ScriptstoPATH,followedbythe
semicolon(;).
ThiswillenabletheinstallationofvariousPythonpackagesusingeasy_installtoyour
PythonpackagesfoldercalledLibs.Onceyouhaveaddedthepackagemanagertothe
environmentvariables,youneedtocloseandreopenthecommandpromptforthese
changestotakeeffect.
MacOSX
SetuptoolscanbeinstalledinMacOSXusinganyofthefollowingmethods.Itis
advisableforbeginnerstousethefirstmethod,asthesecondmethodrequirestheexternal
packagemanagerHomebrew.
IfyouhaveneverworkedwithHomebrewbefore,youwillneedtofollowthesestepsto
installSetuptoolsonyourMac:
1. Downloadez_setup.pyfromtheUnix/Macsectionat
https://pypi.python.org/pypi/setuptools.
2. Opentheterminalandnavigatetothedirectorywhereyoudownloadedthisfile.For
mostbrowsers,thefilegetssavedtotheDownloadfolder.
3. RunthefollowingcommandintheterminaltobuildandsetupSetuptools:
$sudopythonez_setup.py
IfyouarefamiliarwithHomebrew-basedsoftwareinstallation,justfollowthesequick
stepstoinstallSetuptools:
1. First,installwgetfromHomebrewifyoudon’thaveitalready:
$brewinstallwget
2. Onceyouhaveinstalledwget,runthefollowingcommandintheterminal:
$wgethttps://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py
-O-|python
Note
MoreinformationregardingtheHomebrewutilitycanbeobtainedfrom
http://brew.sh.
YoucaninstallHomebrewonyourMacbyrunningthefollowingsimplescriptinthe
terminal:
ruby-e"$(curl-fsSL
https://raw.githubusercontent.com/Homebrew/install/master/install)"