Git Product home page Git Product logo

Comments (6)

mrry avatar mrry commented on April 16, 2024

For this to work, you'll have to install the PIP package. You can either download the pre-built package, or build from source by following the instructions here: http://tensorflow.org/get_started/os_setup.md#create-pip

from tensorflow.

wangdelp avatar wangdelp commented on April 16, 2024

@mrry Thank you. When I run
bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg

Mon Nov 9 15:34:49 EST 2015 : === Using tmpdir: /tmp/tmp.itHpiLkuJI
/tmp/tmp.itHpiLkuJI ~/packages/tensorflow
Mon Nov 9 15:34:49 EST 2015 : === Building wheel
Traceback (most recent call last):
File "setup.py", line 77, in
keywords='tensorflow tensor machine learning',
File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "build/bdist.linux-x86_64/egg/setuptools/command/sdist.py", line 48, in run
File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.7/distutils/dist.py", line 970, in run_command
cmd_obj = self.get_command_obj(command)
File "/usr/lib/python2.7/distutils/dist.py", line 845, in get_command_obj
klass = self.get_command_class(command)
File "build/bdist.linux-x86_64/egg/setuptools/dist.py", line 430, in get_command_class
File "/usr/lib/python2.7/distutils/dist.py", line 815, in get_command_class
import (module_name)
File "/usr/lib/python2.7/distutils/command/check.py", line 13, in
from docutils.utils import Reporter
File "/home/xeraph/virtualenv/v1/local/lib/python2.7/site-packages/docutils/utils/init.py", line 20, in
import docutils.io
File "/home/xeraph/virtualenv/v1/local/lib/python2.7/site-packages/docutils/io.py", line 18, in
from docutils.utils.error_reporting import locale_encoding, ErrorString, ErrorOutput
File "/home/xeraph/virtualenv/v1/local/lib/python2.7/site-packages/docutils/utils/error_reporting.py", line 47, in
locale_encoding = locale.getlocale()[1] or locale.getdefaultlocale()[1]
File "/home/xeraph/virtualenv/v1/lib/python2.7/locale.py", line 543, in getdefaultlocale
return _parse_localename(localename)
File "/home/xeraph/virtualenv/v1/lib/python2.7/locale.py", line 475, in _parse_localename
raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: UTF-8

Any idea?

from tensorflow.

mrry avatar mrry commented on April 16, 2024

Can you try the following?

export LC_ALL=en_us.UTF-8
export LANG=en_us.UTF-8
bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg

from tensorflow.

wangdelp avatar wangdelp commented on April 16, 2024

@mrry it works, Thx.

from tensorflow.

kirai avatar kirai commented on April 16, 2024

I run into the same problem. I use Mac OS X in Japanese.

export LC_ALL=en_us.UTF-8
export LANG=en_us.UTF-8

Solved it :)

But I think en_us.UTF-8 should not be assumed by default on installation.

from tensorflow.

qiaohaijun avatar qiaohaijun commented on April 16, 2024

export LC_ALL=en_us.UTF-8
export LANG=en_us.UTF-8
bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg

it works, but I dont known why.

from tensorflow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.