Path: csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: Errors in installation of matplotlib and pandas on Macbook Date: Thu, 30 Jun 2016 14:49:06 +1000 Lines: 21 Message-ID: References: <34f6dbb3-5781-468b-9e47-006ffb36582f@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de LkbyUeSg6dDx/aloi2un3glnh3na7DALjxbPfHRxkDNA== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'locale': 0.07; 'subject:installation': 0.07; 'utf-8': 0.07; 'valueerror:': 0.07; 'cc:addr:python-list': 0.09; "%s'": 0.09; 'python:': 0.09; 'thu,': 0.15; '2016': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'macs': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'using,': 0.16; 'valueerror,': 0.16; 'worst': 0.16; 'wrote:': 0.16; 'first.': 0.18; 'language': 0.19; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'select': 0.23; 'help.': 0.23; 'header:In-Reply-To:1': 0.24; 'command': 0.26; 'message-id:@mail.gmail.com': 0.27; 'fine': 0.28; 'looks': 0.29; '(although': 0.29; 'raise': 0.29; 'skip:_ 10': 0.32; 'knows': 0.32; 'though,': 0.32; 'run': 0.33; 'problem': 0.33; 'usually': 0.33; 'case,': 0.34; 'file': 0.34; 'received:google.com': 0.35; 'primarily': 0.35; 'unknown': 0.35; 'something': 0.35; 'pm,': 0.36; 'subject:: ': 0.37; 'environment.': 0.37; 'starting': 0.37; 'someone': 0.38; 'your': 0.60; "you'll": 0.61; '30,': 0.63; 'export': 0.63; 'believe': 0.66; 'country': 0.74; 'chrisa': 0.84; 'speak,': 0.84; 'subject:Errors': 0.84; 'together,': 0.84; 'to:none': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:cc; bh=Seg2g5da98rlRqOnAe+T4D2yeJVKWd1XxrVWiynGaw8=; b=bgf/IroP1fVOzXzGZ8XtQL910I9N46zA+zUUMfOtJq/5aG8ynvNkNQSE3LOnjcIAef Biqj0HhlRymI3gJrKm5c2XI/MJc3j6BYA4Fo7N+rZAlkftLPnQX6HM3RNuo7cytFv9bi g9k4G4+VWKXQtisTwLdCRN3pcXdF97PBPG4z4iAJQaWwU1BSzcmCbjr1Tr1Pe5NIAhNW Bw6jCcvxZs+aCdjYgiw9LMrgDTJ4o1E9q4esm0dv4/WT85FJyVeLIwp1HuLdynJv9N9k fQt0kB1MWoBzO98T5FooWF/A+mCOhOQszts4MU2qWfZQgMN3T3l1j8lsDqmjnYW7mpjq FIfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:cc; bh=Seg2g5da98rlRqOnAe+T4D2yeJVKWd1XxrVWiynGaw8=; b=i8hXWyxcpyjzP6AW9evhtue4+5kcLeAY/2ZhuZWWN7EfLvRQGT5fzQf7gs4bf66pJx fQboQRh24yGb/NVjVp6nMUjKOgJAcdM+1dZXe2TwLyMFVo54PqCHMtJcbU2/OFOc+Y1q CjAvQsEDrdVNtNZBBAH1KthoAoNTOddRotJ4MwjjQaeFyVa8kEd3x9NEDIfYzzXecsIP c+sQWaOM5GuBGN5zQptpyaoulaiNcEJKjw9OHmFcd4ZSwkSnhmFcRC3w6m1ozZL1i/2C b9uo4vxPO7L1oh9iI2AwretLUe34sKToJid8vt/cRn3m6eENUInxIFc1Mzrj+tEGoYRB EdiQ== X-Gm-Message-State: ALyK8tL6UGEsrTmzQQsNJkNBVqECyY+IIrhJDS+u0+Ne4mIShwZnsqyYuZsLU/T8w94EiOvMfX9rRDXZxUEO0A== X-Received: by 10.194.70.41 with SMTP id j9mr11444951wju.30.1467262146800; Wed, 29 Jun 2016 21:49:06 -0700 (PDT) In-Reply-To: <34f6dbb3-5781-468b-9e47-006ffb36582f@googlegroups.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: <34f6dbb3-5781-468b-9e47-006ffb36582f@googlegroups.com> Xref: csiph.com comp.lang.python:110809 On Thu, Jun 30, 2016 at 1:51 PM, Madhavan Bomidi wrote: > File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py", line 475, in _parse_localename > raise ValueError, 'unknown locale: %s' % localename > ValueError: unknown locale: UTF-8 This looks like a problem in your environment. "UTF-8" is not a locale; usually you'll want something else first. For me, it's "en_AU.utf8" (although I believe UTF-8 works fine in place of utf8). What language do you primarily speak, and what country are you in? Put their two-letter codes together, and you'll get something like "en_US.utf8" (English, USA), or "tr_TR.utf8" (Turkish, Turkey), or "pt_BR.utf8" (Portuguese, Brazil). Once you know what locale you want to be using, though, you'll need someone who knows Macs to help you select that appropriately. Worst case, run this command before starting Python: export LC_ALL=en_AU.utf8 That may help. ChrisA