stillsugar.blogg.se

Using python on mac 10.11
Using python on mac 10.11







using python on mac 10.11
  1. Using python on mac 10.11 for mac os x#
  2. Using python on mac 10.11 install#
  3. Using python on mac 10.11 drivers#

# into your /usr/local/cuda/lib and /usr/local/cuda/include folders # extract to the NVIDIA CUDA folder and perform necessary linking

Using python on mac 10.11 install#

# Install cuDNN v5 for 8.0 RC or use the latest when it's available

Using python on mac 10.11 drivers#

# Install the experimental NVIDIA Mac drivers # Select both the driver and the toolkit, no documentation necessary # Install CUDA toolkit 8.0 release candidate # Install XCode 7.3 from the App Store (tested)

using python on mac 10.11

Select the brew group, and add the user accounts you want to use brew to it.# Tested on macbook w/gt750m | OS X 10.11.6 If you have multiple user accounts, and you want more than one of them to be able to use brew, you need to run through a few steps, otherwise you will constantly have to change ownership of the Homebrew file structure every time you switch users, and that’s not a great idea.ĭetailed instructions can be found online, but the quick answer is this:Ĭlick the “+” (unlock first if necessary) The formula built, but is not symlinked into /usr/local 安装完sdl之后缺link不上: Error: The \`brew link\` step did not complete successfully

using python on mac 10.11

$ rm -r Library/Homebrew Library/Aliases Library/Formula Library/Contributions

Using python on mac 10.11 for mac os x#

Stackoverflow上面有解答: Installing Pygame for Mac OS X 10.6.8 Library/Frameworks/amework/Versions/2.7/lib/python2.7/site-packages/pygame/base.so: no matching architecture in universal wrapper ImportError: dlopen(/Library/Frameworks/amework/Versions/2.7/lib/python2.7/site-packages/pygame/base.so, 2): no suitable image found. Some code editors will also let you run Python programs from inside the program, but we’ll talk about that in a separate post. You will need to run your programs from the command line like this: $ python3 mygame.py You will not be able to use Pygame from IDLE. If you don’t see an error message, you’re all set! Now head over to our YouTube Channel and start coding! Run Python from the command line: $ python3Īnd try loading Pygame: > import pygame

using python on mac 10.11

$ brew install sdl sdl_image sdl_ttf portmidi libogg libvorbis Just type the following commands one at a time and let the computer do its thing: $ brew cask install xquartz Now we can start installing all the requirements for Pygame. You’ll also need to install Homebrew Cask ( ): $ brew install caskroom/cask/brew-cask Copy and paste this on the command line: $ ruby -e "$(curl -fsSL )"Īnd follow the directions. It saves you having to go to a bunch of different sites and download lots of individual installers. Homebrew is a tool to easily install all kinds of software from the command line. When it’s finished, type the following at the command line: $ xcode-select -install It can be installed from the App Store (it’s free). XCode is the tool from Apple for creating Mac and iOS applications. You access the command line by running the Terminal application - click on the Spotlight icon and type “terminal” to find it. Once you get used to it, you’ll find it’s the quickest and easiest way to do lots of useful things on the computer. Don’t be intimidated - programmers work on the command line all the time. Note: For most of these instructions you will need to use the command line.









Using python on mac 10.11