๊ฐ๋ฐ์๋ค์ด Python 3.7์ ๋ฐ๋ผ์ก๊ธฐ ์ํด ์ด์ฌํ ๋
ธ๋ ฅํ๊ณ ์๋ค๊ณ ํ์ ํฉ๋๋ค.
ํ์๋ผ์ธ์ด ์๋์?
pip3 install tensorflow - ์์ค์์ ๋น๋ํ๋ฉด ๋ถ๋ช ํ ์๋ํ์ง ์์ต๋๋ค.
OS ํ๋ซํผ ๋ฐ ๋ฐฐํฌ: Mac OS X 10.13.5
Python: Python 3.7.0(ํ๋ธ๋ฅ)
TensorFlow ์ค์น: ์์ค(https://github.com/tensorflow/tensorflow.git)
TensorFlow ๋ฒ์ : TensorFlow 1.9.0-rc2
๋ฐ์ ค ๋ฒ์ :
Build label: 0.15.0-homebrew
Build target: bazel-out/darwin-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Tue Jun 26 12:42:27 2018 (1530016947)
Build timestamp: 1530016947
Build timestamp as int: 1530016947
CUDA/cuDNN ๋ฒ์ : ์์
GPU ๋ชจ๋ธ ๋ฐ ๋ฉ๋ชจ๋ฆฌ: ์์
์ฌํํ ์ ํํ ๋ช
๋ น:
bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package
Starting local Bazel server and connecting to it...
...........................
WARNING: /private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/grpc/BUILD:1992:1: in srcs attribute of cc_library rule @grpc//:grpc_nanopb: please do not import '@grpc//third_party/nanopb:pb_common.c' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'grpc_generate_one_off_targets', the error might have been caused by the macro implementation in /private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/grpc/bazel/grpc_build_system.bzl:172:12
WARNING: /private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/grpc/BUILD:1992:1: in srcs attribute of cc_library rule @grpc//:grpc_nanopb: please do not import '@grpc//third_party/nanopb:pb_decode.c' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'grpc_generate_one_off_targets', the error might have been caused by the macro implementation in /private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/grpc/bazel/grpc_build_system.bzl:172:12
WARNING: /private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/grpc/BUILD:1992:1: in srcs attribute of cc_library rule @grpc//:grpc_nanopb: please do not import '@grpc//third_party/nanopb:pb_encode.c' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'grpc_generate_one_off_targets', the error might have been caused by the macro implementation in /private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/grpc/bazel/grpc_build_system.bzl:172:12
WARNING: /Users/zardoz/Projects/tensorflow/tensorflow/contrib/learn/BUILD:17:1: in py_library rule //tensorflow/contrib/learn:learn: target '//tensorflow/contrib/learn:learn' depends on deprecated target '//tensorflow/contrib/session_bundle:exporter': No longer supported. Switch to SavedModel immediately.
WARNING: /Users/zardoz/Projects/tensorflow/tensorflow/contrib/learn/BUILD:17:1: in py_library rule //tensorflow/contrib/learn:learn: target '//tensorflow/contrib/learn:learn' depends on deprecated target '//tensorflow/contrib/session_bundle:gc': No longer supported. Switch to SavedModel immediately.
WARNING: /Users/zardoz/Projects/tensorflow/tensorflow/contrib/timeseries/python/timeseries/BUILD:356:1: in py_library rule //tensorflow/contrib/timeseries/python/timeseries:ar_model: target '//tensorflow/contrib/timeseries/python/timeseries:ar_model' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of `tf.contrib.distributions` to `tfp.distributions`.
WARNING: /Users/zardoz/Projects/tensorflow/tensorflow/contrib/timeseries/python/timeseries/state_space_models/BUILD:73:1: in py_library rule //tensorflow/contrib/timeseries/python/timeseries/state_space_models:kalman_filter: target '//tensorflow/contrib/timeseries/python/timeseries/state_space_models:kalman_filter' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of `tf.contrib.distributions` to `tfp.distributions`.
WARNING: /Users/zardoz/Projects/tensorflow/tensorflow/contrib/timeseries/python/timeseries/state_space_models/BUILD:230:1: in py_library rule //tensorflow/contrib/timeseries/python/timeseries/state_space_models:filtering_postprocessor: target '//tensorflow/contrib/timeseries/python/timeseries/state_space_models:filtering_postprocessor' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of `tf.contrib.distributions` to `tfp.distributions`.
WARNING: /Users/zardoz/Projects/tensorflow/tensorflow/contrib/bayesflow/BUILD:17:1: in py_library rule //tensorflow/contrib/bayesflow:bayesflow_py: target '//tensorflow/contrib/bayesflow:bayesflow_py' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of `tf.contrib.distributions` to `tfp.distributions`.
WARNING: /Users/zardoz/Projects/tensorflow/tensorflow/contrib/seq2seq/BUILD:23:1: in py_library rule //tensorflow/contrib/seq2seq:seq2seq_py: target '//tensorflow/contrib/seq2seq:seq2seq_py' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of `tf.contrib.distributions` to `tfp.distributions`.
WARNING: /Users/zardoz/Projects/tensorflow/tensorflow/contrib/kfac/python/ops/BUILD:80:1: in py_library rule //tensorflow/contrib/kfac/python/ops:loss_functions: target '//tensorflow/contrib/kfac/python/ops:loss_functions' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of `tf.contrib.distributions` to `tfp.distributions`.
WARNING: /Users/zardoz/Projects/tensorflow/tensorflow/contrib/BUILD:14:1: in py_library rule //tensorflow/contrib:contrib_py: target '//tensorflow/contrib:contrib_py' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of `tf.contrib.distributions` to `tfp.distributions`.
INFO: Analysed target //tensorflow/tools/pip_package:build_pip_package (303 packages loaded).
INFO: Found 1 target...
INFO: From Linking external/grpc/libgrpc_base_c.a [for host]:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(endpoint_pair_uv.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(endpoint_pair_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(ev_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(fork_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(gethostname_fallback.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(gethostname_host_name_max.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(iocp_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(iomgr_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(pollset_set_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(pollset_uv.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(pollset_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(resolve_address_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(socket_utils_linux.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(socket_utils_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(socket_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(tcp_client_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(tcp_server_utils_posix_noifaddrs.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(tcp_server_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(tcp_uv.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(tcp_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(timer_uv.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(unix_sockets_posix_noop.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(wakeup_fd_eventfd.o) has no symbols
INFO: From Linking external/grpc/libalts_util.a [for host]:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libalts_util.a(check_gcp_environment_linux.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libalts_util.a(check_gcp_environment_windows.o) has no symbols
INFO: From Linking external/grpc/libtsi.a [for host]:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libtsi.a(ssl_session_openssl.o) has no symbols
INFO: From Linking external/grpc/libgrpc++_base.a [for host]:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc++_base.a(rpc_method.o) has no symbols
INFO: From Linking external/grpc/libgpr_base.a [for host]:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(cpu_iphone.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(cpu_linux.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(cpu_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(env_linux.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(env_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(log_android.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(log_linux.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(log_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(string_util_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(string_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(sync_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(time_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(tls_pthread.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(tmpfile_msys.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(tmpfile_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(wrap_memcpy.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(thd_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(stap_timers.o) has no symbols
INFO: From Linking external/grpc/third_party/address_sorting/libaddress_sorting.a [for host]:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/third_party/address_sorting/libaddress_sorting.a(address_sorting_windows.o) has no symbols
ERROR: /Users/zardoz/Projects/tensorflow/tensorflow/python/BUILD:5315:1: Executing genrule //tensorflow/python:framework/fast_tensor_util.pyx_cython_translation failed (Exit 1)
Traceback (most recent call last):
File "/private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/execroot/org_tensorflow/bazel-out/host/bin/external/cython/cython_binary.runfiles/cython/cython.py", line 17, in <module>
main(command_line = 1)
File "/private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/cython/Cython/Compiler/Main.py", line 720, in main
result = compile(sources, options)
File "/private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/cython/Cython/Compiler/Main.py", line 695, in compile
return compile_multiple(source, options)
File "/private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/cython/Cython/Compiler/Main.py", line 666, in compile_multiple
context = options.create_context()
File "/private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/cython/Cython/Compiler/Main.py", line 590, in create_context
self.cplus, self.language_level, options=self)
File "/private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/cython/Cython/Compiler/Main.py", line 75, in __init__
from . import Builtin, CythonScope
File "/private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/cython/Cython/Compiler/CythonScope.py", line 5, in <module>
from .UtilityCode import CythonUtilityCode
File "/private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/cython/Cython/Compiler/UtilityCode.py", line 3, in <module>
from .TreeFragment import parse_from_strings, StringParseContext
File "/private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/cython/Cython/Compiler/TreeFragment.py", line 17, in <module>
from .Visitor import VisitorTransform
File "/private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/cython/Cython/Compiler/Visitor.py", line 15, in <module>
from . import ExprNodes
File "/private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/cython/Cython/Compiler/ExprNodes.py", line 2875
await = None
^
SyntaxError: invalid syntax
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 179.318s, Critical Path: 6.38s
INFO: 413 processes: 413 local.
FAILED: Build did NOT complete successfully
๊ทํ์ ๊ฒ์๋ฌผ์ ๊ฐ์ฌ๋๋ฆฝ๋๋ค. ๋ฌธ์ ํ
ํ๋ฆฟ์์ ๋ค์ ํ๋๋ฅผ ์ฑ์ฐ์ง ์์ ๊ฒ์ผ๋ก ๋ํ๋ฌ์ต๋๋ค. ๊ทํ์ ์ฌ๋ก์ ๊ด๋ จ์ด ์๋ ๊ฒฝ์ฐ ์
๋ฐ์ดํธํ๊ฑฐ๋ N/A๋ก ๋จ๊ฒจ๋ ์ ์์ต๋๊น? ๊ฐ์ฌ ํด์.
๋ด๊ฐ ์ฌ์ฉ์ ์ ์ ์ฝ๋๋ฅผ ์์ฑํ์ต๋๊น?
OS ํ๋ซํผ ๋ฐ ๋ฐฐํฌ
์์ ์ค์น๋ TensorFlow
ํ
์ํ๋ก์ฐ ๋ฒ์
๋ฐ์ ค ๋ฒ์
CUDA/cuDNN ๋ฒ์
GPU ๋ชจ๋ธ ๋ฐ ๋ฉ๋ชจ๋ฆฌ
์ฌ์์ฐ์ ์ํ ์ ํํ ๋ช
๋ น
์์ฒญ์ ๋ฐ๋ผ ์๋ณธ ๊ฒ์๋ฌผ์ ์ ๋ฐ์ดํธํ์ต๋๋ค.
@homofortis ๊ทธ๋์ Homebrew์ ํจ๊ป ์ด๊ฒ์ ์ฌ์ฉํ์ฌ Python ๋ฒ์ ์ ๋ค์ด๊ทธ๋ ์ด๋ํ ์ ์์ต๋๋ค.
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/f2a764ef944b1080be64bd88dca9a1d80130c558/Formula/python.rb
async
๋ฐ await
๋ ์ด์ ํค์๋์ด๋ฉฐ TF ์ฝ๋๋ฒ ์ด์ค์์ ๊ต์ฒดํด์ผ ํฉ๋๋ค. https://docs.python.org/3/whatsnew/3.7.html#summary -release-highlights ์ฐธ์กฐ
@activatedgeek ์ค๋ก์ง๋ง, Tensorflow๊ฐ Python 3.7(๊ฑฐ์ ํ ๋ฌ ์ ์ ์ถ์๋จ)๊ณผ ํธํ๋๋๋ก ๋ง๋๋ ํ์๋ผ์ธ์ ๊ดํ OP ์ง๋ฌธ์ ๋ค์ด๊ทธ๋ ์ด๋๊ฐ ์ด๋ป๊ฒ ๋ตํ๋์ง ์์ง ๋ชปํฉ๋๋ค.
@homofortis ์ฌ๊ณผ๋๋ฆฝ๋๋ค. ๋๋ ์๋ง๋ ๊ฑฐ๊ธฐ์ ๋ช ๋จ์ด๋ฅผ ๋์ณค์ ๊ฒ์ด๊ณ ๋น์ ์ ์ฃผ์ ๋ชฉํ๋ ์์ค์์ ์ปดํ์ผํ๋ ๊ฒ์ด๋ผ๊ณ ์๊ฐํ์ต๋๋ค. ๋ง์ ๊ฒ์์ผ๋ก ์ธํด ์ด ๋ฌธ์ ๊ฐ ๋ฐ์ํ๊ณ , Tensorflow๋ฅผ ์คํํ๋ ค๋ ๋ชจ๋ ์ฌ๋์๊ฒ ์ข์ ๊ฒ์ด๋ผ๊ณ ์๊ฐํ์ต๋๋ค.
์ค๋ช ์์ ๋ณผ ์ ์๋ฏ์ด ์ง๋จ์ Python-3.7๊ณผ์ tensorflow ํธํ์ฑ๊ณผ ๊ด๋ จ์ด ์์ง๋ง ๋๋ฌด ์ค๋๋ Cython์ ์ฌ์ฉํ๊ณ ํ์ฌ ์ ํํ ์ด ๋ฌธ์ ๋ Bazel ์์ ๊ณต๊ฐ์์ ์ธ๊ธ๋ Cython์ด ์ถฉ๋ถํ ์๋กญ๊ธฐ ๋๋ฌธ์ ์ฌํ๋์ง ์์ต๋๋ค. ๋ฐ๋ฉด์ ์ ์ด๋ 2๊ฐ์ Python-3.7 ํธํ์ฑ ๋ฌธ์ ๊ฐ ์์ต๋๋ค.
tensorflow/c/eager/c_api.{h,cc}
pywrap_tensorflow_internal.py
์ ๋ณ์ ์ด๋ฆ์ผ๋ก async
ํค์๋ ์ฌ์ฉ - #20690char *
์์ const char *
๋ก PyUnicode_AsUTF8AndSize()
์ ๋ฐํ ์ ํ ๋ณ๊ฒฝ์ผ๋ก ์ธํ ํ์FWIW, VS2017 ๋ฐ ๋ค์ ํจ์น๋ฅผ ์ฌ์ฉํ์ฌ Python 3.7์ฉ Windows์์ MKL๋ก tensorflow 1.9๋ฅผ ๋น๋ํ์ต๋๋ค(์์ง ํ ์คํธ๋์ง ์์).
diff --git a/tensorflow/c/eager/c_api.h b/tensorflow/c/eager/c_api.h
index 1862af3ce2..093b97110f 100644
--- a/tensorflow/c/eager/c_api.h
+++ b/tensorflow/c/eager/c_api.h
@@ -76,7 +76,7 @@ typedef enum TFE_ContextDevicePlacementPolicy {
// Sets the default execution mode (sync/async). Note that this can be
// overridden per thread using TFE_ContextSetAsyncForThread.
TF_CAPI_EXPORT extern void TFE_ContextOptionsSetAsync(TFE_ContextOptions*,
- unsigned char async);
+ unsigned char is_async);
TF_CAPI_EXPORT extern void TFE_ContextOptionsSetDevicePlacementPolicy(
TFE_ContextOptions*, TFE_ContextDevicePlacementPolicy);
@@ -125,7 +125,7 @@ TFE_ContextGetDevicePlacementPolicy(TFE_Context*);
// Overrides the execution mode (sync/async) for the current thread.
TF_CAPI_EXPORT extern void TFE_ContextSetAsyncForThread(TFE_Context*,
- unsigned char async,
+ unsigned char is_async,
TF_Status* status);
// Causes the calling thread to block till all ops dispatched in async mode
diff --git a/tensorflow/core/platform/windows/port.cc b/tensorflow/core/platform/windows/port.cc
index 174f41a993..b06434620e 100644
--- a/tensorflow/core/platform/windows/port.cc
+++ b/tensorflow/core/platform/windows/port.cc
@@ -57,6 +57,11 @@ int NumSchedulableCPUs() {
return system_info.dwNumberOfProcessors;
}
+int NumHyperthreadsPerCore() {
+ static const int ht_per_core = tensorflow::port::CPUIDNumSMT();
+ return (ht_per_core > 0) ? ht_per_core : 1;
+}
+
void* AlignedMalloc(size_t size, int minimum_alignment) {
#ifdef TENSORFLOW_USE_JEMALLOC
void* ptr = NULL;
diff --git a/tensorflow/python/eager/pywrap_tfe_src.cc b/tensorflow/python/eager/pywrap_tfe_src.cc
index 6c9481c3af..13edbb07db 100644
--- a/tensorflow/python/eager/pywrap_tfe_src.cc
+++ b/tensorflow/python/eager/pywrap_tfe_src.cc
@@ -813,7 +813,7 @@ char* TFE_GetPythonString(PyObject* o) {
}
#if PY_MAJOR_VERSION >= 3
if (PyUnicode_Check(o)) {
- return PyUnicode_AsUTF8(o);
+ return (char *)PyUnicode_AsUTF8(o);
}
#endif
return nullptr;
diff --git a/tensorflow/python/lib/core/ndarray_tensor.cc b/tensorflow/python/lib/core/ndarray_tensor.cc
index 9df38d464c..4150fbfdd4 100644
--- a/tensorflow/python/lib/core/ndarray_tensor.cc
+++ b/tensorflow/python/lib/core/ndarray_tensor.cc
@@ -154,7 +154,7 @@ Status PyBytesArrayMap(PyArrayObject* array, F f) {
if (PyUnicode_Check(item.get())) {
#if PY_VERSION_HEX >= 0x03030000
// Accept unicode by converting to UTF-8 bytes.
- ptr = PyUnicode_AsUTF8AndSize(item.get(), &len);
+ ptr = (char *)PyUnicode_AsUTF8AndSize(item.get(), &len);
if (!ptr) {
return errors::Internal("Unable to get element as UTF-8.");
}
diff --git a/tensorflow/python/lib/core/py_func.cc b/tensorflow/python/lib/core/py_func.cc
index 30c1a9c759..231a66de59 100644
--- a/tensorflow/python/lib/core/py_func.cc
+++ b/tensorflow/python/lib/core/py_func.cc
@@ -322,7 +322,7 @@ Status ConvertNdarrayToTensor(PyObject* obj, Tensor* ret) {
Py_ssize_t el_size;
if (PyBytes_AsStringAndSize(input_data[i], &el, &el_size) == -1) {
#if PY_MAJOR_VERSION >= 3
- el = PyUnicode_AsUTF8AndSize(input_data[i], &el_size);
+ el = (char *)PyUnicode_AsUTF8AndSize(input_data[i], &el_size);
#else
el = nullptr;
if (PyUnicode_Check(input_data[i])) {
PyUnicode_AsUTF8AndSize()
์ ๊ฒฐ๊ณผ์์ ์ ๊ฑฐํ๋ ๋์ const
ํ์ ์๋ฅผ ๋์์ ์ถ๊ฐํ๋ ๊ฒ์ ์ ํธํฉ๋๋ค. ์ด๊ฒ์ ์์ ๋ฌธ์์ด์ด๋ฉฐ ์์ ํด์๋ ์ ๋ฉ๋๋ค.
@asimshankar ๋ ์ด ์ฃผ์ ๋ฅผ ๊ฒํ ํ๊ณ PR์ ๋ณด๋๋ค๊ณ ํฉ๋๋ค. ๋ด๊ฐ ๊ทธ๋ฅผ ํ ๋นํ ๊ฒ.
Arch Linux์์ python 3.7์ ์ฌ์ฉํ์ฌ ์์ค์์ ๋น๋ํ ๋๋ ๋น์ทํ ๋ฌธ์ ์ ์ง๋ฉดํ๊ณ ์์ต๋๋ค.
ERROR: /home/rharish/.cache/bazel/_bazel_rharish/5d4d7b1255c710f6c814ab2f3f084405/external/protobuf_archive/BUILD:659:1: C++ compilation of rule '@protobuf_archive//:python/google/protobuf/pyext/_message.so' failed (Exit 1): crosstool_wrapper_driver_is_not_gcc failed: error executing command
(cd /home/rharish/.cache/bazel/_bazel_rharish/5d4d7b1255c710f6c814ab2f3f084405/execroot/org_tensorflow && \
exec env - \
LD_LIBRARY_PATH=:/usr/local/lib:/opt/cuda/lib64 \
PATH=/home/rharish/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/opt/cuda/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl \
PWD=/proc/self/cwd \
external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -MD -MF bazel-out/host/bin/external/protobuf_archive/_objs/python/google/protobuf/pyext/_message.so/descriptor_containers.pic.d '-frandom-seed=bazel-out/host/bin/external/protobuf_archive/_objs/python/google/protobuf/pyext/_message.so/descriptor_containers.pic.o' -iquote external/protobuf_archive -iquote bazel-out/host/genfiles/external/protobuf_archive -iquote bazel-out/host/bin/external/protobuf_archive -iquote external/bazel_tools -iquote bazel-out/host/genfiles/external/bazel_tools -iquote bazel-out/host/bin/external/bazel_tools -iquote external/local_config_python -iquote bazel-out/host/genfiles/external/local_config_python -iquote bazel-out/host/bin/external/local_config_python -isystem external/protobuf_archive/python -isystem bazel-out/host/genfiles/external/protobuf_archive/python -isystem bazel-out/host/bin/external/protobuf_archive/python -isystem external/protobuf_archive/src -isystem bazel-out/host/genfiles/external/protobuf_archive/src -isystem bazel-out/host/bin/external/protobuf_archive/src -isystem external/local_config_python/python_include -isystem bazel-out/host/genfiles/external/local_config_python/python_include -isystem bazel-out/host/bin/external/local_config_python/python_include '-std=c++11' -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -fPIC -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -Wall -fno-omit-frame-pointer -no-canonical-prefixes -DNDEBUG -g0 -O2 -ffunction-sections -fdata-sections -g0 '-march=native' -g0 -DHAVE_PTHREAD -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -Wno-unused-function -Wno-writable-strings '-DGOOGLE_PROTOBUF_HAS_ONEOF=1' '-DPROTOBUF_PYTHON_ALLOW_OVERSIZE_PROTOS=1' -c external/protobuf_archive/python/google/protobuf/pyext/descriptor_containers.cc -o bazel-out/host/bin/external/protobuf_archive/_objs/python/google/protobuf/pyext/_message.so/descriptor_containers.pic.o)
external/protobuf_archive/python/google/protobuf/pyext/descriptor_containers.cc: In function 'bool google::protobuf::python::descriptor::_GetItemByKey(google::protobuf::python::PyContainer*, PyObject*, const void**)':
external/protobuf_archive/python/google/protobuf/pyext/descriptor_containers.cc:69:45: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
((*(charpp) = PyUnicode_AsUTF8AndSize(ob, (sizep))) == NULL? -1: 0): \
~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
external/protobuf_archive/python/google/protobuf/pyext/descriptor_containers.cc:172:13: note: in expansion of macro 'PyString_AsStringAndSize'
if (PyString_AsStringAndSize(key, &name, &name_size) < 0) {
^~~~~~~~~~~~~~~~~~~~~~~~
external/protobuf_archive/python/google/protobuf/pyext/descriptor_containers.cc:69:45: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
((*(charpp) = PyUnicode_AsUTF8AndSize(ob, (sizep))) == NULL? -1: 0): \
~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
external/protobuf_archive/python/google/protobuf/pyext/descriptor_containers.cc:189:13: note: in expansion of macro 'PyString_AsStringAndSize'
if (PyString_AsStringAndSize(key, &camelcase_name, &name_size) < 0) {
^~~~~~~~~~~~~~~~~~~~~~~~
At global scope:
cc1plus: warning: unrecognized command line option '-Wno-writable-strings'
Target //tensorflow/tools/pip_package:build_pip_package failed to build
INFO: Elapsed time: 63.634s, Critical Path: 9.08s
INFO: 464 processes: 464 local.
FAILED: Build did NOT complete successfully
๋ด ์์คํ
๊ตฌ์ฑ์ ๋ค์๊ณผ ๊ฐ์ต๋๋ค.
OS ํ๋ซํผ ๋ฐ ๋ฐฐํฌ: ์์น ๋ฆฌ๋
์ค
ํ์ด์ฌ: ํ์ด์ฌ 3.7.0
TensorFlow ์ค์น: ์์ค(https://github.com/tensorflow/tensorflow.git), ๋ง์คํฐ ๋ธ๋์น
TensorFlow ๋ฒ์ : TensorFlow 1.9.0
๋ฐ์ ค ๋ฒ์ : 0.16.0
CUDA/cuDNN ๋ฒ์ : CUDA 9.2
GPU ๋ชจ๋ธ ๋ฐ ๋ฉ๋ชจ๋ฆฌ: NVIDIA GeForce GTX 960M, 4GB
@bstriner ๊ฐ #21202 ์ ๋ฐ์ดํธ์ ์์ํ์ฌ ํ ๊ฑธ์ ๋ ๋์๊ฐ์ต๋๋ค. ๊ทธ๋ฌ๋ Python 3.7์ ์ง์ํ๋ protobuf ๋ฆด๋ฆฌ์ค๋ฅผ ๊ธฐ๋ค๋ฆฐ ๋ค์ ์ protobuf ๋ฒ์ ์ ์ฌ์ฉํ๋๋ก TensorFlow ์ข ์์ฑ์ ์ ๋ฐ์ดํธํด์ผ ํ ๊ฒ ๊ฐ์ต๋๋ค.
@rharish101
Arch Linux๋ฅผ ์ฌ์ฉํ๋ ๊ฒฝ์ฐ pacman-S python-tensorflow
๋ก Tensorflow๋ฅผ ์ค์นํ ์ ์์ต๋๋ค.
@rharish101
CUDA ์ง์์ด ํ์ํ ๊ฒฝ์ฐ pacman-S python-tensorflow-cuda
๋ฅผ ์ค์นํ ์ ์์ต๋๋ค.
@hzxie ์, ์ด์ ์ ์๋ํฉ๋๋ค! Arch์ ์ฌ๋๋ค์ ์ด๋ป๊ฒ ์๋ํ๊ฒ ๋์์ต๋๊น?
์์ง 3.7์ ์ง์ํ๋ protobuf ๋ฆด๋ฆฌ์ค๋ ์์ง๋ง ๋ง์คํฐ์ ์ค๋ ์ท์ ์ฌ์ฉํ๋ ค๋ ๊ฒฝ์ฐ 3.7์ฉ TF๋ฅผ ๋น๋ํ ์ ์์ต๋๋ค.
@bstriner
์ฌ์ ํ ์ต์ ๋ง์คํฐ๋ฅผ ์ปดํ์ผํ ์ ์์ต๋๋ค. ๋น๋๊ฐ ์ค๋ฅ์ ํจ๊ป ์ข
๋ฃ๋ฉ๋๋ค.
OS ํ๋ซํผ ๋ฐ ๋ฐฐํฌ: Mac OS X 10.13.5
ํ์ด์ฌ: ํ์ด์ฌ 3.7.0
TensorFlow ์ค์น: ์์ค(https://github.com/tensorflow/tensorflow.git)
TensorFlow ๋ฒ์ : TensorFlow 1.10
Bazel ๋ฒ์ : 0.15.2-homebrew
CUDA/cuDNN ๋ฒ์ : ์์
GPU ๋ชจ๋ธ ๋ฐ ๋ฉ๋ชจ๋ฆฌ: ์์
์ฌํํ ์ ํํ ๋ช
๋ น:
bazel ๋น๋ --config=opt //tensorflow/tools/pip_ ํจํค์ง:build_pip_package
ERROR: /Users/zardoz/Projects/tensorflow/tensorflow/python/eager/BUILD:10:1: C++ compilation of rule '//tensorflow/python/eager:pywrap_tfe_lib' failed (Exit 1)
tensorflow/python/eager/pywrap_tfe_src.cc:219:11: error: cannot initialize a variable of type 'char *' with an rvalue of type 'const char *'
char* buf = PyUnicode_AsUTF8AndSize(py_value, &size);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tensorflow/python/eager/pywrap_tfe_src.cc:834:12: error: cannot initialize return object of type 'char *' with an rvalue of type 'const char *'
return PyUnicode_AsUTF8(o);
^~~~~~~~~~~~~~~~~~~
2 errors generated.
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 5896.213s, Critical Path: 267.71s
INFO: 2883 processes: 2883 local.
FAILED: Build did NOT complete successfully
@cgohlke python 3.7์ฉ tensorflow-gpu๋ฅผ ๋น๋ํ๋ ๋ฐฉ๋ฒ์ ๋ฌด์์ ๋๊น?
@homofortis ๋ ์ด ํ๋ณด๊ฐ ์์ง ๋ณํฉ๋์ง ์์๊ธฐ ๋๋ฌธ์ ๋๋ค. ์ง์ ์ก์ ๋น๊ฒจ์ผ ํฉ๋๋ค. https://github.com/tensorflow/tensorflow/pull/21202
py37 ์์ ์ฌํญ์ ํ์ฌ ์ ์ฅ์๋ก ๊ฐ์ ธ์ค๋ ค๋ฉด ๋ค์๊ณผ ๊ฐ์ด ํ์ญ์์ค.
git remote add bstriner https://github.com/bstriner/tensorflow.git
git fetch bstriner
git merge bstriner/py37
๊ธฐ๋ณธ์ ์ผ๋ก const char *
๊ฐ char *
๋๋ ์ด์ ์ ์ฌํ ๊ฒ์ผ๋ก ์บ์คํธ๋๋ ๋ฌธ์ ๊ฐ ๋ฐ์ํ๋ฉด py37์ ๋ณ๊ฒฝ ์ฌํญ์
๋๋ค. ๋งํฌ๋ PR์์ ์์ ๋ฐ ํ ๋ก .
@bstriner python 3.7์ฉ tensorflow gpu์ ํ ํ์ผ์ด ํ์ํฉ๋๋ค. ๋ ํผ์์๋ ์ง์ ์ ์์ด
์ด ๋ฌธ์ ๋ ์ธ์ ์์ ๋๋์??
@bstriner ์ ๊ธฐ์ฌ(PR #21202) ๋๋ถ์ ์ด์ Python 3.7์ฉ์ผ๋ก ๋น๋ํ ์ ์์ต๋๋ค. ๊ทธ๋ฌ๋ ๊ทธ๊ฐ PR์์ ์ธ๊ธํ๋ฏ์ด eigen ๋ฐ protobuf ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ Windows์์ ์ปดํ์ผํ๋ ค๋ฉด ์ฌ์ ํ ์์ ์ด ํ์ํฉ๋๋ค.
@gunan @angersson ์ TensorFlow 1.11์ ๊ณต์ ๋ฆด๋ฆฌ์ค๊ฐ Python 3.7์ ์ง์ํ๋์ง ์๋๋ฉด ์์ค์์ ์ปดํ์ผํด์ผ ํ๋์ง์ ๋ํด ์๊ณ ์์ ๊ฒ์ ๋๋ค.
์ฐ๋ฆฌ๋ ์ฌ์ ํ ์ฐ๋ฆฌ๊ฐ ํ์
ํด์ผ ํ ์ธํ๋ผ ์ธก๋ฉด์์ ๋ฌธ์ ๊ฐ ์์ต๋๋ค.
์ฐ๋ฆฌ์ ๋ชจ๋ ๋น๋ ์ธํ๋ผ๋ ์ปค๋ฎค๋ํฐ ์์ฒญ(์ฐ๋ถํฌ 14์ ํธํ ๊ฐ๋ฅ)์ผ๋ก ์ธํด ์ฐ๋ถํฌ 14๋ฅผ ์ฌ์ฉํฉ๋๋ค.
๊ทธ๋ฌ๋ python 3.7์ ์ฐ๋ถํฌ์ ํจ๊ป ์ ๊ณต๋๋ ๋ช ๊ฐ์ง ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ์
๋ฐ์ดํธ๋ ๋ฒ์ ์ด ํ์ํ๊ธฐ ๋๋ฌธ์ ์ฐ๋ถํฌ 14์์ ๋น๋ํ๊ธฐ๊ฐ ๊ฐ๋จํ์ง ์์ต๋๋ค.
Windows์์ eigen ๋ฐ protobuf ์์ ์ ๊ธฐ๋ค๋ฆฌ๋ ๋์ ํด๋น ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ ๊ฒ์
๋๋ค.
๊ทธ๋ฌ๋ ์ด๊ฒ์ 1.11์ python 3.7์ฉ์ผ๋ก ๋ฏธ๋ฆฌ ๋น๋๋ ํจํค์ง๊ฐ ์๋ค๋ ๊ฒ์ ์๋ฏธํฉ๋๋ค.
@SukeshP1995 ์ด URL์ ์ฌ์ฉํด ๋ณผ ์ ์์ต๋๋ค. https://www.lfd.uci.edu/~gohlke/pythonlibs/#tensorflow
Python 3.7์ฉ Ubuntu 16.04 TensorFlow GPU ํ ์ด ์์ต๋๊น? ๋๋ ๊ทธ๋ ์ง ์์ ๊ฒฝ์ฐ ์ง์ ๊ตฌ์ถํ๊ธฐ ์ํ ๊ฐ๋จํ ๊ฐ์ด๋๋ฅผ ์ป์ ์ ์์ต๋๊น? ์์ ์ก์์ฃผ๋ ์ฌ๋ ์์ด ๊ทธ๋ฅ ๋๊ฐ์ ํด ๋ณธ ๊ฒฝํ์ด ์์ด์ :)
@bjtho08 https://www.tensorflow.org/install/install_linux#python_36 ์ ๋ณด์ จ์ต๋๊น?
@morenoh149 python 3.6 ์ ์ฉ์ ๋๋ค. ๋ฐฉ๊ธ ์๋ก ์ค์นํ๊ธฐ ๋๋ฌธ์ 3.7์ด ์์ต๋๋ค.
https://github.com/tensorflow/tensorflow/issues/20517#issuecomment -418442189 ์ฌ์ ํ ์ ์ฉ๋ฉ๋๋ค.
์ธํ๋ผ ๋ฌธ์ (์ฐ๋ถํฌ 14์ python 3.7) ์ธ์๋ ๋ชจ๋ ์ข
์์ฑ์ด ์์ง python 3.7์ ์ง์ํ๋ ๊ฒ์ ์๋๋๋ค. ๊ทธ๋์ ์ฐ๋ฆฌ๋ ์ฌ์ ํ ํ์ด์ฌ 3.7๋ก ์ด๋ํ๊ธฐ ์ํด ๊ทธ๋ค๊ณผ ํ๋ ฅํ๊ณ ์์ต๋๋ค.
์ ์๋์, ๊ทธ๊ฑด @bjtho08 tensorflow๊ฐ 3.7์์ ์๋ก์ด python ํค์๋ ์ฌ์ฉ์ ์ค๋จํด์ผ ํ๋ ๊ทผ๋ณธ์ ์ธ ๋ฌธ์ ์ ๋๋ค. ์ด๊ฒ์ด ๋ฐ๋ก ์ด ์ค๋ ๋์ ๋ํ ๊ฒ์ ๋๋ค. ๊ทธ ๋์ ๋ณด๋ฅ ์ค์ธ ํฌํฌ๋ฅผ ์ฌ์ฉํ๊ฑฐ๋ 3.6์ ์ฌ์ฉํ ์ ์์ต๋๋ค.
@morenoh149 ๊ทธ๋์ ๋ด ์ต์ ์ ์ด์ ๋ฒ์ ์ python์ ๋น๋ํ๊ฑฐ๋ git/master์์ tensorflow๋ฅผ ๋น๋ํ๋ ๊ฒ์ ๋๊น?
์ค๋๋ถ๋ก ๊ทธ๋ ์ต๋๋ค. ์ด PR https://github.com/tensorflow/tensorflow/pull/21202 ๋ ๋ง์คํฐ์ ์์ง๋ง ๋ฆด๋ฆฌ์ค๋ ์์ง ์๋ฅด์ง ์์์ต๋๋ค. FWIW์์๋ pyenv ๋ฅผ ์ฌ์ฉํ์ฌ ์์คํ ์ ๋ง์ ํ์ด์ฌ ๋ฒ์ ์ ์ค์นํ ์ ์์ต๋๋ค. ์ ๋ฌธ ์ํํธ์จ์ด ์์ง๋์ด๋ ํ๋ก์ ํธ์ ๋ฐ๋ผ ์ข ์์ฑ๊ณผ ๋๊ตฌ๋ฅผ ๊ณ ์ ํ ์ ์์ด์ผ ํฉ๋๋ค.
@morenoh149 @bjtho08 ๋ง์คํฐ ๋ธ๋์น์์ tensorflow๋ฅผ ๋น๋ํ๋ ๊ฒ๋ง์ผ๋ก๋ ์ถฉ๋ถํ์ง ์์ต๋๋ค. ์ผ๋ถ ์ข ์ ํญ๋ชฉ์ ์์ง 3.7์ ์ง์ํ์ง ์์ต๋๋ค.
@adrianodennanni ์ข ์์ฑ์ 3.7์ ์ง์ํ์ง๋ง ๋ฆด๋ฆฌ์ค๋ ๋ฒ์ ์์๋ ์ง์ํ์ง ์์ต๋๋ค. ์์ ๊ณต๊ฐ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ํ์ฌ ๋ง์คํฐ๋ก ๋ณ๊ฒฝํด์ผ ํฉ๋๋ค. ํด๋น ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ์์ ์ ์ธ ๋ฆด๋ฆฌ์ค๊ฐ ์์ ๋๊น์ง tensorflow์ ์ข ์์ฑ์ ๋ณ๊ฒฝํ ์ ์์ต๋๋ค.
๋ฐ๋ผ์ ํ์ฌ protobuf์ ๊ฒฝ์ฐ ๋ค์์ ์ฌ์ฉํ์ญ์์ค.
PROTOBUF_URLS = [
"https://mirror.bazel.build/github.com/google/protobuf/archive/a6e1cc7e328c45a0cb9856c530c8f6cd23314163.tar.gz",
"https://github.com/google/protobuf/archive/a6e1cc7e328c45a0cb9856c530c8f6cd23314163.tar.gz",
]
PROTOBUF_SHA256 = "f785d2009ea7c8484cb0443d9db8fe55f73cfdb6e112bfa659a8a5cdaf664ccd"
PROTOBUF_STRIP_PREFIX = "protobuf-a6e1cc7e328c45a0cb9856c530c8f6cd23314163"
์ต์ ๊ณ ์ ๊ฐ์ด ํ์ํ ์๋ ์์ต๋๋ค.
@rharish101
CUDA ์ง์์ด ํ์ํ ๊ฒฝ์ฐpacman-S python-tensorflow-cuda
๋ฅผ ์ค์นํ ์ ์์ต๋๋ค.
์ํ์ด ๊ณ ๋ง์
์ค๋๋ถ๋ก ๊ทธ๋ ์ต๋๋ค. ์ด PR #21202๋ ๋ง์คํฐ์ ์์ง๋ง ๋ฆด๋ฆฌ์ค๋ ์์ง ์๋ฅด์ง ์์์ต๋๋ค. FWIW์์๋ pyenv ๋ฅผ ์ฌ์ฉํ์ฌ ์์คํ ์ ๋ง์ ํ์ด์ฌ ๋ฒ์ ์ ์ค์นํ ์ ์์ต๋๋ค. ์ ๋ฌธ ์ํํธ์จ์ด ์์ง๋์ด๋ ํ๋ก์ ํธ์ ๋ฐ๋ผ ์ข ์์ฑ๊ณผ ๋๊ตฌ๋ฅผ ๊ณ ์ ํ ์ ์์ด์ผ ํฉ๋๋ค.
@morenoh149 ํ ๊ฐ์ฌํฉ๋๋ค! pyenv ๋ฐ CUDA 9.0์ ์ฌ์ฉํ์ฌ ๋ค์ ์์ํ์ฌ ์๋ํ๊ฒ ๋ง๋ค์์ต๋๋ค. :)
@gunan
๊ทธ๋ฌ๋ python 3.7์ ์ฐ๋ถํฌ์ ํจ๊ป ์ ๊ณต๋๋ ๋ช ๊ฐ์ง ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ์ ๋ฐ์ดํธ๋ ๋ฒ์ ์ด ํ์ํ๊ธฐ ๋๋ฌธ์ ์ฐ๋ถํฌ 14์์ ๋น๋ํ๊ธฐ๊ฐ ๊ฐ๋จํ์ง ์์ต๋๋ค.
Ubuntu 12์์ Python-3.7์ ๋น๋ํ ๊ฒฝํ์ ๊ณต์ ํ๊ณ ์ถ์ต๋๋ค. ์์ง ํด๋น ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ์ง ๋ชปํ๋ค๋ฉด ๋์์ด ๋๊ธฐ๋ฅผ ๋ฐ๋๋๋ค. ๋ค์ ๊ตฌ์ฑ ํ๋๊ทธ๋ฅผ ์ฌ์ฉํ์ฌ ๋น๋ํฉ๋๋ค.
--prefix=... \
--enable-ipv6 \
--with-dbmliborder=gdbm \
--with-system-expat \
--with-computed-gotos \
--with-system-ffi \
--with-ensurepip=no
๊ทธ๋ฆฌ๊ณ Python์ ๋๋ฌด ์ค๋๋ ์์คํ
๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ OpenSSL๋ฟ์ด๋ฏ๋ก ssl
๋ชจ๋์ ๋น๋ํ ์ ์์ต๋๋ค. ์ด ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ๊ธฐ ์ํด ์์ค์์ OpenSSL์ ๋น๋ํ๊ณ cryptography
๋ ์ํผ(https://cryptography.io/en/latest/installation/#static-wheels)๋ฅผ ์ฌ์ฉํ์ฌ ์ ์ ์ผ๋ก ๋งํฌํ๊ธฐ๋ก ๊ฒฐ์ ํ์ต๋๋ค.
OPENSSL_VERSION=1.0.2p
wget https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz
tar xf openssl-${OPENSSL_VERSION}.tar.gz
cd openssl-${OPENSSL_VERSION}
./config no-shared no-ssl2 no-ssl3 -fPIC --prefix=$(pwd)/_openssl
make && make install
configure
์คํฌ๋ฆฝํธ์ ํ๋๊ทธ๋ฅผ ์ ๋ฌํ์ฌ ํด๋น OpenSSL์ ์ฌ์ฉํ์ฌ Python์ ๋น๋ํฉ๋๋ค. --with-openssl=$(pwd)/openssl-${OPENSSL_VERSION}/_openssl
configure
ํธ์ถ์ ๋ค์๊ณผ ๊ฐ์ต๋๋ค../configure
--prefix=... \
--enable-ipv6 \
--with-dbmliborder=gdbm \
--with-system-expat \
--with-computed-gotos \
--with-system-ffi \
--with-ensurepip=no \
--with-openssl=$(pwd)/openssl-${OPENSSL_VERSION}/_openssl
์ค๋๋ OpenSSL ๋ฌธ์ ์ธ์๋ ์ด์ Ubuntu์์ Python-3.7์ ๋น๋ํ๋ ๋ฐ ๋ฌธ์ ๊ฐ ๋ฐ์ํ์ง ์์์ต๋๋ค. ๋น๋๋ฅผ ํ ์คํธํ๋๋ฐ ์ ๋๋ก ์๋ํ๋ ๊ฒ ๊ฐ์ต๋๋ค. Python ์์ค์ ํ ์คํธ๋ ํต๊ณผํ์ต๋๋ค.
์์๋ฆฌํ๋ ๋ด๋น์ @gunan , @angersson : 14์ผ ๋์ ํ๋์ด ์์์ผ๋ฉฐ ์ด ๋ฌธ์ ์๋ ๋ด๋น์๊ฐ ์์ต๋๋ค. ๊ทธ์ ๋ฐ๋ผ ๋ ์ด๋ธ ๋ฐ/๋๋ ์ํ๋ฅผ ์ ๋ฐ์ดํธํ์ญ์์ค.
@bstriner PROTOBUF_URLS, PROTOBUF_SHA256 ๋ฐ PROTOBUF_STRIP_PREFIX ๋ณ๊ฒฝ์ ์ ์ํ์ต๋๋ค. tensorflow/workspace.bzl์์ ์ด ์์ ์ ์ํํ๋ค๊ณ ๊ฐ์ ํฉ๋๊น? ๋ค๋ฅธ ๊ณณ? ๊ฐ์ฌ ํด์.
์ค์ ๋ก ์ด๊ฒ์ ์๋ํ ํ tensorflow 1.11์ bazel ๋น๋ ๊ฒฐ๊ณผ๋ ๋ค์๊ณผ ๊ฐ์ต๋๋ค.
์ค๋ฅ: tensorflow/tensorflow/tools/pip_package/ BUILD:216 :1: 'tensorflow' ํจํค์ง ๋ก๋ ์ค ์ค๋ฅ: ํ์ฅ ํ์ผ์ ์ฐพ์ ์ ์์ต๋๋ค. '@bazel_skylib//:lib.bzl'์ ๋ํ ํจํค์ง๋ฅผ ๋ก๋ํ ์ ์์: '//tensorflow/tools/pip_ package:build_pip_package '์์ ์ ์ฅ์๋ฅผ ํ์ธํ๊ณ ์ฐธ์กฐํ ์ ์์ต๋๋ค.
@jeffcbecker ๋๋์ด ๋ฌธ์ ๊ฐ ์์ต๋๋ค. URL https://mirror.bazel.build/github.com/google/protobuf/archive/a6e1cc7e328c45a0cb9856c530c8f6cd23314163.tar.gz
์(๋ฅผ) ์ฌ์ฉํ ์ ์๋ ๊ฒ ๊ฐ์ต๋๋ค. ๋๊ตฌ๋ ์ง ์ด์ ๋ํ ํด๊ฒฐ ๋ฐฉ๋ฒ์ด ์์ต๋๊น?
Python 3.6์ ์ฌ์ฉํ์ฌ ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ ์ ์์์ต๋๋ค.
๊ฑด๋ฐฐ
์ ํ
๋ด T-Mobile 4G LTE ์ฅ์น์์ ์ ์ก๋จ
-------- ์๋ณธ ๋ฉ์์ง -------- ๋ณด๋ธ ์ฌ๋: Adriano Dennanni [email protected] ๋ ์ง: 10/21/18 ์คํ 1:40(GMT-08:00) ๋ฐ๋ ์ฌ๋: tensorflow/tensorflow [email protected] ์ฐธ์กฐ: jeffcbecker [email protected] ,mentment@ noreply.github.com ์ ๋ชฉ: Re: [tensorflow/tensorflow] Python 3.7 ํธํ์ฑ(#20517)
@jeffcbecker ๋๋์ด ๋ฌธ์ ๊ฐ ์์ต๋๋ค. URL https://mirror.bazel.build/github.com/google/protobuf/archive/a6e1cc7e328c45a0cb9856c530c8f6cd23314163.tar.gz ๋ฅผ ์ฌ์ฉํ ์ ์๋ ๊ฒ ๊ฐ์ต๋๋ค. ๋๊ตฌ๋ ์ง ์ด์ ๋ํ ํด๊ฒฐ ๋ฐฉ๋ฒ์ด ์์ต๋๊น?
โ
๋น์ ์ด ์ธ๊ธ๋์๊ธฐ ๋๋ฌธ์ ์ด๊ฒ์ ๋ฐ๋ ๊ฒ์
๋๋ค.
์ด ์ด๋ฉ์ผ์ ์ง์ ๋ต์ฅํ๊ฑฐ๋ GitHub์์ ๋ณด๊ฑฐ๋ ์ค๋ ๋๋ฅผ ์์๊ฑฐํ์ธ์.
{"api_version":"1.0","๊ฒ์์":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/tensorflow/tensorflow","title ":"tensorflow/tensorflow","์๋ง":"GitHub ์ ์ฅ์","main_image_url":" https://assets-cdn.github.com/images/email/message_cards/header.png ","avatar_image_url":" https://assets-cdn.github.com/images/email/message_cards/avatar.png ","action":{"name":"GitHub์์ ์ด๊ธฐ","url":" https://github.com /tensorflow/tensorflow "}},"updates":{"snippets":[{"icon":"PERSON","message":" @adrianodennanni in #20517: @jeffcbecker ์ ๋ ์ด ๋ฌธ์ ๋ฅผ ๊ฒช์์ต๋๋ค. URL https://mirror.bazel.build/github.com/google/protobuf/archive/a6e1cc7e328c45a0cb9856c530c8f6cd23314163.tar.gz
์(๋ฅผ) ์ฌ์ฉํ ์ ์์ต๋๋ค. ์ด์ ๋ํ ํด๊ฒฐ ๋ฐฉ๋ฒ์ด ์๋ ์ฌ๋์ด ์์ต๋๊น?"}],"action":{"name":"๋ฌธ์ ๋ณด๊ธฐ","url":" https://github.com/tensorflow /tensorflow/issues/20517#issuecomment -431701713"}}}
[
{
"@context": " http://schema.org ",
"@type": "์ด๋ฉ์ผ ๋ฉ์์ง",
"potentialAction": {
"@type": "ViewAction",
"๋์": " https://github.com/tensorflow/tensorflow/issues/20517#issuecomment -431701713",
"url": " https://github.com/tensorflow/tensorflow/issues/20517#issuecomment -431701713",
"์ด๋ฆ": "๋ฌธ์ ๋ณด๊ธฐ"
},
"์ค๋ช
": "GitHub์์ ์ด ๋ฌธ์ ๋ณด๊ธฐ",
"๊ฒ์์": {
"@type": "์กฐ์ง",
"์ด๋ฆ": "GitHub",
"url": " https://github.com "
}
},
{
"@type": "๋ฉ์์ง ์นด๋",
"@context": " http://schema.org/extensions ",
"hideOriginalBody": "๊ฑฐ์ง",
"๋ฐ์ ์": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "Re: [tensorflow/tensorflow] Python 3.7 ํธํ์ฑ(#20517)",
"์น์
": [
{
"ํ
์คํธ": "",
"activityTitle": " ์๋๋ฆฌ์๋
ธ ๋ฐ๋๋ ",
"ํ๋ ์ด๋ฏธ์ง": " https://assets-cdn.github.com/images/email/message_cards/avatar.png ",
"activitySubtitle": "@adrianodennanni",
"์ฌ์ค": [
]
}
],
"potentialAction": [
{
"์ด๋ฆ": "๋๊ธ ์ถ๊ฐ",
"@type": "์ก์
์นด๋",
"์
๋ ฅ": [
{
"isMultiLine": ์ฐธ,
"@type": "ํ
์คํธ ์
๋ ฅ",
"id": "IssueComment",
"isRequired": ๊ฑฐ์ง
}
],
"๋์": [
{
"์ด๋ฆ": "๋๊ธ",
"@์ ํ": "HttpPOST",
"๋์": " https://api.github.com ",
"๋ณธ๋ฌธ": "{n"commandName": "IssueComment",n"repositoryFullName": "tensorflow/tensorflow",n"issueId": 20517,n"IssueComment": "{{IssueComment.value}}"n}"
}
]
},
{
"์ด๋ฆ": "๋ฌธ์ ์ข
๋ฃ",
"@์ ํ": "HttpPOST",
"๋์": " https://api.github.com ",
"๋ณธ๋ฌธ": "{n"commandName": "IssueClose",n"repositoryFullName": "tensorflow/tensorflow",n"issueId": 20517n}"
},
{
"๋์": [
{
"os": "๊ธฐ๋ณธ๊ฐ",
"์ฐ๋ฆฌ": " https://github.com/tensorflow/tensorflow/issues/20517#issuecomment -431701713"
}
],
"@type": "OpenUri",
"์ด๋ฆ": "GitHub์์ ๋ณด๊ธฐ"
},
{
"์ด๋ฆ": "๊ตฌ๋
์ทจ์",
"@์ ํ": "HttpPOST",
"๋์": " https://api.github.com ",
"๋ณธ๋ฌธ": "{n"commandName": "MuteNotification",n"threadId": 352548653n}"
}
],
"themeColor": "26292E"
}
]
protobuf ํ ์ด 3.7์ ์ง์ ํ๋๋ก ์ ๊ทธ๋ ์ด๋๋์์ต๋๋ค .
์ด์ 3.7 ์ง์์ ์ํด tensorflow๋ฅผ ์ถ์ํ ๋์ ๋๋ค.
์ข์ ์์!
์์
๊ณต๊ฐ ๋ฐ setup.py์์ TF protobuf ์ข
์์ฑ์ ๋ฒํํ๊ธฐ ์ํด PR์ ๋ณด๋ด์๊ฒ ์ต๋๊น?
Tensorflow๋ ๋ถ๋ช ํ Python-3.7.1์์ ๋ง์ง๋ง์ผ๋ก ๋๋ฝ๋ ๋ถ๋ถ์ ๋๋ค. Python-3.7์ด Python-3.6๋ณด๋ค ๋ ํจ์จ์ ์ด๊ธฐ ๋๋ฌธ์ ์ผ๋ถ Cloud Electric ์ฒญ๊ตฌ์์ ์ํฅ์ ๋ฏธ์น ์ ์์ต๋๋ค.
https://github.com/fo40225/tensorflow-windows-wheel/tree/master/1.12.0/py37
Windows์์ Python 3.7์ ์ฌ์ฉํ์ฌ tensorflow 1.12.0์ ํ ์คํธํ๋ ค๋ ๋ชจ๋ ์ฌ์ฉ์๋ฅผ ์ํด.
protobuf v3.6.0 + ์ฒด๋ฆฌ ์ ํ https://github.com/protocolbuffers/protobuf/commit/0a59054c30e4f0ba10f10acfc1d7f3814c63e1a7
Linux์ฉ์ผ๋ก๋ ์ปดํ์ผํ ์ ์์์ต๋๋ค!
https://github.com/adrianodennanni/tensorflow-1.12.0-cp37-cp37m-linux_x86_64/
3.7 ๋ฆด๋ฆฌ์ค ์ดํ ๋ช ๊ฐ์์ด ์ง๋ฌ๊ณ TF์ ๋ํ ์ ๋ฐ์ดํธ๊ฐ ๊ณ์ ๋ฐฐํฌ๋๊ณ ์์ต๋๋ค. ๊ทธ๋ ๋ค๋ฉด ํธํ์ฑ์ ๋ํ ๋จ์ด/ETA๋ ๋ฌด์์ ๋๊น?
๊ทธ๋์ 2018๋ ์ด ๋๋๊ฐ๊ณ ์๊ณ ๊ณต์ Python 3.7 ์ง์ ๋ฆด๋ฆฌ์ค๋ ์ฌ์ ํ ๊ฑฐํ์ ๋๊น? :)
@adrianodennanni ๊ฐ ๊ฒ์ํ ๋ฒ์ ์ด ์ ์๊ฒ ์ ํฉํฉ๋๋ค. ๋ด ์ฝ๋์์ python3.7 ๊ธฐ๋ฅ์ ์ฌ์ฉํ๊ณ ์์ผ๋ฉฐ ํญ์ ํ๊ฒฝ์ ์ ํํ๋ ๊ฒ์ ์ ๋ง ํ๋ ์ผ์ ๋๋ค.
๊ทธ๋งํ ๊ฐ์น๊ฐ ์๊ธฐ ๋๋ฌธ์ tf๋ฅผ ์ปดํ์ผํ๊ณ ํ์ฌ ๋ง์คํฐ๋ฅผ ์ฌ์ฉํ์ฌ OSX์์ Python3.7 ํ ์ ๋น๋ํ ์ ์์์ต๋๋ค.
3.7์ฉ์ผ๋ก ๋น๋ํ ์ ์๋๋ก https://github.com/tensorflow/tensorflow/commit/b0d7d8a477d3041e2d0ebd0cb1d35e4a7fa09663 ์ ์ ์ถํ์ต๋๋ค. tf-nightly์๋ ์ด์ Ubuntu16.04+์์๋ง ์๋ํ๋ CPU(Ubuntu ์ ์ฉ) ๋ฒ์ ์ด ์์ต๋๋ค. Ubuntu์ฉ GPU ๋ฒ์ ์ด ๊ณง ์ ๊ณต๋ฉ๋๋ค.
@av8ramit
๋๋ถ์ python 3.7.1, cuda 10 ๋ฐ cudnn 7.4๋ก tf๋ฅผ ์ฑ๊ณต์ ์ผ๋ก ๊ตฌ์ถํ์ต๋๋ค.
์ด์ bazel 0.20 ์ง์๋ง ๋จ์์ต๋๋ค.
CUDA 10์ ์ฌ์ฉํ tf-nightly-gpu ๋น๋๋ ์ด์ pypi์ ์์ต๋๋ค. ๊ณต์ Python3.7 ๋ฆด๋ฆฌ์ค ๋น๋๊ฐ ์์ ๋๊น์ง ์ด ๋ฒ๊ทธ๋ฅผ ์ด์ด ๋๊ฒ ์ต๋๋ค.
@alanpurple ์์ธํ ์๋ ค์ฃผ์ค ์ ์๋์? Ubuntu 18 ๋ฐ python 3.7์์ ์๋ช ์ ๊ตฌํ๊ธฐ ์ํด tf 1.12๋ฅผ ๋น๋ํ ์ ์์ต๋๋ค.
https://drive.google.com/open?id=16vXTOJHXCLDKMTqtxMLDugUsRhiZPriQ
1.12 AVX ํ์ฅ์ด ์๋ Python 3.7.
https://drive.google.com/open?id=1ni7ExGVb6-c6gvb4J0hohpT4Jj4Z4xxO
1.12 SSE, XLA๊ฐ ์๋ Python 3.7 ํ .
์๋์ฐ์์:
1.12-cpu๋ฅผ ์ฑ๊ณต์ ์ผ๋ก ๋น๋ํ๊ณ py3.7๋ก ๊ฐ์ ธ์์ต๋๋ค.
ํ์ง๋ง GPU:
์ถ์ : bazel 0.21 ์ฌ์ฉ
INFO: From Linking tensorflow/contrib/tpu/python/ops/_tpu_ops.so:
Creating library bazel-out/x64_windows-opt/bin/tensorflow/contrib/tpu/python/ops/python/ops/lib_tpu_ops.so.ifso and object bazel-out/x64_windows-opt/bin/tensorflow/contrib/tpu/python/ops/python/ops/lib_tpu_ops.so.exp
INFO: From Linking tensorflow/contrib/tensor_forest/python/ops/_stats_ops.so:
Creating library bazel-out/x64_windows-opt/bin/tensorflow/contrib/tensor_forest/python/ops/python/ops/lib_stats_ops.so.ifso and object bazel-out/x64_windows-opt/bin/tensorflow/contrib/tensor_forest/python/ops/python/ops/lib_stats_ops.so.exp
ERROR: C:/tensorflow/tensorflow/python/keras/api/BUILD:28:1: Executing genrule //tensorflow/python/keras/api:keras_python_api_gen_compat_v1 failed (Exit 1): bash.exe failed: error executing command
cd C:/users/USER/_bazel_USER/xv6zejqw/execroot/org_tensorflow
SET CUDA_TOOLKIT_PATH=C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0
SET CUDNN_INSTALL_PATH=C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0
SET PATH=C:\msys64\usr\bin;C:\msys64\bin
SET PYTHON_BIN_PATH=C:/Program Files/Python37/python.exe
SET PYTHON_LIB_PATH=C:/Program Files/Python37/lib/site-packages
SET TF_CUDA_CLANG=0
SET TF_CUDA_COMPUTE_CAPABILITIES=3.5,7.0
SET TF_CUDA_VERSION=10.0
SET TF_CUDNN_VERSION=7
SET TF_NEED_CUDA=1
SET TF_NEED_OPENCL_SYCL=0
SET TF_NEED_ROCM=0
C:/msys64/usr/bin/bash.exe -c source external/bazel_tools/tools/genrule/genrule-setup.sh; bazel-out/x64_windows-opt/bin/tensorflow/python/keras/api/create_tensorflow.python_api_1_keras_python_api_gen_compat_v1.exe --apidir=bazel-out/x64_windows-opt/genfiles/tensorflow/python/keras/api_v1/ --apiname=keras --apiversion=1 --package=tensorflow.python,tensorflow.python.keras --output_package=tensorflow.python.keras.api._v1 bazel-out/x64_windows-opt/genfiles/tensorflow/python/keras/api/_v1/__init__.py bazel-out/x64_windows-opt/genfiles/tensorflow/python/keras/api/_v1/keras/__init__.py bazel-out/x64_windows-opt/genfiles/tensorflow/python/keras/api/_v1/keras/activations/__init__.py bazel-out/x64_windows-opt/genfiles/tensorflow/python/keras/api/_v1/keras/applications/__init__.py bazel-out/x64_windows-opt/genfiles/tensorflow/python/keras/api/_v1/keras/applications/densenet/__init__.py bazel-out/x64_windows-opt/genfiles/tensorflow/python/keras/api/_v1/keras/applications/inception_resnet_v2/__init__.py bazel-out/x64_windows-opt/genfiles/tensorflow/python/keras/api/_v1/keras/applications/inception_v3/__init__.py bazel-out/x64_windows-opt/genfiles/tensorflow/python/keras/api/_v1/keras/applications/mobilenet/__init__.py bazel-out/x64_windows-opt/genfiles/tensorflow/python/keras/api/_v1/keras/applications/mobilenet_v2/__init__.py bazel-out/x64_windows-opt/genfiles/tensorflow/python/keras/api/_v1/keras/applications/nasnet/__init__.py bazel-out/x64_windows-opt/genfiles/tensorflow/python/keras/api/_v1/keras/applications/resnet50/__init__.py bazel-out/x64_windows-opt/genfiles/tensorflow/python/keras/api/_v1/keras/applications/vgg16/__init__.py bazel-out/x64_windows-opt/genfiles/tensorflow/python/keras/api/_v1/keras/applications/vgg19/__init__.py bazel-out/x64_windows-opt/genfiles/tensorflow/python/keras/api/_v1/keras/applications/xception/__init__.py bazel-out/x64_windows-opt/genfiles/tensorflow/python/keras/api/_v1/keras/backend/__init__.py bazel-out/x64_windows-opt/genfiles/tensorflow/python/keras/api/_v1/keras/callbacks/__init__.py bazel-out/x64_windows-opt/genfiles/tensorflow/python/keras/api/_v1/keras/constraints/__init__.py bazel-out/x64_windows-opt/genfiles/tensorflow/python/keras/api/_v1/keras/datasets/__init__.py bazel-out/x64_windows-opt/genfiles/tensorflow/python/keras/api/_v1/keras/datasets/boston_housing/__init__.py bazel-out/x64_windows-opt/genfiles/tensorflow/python/keras/api/_v1/keras/datasets/cifar10/__init__.py bazel-out/x64_windows-opt/genfiles/tensorflow/python/keras/api/_v1/keras/datasets/cifar100/__init__.py bazel-out/x64_windows-opt/genfiles/tensorflow/python/keras/api/_v1/keras/datasets/fashion_mnist/__init__.py bazel-out/x64_windows-opt/genfiles/tensorflow/python/keras/api/_v1/keras/datasets/imdb/__init__.py bazel-out/x64_windows-opt/genfiles/tensorflow/python/keras/api/_v1/keras/datasets/mnist/__init__.py bazel-out/x64_windows-opt/genfiles/tensorflow/python/keras/api/_v1/keras/datasets/reuters/__init__.py bazel-out/x64_windows-opt/genfiles/tensorflow/python/keras/api/_v1/keras/estimator/__init__.py bazel-out/x64_windows-opt/genfiles/tensorflow/python/keras/api/_v1/keras/experimental/__init__.py bazel-out/x64_windows-opt/genfiles/tensorflow/python/keras/api/_v1/keras/initializers/__init__.py bazel-out/x64_windows-opt/genfiles/tensorflow/python/keras/api/_v1/keras/layers/__init__.py bazel-out/x64_windows-opt/genfiles/tensorflow/python/keras/api/_v1/keras/losses/__init__.py bazel-out/x64_windows-opt/genfiles/tensorflow/python/keras/api/_v1/keras/metrics/__init__.py bazel-out/x64_windows-opt/genfiles/tensorflow/python/keras/api/_v1/keras/models/__init__.py bazel-out/x64_windows-opt/genfiles/tensorflow/python/keras/api/_v1/keras/optimizers/__init__.py bazel-out/x64_windows-opt/genfiles/tensorflow/python/keras/api/_v1/keras/preprocessing/__init__.py bazel-out/x64_windows-opt/genfiles/tensorflow/python/keras/api/_v1/keras/preprocessing/image/__init__.py bazel-out/x64_windows-opt/genfiles/tensorflow/python/keras/api/_v1/keras/preprocessing/sequence/__init__.py bazel-out/x64_windows-opt/genfiles/tensorflow/python/keras/api/_v1/keras/preprocessing/text/__init__.py bazel-out/x64_windows-opt/genfiles/tensorflow/python/keras/api/_v1/keras/regularizers/__init__.py bazel-out/x64_windows-opt/genfiles/tensorflow/python/keras/api/_v1/keras/utils/__init__.py bazel-out/x64_windows-opt/genfiles/tensorflow/python/keras/api/_v1/keras/wrappers/__init__.py bazel-out/x64_windows-opt/genfiles/tensorflow/python/keras/api/_v1/keras/wrappers/scikit_learn/__init__.py
Execution platform: @bazel_tools//platforms:host_platform
Traceback (most recent call last):
File "\\?\C:\Users\USER\AppData\Local\Temp\Bazel.runfiles_ms8gr8rl\runfiles\org_tensorflow\tensorflow\python\pywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "\\?\C:\Users\USER\AppData\Local\Temp\Bazel.runfiles_ms8gr8rl\runfiles\org_tensorflow\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "\\?\C:\Users\USER\AppData\Local\Temp\Bazel.runfiles_ms8gr8rl\runfiles\org_tensorflow\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "C:\Program Files\Python37\lib\imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "C:\Program Files\Python37\lib\imp.py", line 343, in load_dynamic
return _load(spec)
ImportError: DLL load failed: The specified module could not be found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "\\?\C:\Users\USER\AppData\Local\Temp\Bazel.runfiles_ms8gr8rl\runfiles\org_tensorflow\tensorflow\python\tools\api\generator\create_python_api.py", line 27, in <module>
from tensorflow.python.tools.api.generator import doc_srcs
File "\\?\C:\Users\USER\AppData\Local\Temp\Bazel.runfiles_ms8gr8rl\runfiles\org_tensorflow\tensorflow\python\__init__.py", line 49, in <module>
from tensorflow.python import pywrap_tensorflow
File "\\?\C:\Users\USER\AppData\Local\Temp\Bazel.runfiles_ms8gr8rl\runfiles\org_tensorflow\tensorflow\python\pywrap_tensorflow.py", line 74, in <module>
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "\\?\C:\Users\USER\AppData\Local\Temp\Bazel.runfiles_ms8gr8rl\runfiles\org_tensorflow\tensorflow\python\pywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "\\?\C:\Users\USER\AppData\Local\Temp\Bazel.runfiles_ms8gr8rl\runfiles\org_tensorflow\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "\\?\C:\Users\USER\AppData\Local\Temp\Bazel.runfiles_ms8gr8rl\runfiles\org_tensorflow\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "C:\Program Files\Python37\lib\imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "C:\Program Files\Python37\lib\imp.py", line 343, in load_dynamic
return _load(spec)
ImportError: DLL load failed: The specified module could not be found.
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/errors
for some common reasons and solutions. Include the entire stack trace
above this error message when asking for help.
Target //tensorflow/tools/pip_package:build_pip_package failed to build
INFO: Elapsed time: 2602.108s, Critical Path: 565.09s
INFO: 4691 processes: 4691 local.
FAILED: Build did NOT complete successfully
์ ๊ฐ ๊ฒช์๋ ๋ฌธ์ ์ ํด๊ฒฐ ๋ฐฉ๋ฒ์ ์๋ ค๋๋ฆฌ๊ฒ ์ต๋๋ค. ๋๋ ๋งฅ OS๋ฅผ ์ฌ์ฉํ๊ณ ์์ต๋๋ค
Tensorflow๋ ํ์ด์ฌ 3.7๊ณผ ํธํ๋์ง ์์ต๋๋ค. ํ์ฌ๋ก์๋ ํ์ด์ฌ 3.6๊น์ง๋ง ์ฌ์ฉํ ์ ์์ต๋๋ค.
์ ๋ python 3.7์ ์ฌ์ฉํ๊ณ ์์๊ธฐ ๋๋ฌธ์ ๊ณต์ ์น์ฌ์ดํธ์์ python 3.6์ ๋ค์ด๋ก๋ํ์ต๋๋ค. ์ค์น ํ๋ก๊ทธ๋จ ํจํค์ง๋ฅผ ๋ค์ด๋ก๋ํ์ฌ ์ค์นํฉ๋๋ค. ๊ทธ๋ฆฌ๊ณ python 3.7์ด ์คํ๊ธฐ์ ๋ค์ด๊ฐ์๋ง์ python 3.6 ์ฑ์ ๋ํน์ ๊ณ ์ ํฉ๋๋ค. Python 3.6์ ํ์๋์ง ์์ต๋๋ค. ์์ฉ ํ๋ก๊ทธ๋จ ํญ์ ๋ณด์กฐ ํด๋๋ก ํ์๋์ง๋ง
์ด์ ํฐ๋ฏธ๋์ ์ด๊ณ ๋ค์์ ์
๋ ฅํ์ญ์์ค. nano .bash_profile
๊ทธ๋ฐ ๋ค์ ๋๋
ธ ํธ์ง๊ธฐ๊ฐ python 3.6์ ๊ฒฝ๋ก ์ฃผ์์ ํด์ ํ๊ณ 3.7์ ๊ฒฝ๋ก๋ฅผ ์ฃผ์ ์ฒ๋ฆฌํฉ๋๋ค. ๊ทธ๋ฐ ๋ค์ control+X๋ฅผ ๋๋ฅด๊ณ ์๋ฅผ ๋ณด๋ ค๋ฉด y๋ฅผ ๋๋ฅธ ๋ค์ Enter๋ฅผ ๋๋ฆ
๋๋ค.
์ดํ ํฐ๋ฏธ๋์ ๋ค์ ์์ํ๊ณ ๋ค์์ ์
๋ ฅํฉ๋๋ค. echo $PATH
์ฒซ ๋ฒ์งธ ๋งํฌ๊ฐ python 3.6์ธ์ง ํ์ธํ์ญ์์ค.
์ด์ python3์ ์ ๋ ฅํ๊ณ Enter ํค๋ฅผ ๋๋ฅด๊ณ ์ด๋ค ๋ฒ์ ์ด ์ด๋ ค ์๋์ง ํ์ธํ์ฌ python 3.6์ธ์ง ํ์ธํ์ญ์์ค.
์ด์ ๋ค์์ ์
๋ ฅํ์ญ์์ค. python3 -m pip install tensorflow
๊ฐ์ ๋ฐฉ๋ฒ์ผ๋ก ๋ค๋ฅธ ๋ชจ๋์ ๋ค์ด๋ก๋ํ ์ ์์ต๋๋ค.
์ด์ Python 3.6์ผ๋ก ์์ ํ๊ณ ์ถ์ ๋ ์ฝ๋๋ค. ๋ ์์ ํ์ด์ฌ. ๊ทธ๋ฆฌ๊ณ ์ผํ์ธ์. 3.7์์ ์์ ํ๋ ค๋ฉด python 3.7์ ์ด ์ ์์ผ๋ฉฐ ์ ์ฐฝํ๊ฒ ์๋ํฉ๋๋ค.
Python 3.7์ ๋ชจ๋์ ์ค์นํ๋ ค๋ฉด. ๊ทธ๋ฅ ์ ๋ ฅํ์ญ์์ค: python3.7 -m pip install package namr
CUDA 10์ด ํฌํจ๋ Windows์ฉ์ผ๋ก ๋งค์ฐ ์ต๊ทผ์ ์ปดํ์ผ๋ python3.7.2๊ฐ ์์ต๋๋ค. ์ด ๋ฆฌํฌ์งํ ๋ฆฌ์ ๋งํฌ๋ ๋ค์๊ณผ ๊ฐ์ต๋๋ค.
https://github.com/PlatinumLyfe/tf-windows-gpu/
์๋ ํ์ธ์, ์ด ํธํ์ฑ ๋ฌธ์ ์ ์ง์ ์ด ์์ต๋๊น?
bbhattmaclap:~ bbhatt$ pip3 install --upgrade tensorflow
ํ
์ํ๋ก ์์ง
tensorflow ์๊ตฌ ์ฌํญ์ ์ถฉ์กฑํ๋ ๋ฒ์ ์ ์ฐพ์ ์ ์์ต๋๋ค(๋ฒ์ ์์: ).
tensorflow์ ๋ํด ์ผ์นํ๋ ๋ถํฌ๋ฅผ ์ฐพ์ ์ ์์ต๋๋ค.
bbhattmaclap:~ bbhatt$
@BhuvaneshBhatt ์ต์ tensorflow ๊ณต์ ํจํค์ง์๋ Python3.7 ์ง์์ด ์์ต๋๋ค. tf-nightly-gpu ํจํค์ง๋ฅผ ์ฌ์ฉํด์ผ ํฉ๋๋ค. ์ฐ๋ฆฌ๋ 1.13์ ์ํด ๊ทธ๊ฒ์ ํ๋ ค๊ณ ๋ ธ๋ ฅํ๊ณ ์์ต๋๋ค.
@PlatinumLyfe ๋ฅผ ์ค์นํ ์ ์์ต๋๋ค.
๊ทํ์ ๋งํฌ์๋ xxx-cp36-cp36m-...
์์ต๋๋ค.
cp37
๋ฐ -gpu-
๋ฒ์ ์ด ์์ต๋๋ค.
๋ค๋ฅธ ์ฌ๋์ด ์ปดํ์ผ๋ ๋ฐ์ด๋๋ฆฌ๋ฅผ ์ ๊ณตํ๋๋ก ์์ฒญํ์ง ๋ง์ญ์์ค. ๊ณต์ Python 3.7 ์ง์์ด ์ธ์ ์์๋๋์ง ๊ด์ฌ ์๋ ๋ชจ๋ ์ฌ๋์๊ฒ ์คํธ ๋ฉ์ผ์ ๋ณด๋ด๋ ๊ฒ ์ธ์๋ ๊ณต๊ฐ์ ์ผ๋ก ๋๊ธ์ ๋ฌ ์ ์๋ ํ์ด์ง์์ ์คํํ ๋ฐ์ด๋๋ฆฌ๋ฅผ ๋ณด๋ด๋ฌ๋ผ๊ณ ์์ฒญํ๋ ๊ฒ์ ํนํ ์์ ํ์ง ์์ต๋๋ค.
Tensorflow 1.13-rc0์ด ์ถ์๋์์ง๋ง(https://github.com/tensorflow/tensorflow/releases/tag/v1.13.0-rc0), PyPI(https://pypi.org/project)์ Python 3.7 ๋น๋๊ฐ ์์ต๋๋ค. /tensorflow/1.13.0rc0/#files). Tensorflow 1.13์ด Python 3.7์ฉ์ผ๋ก ๊ณต์ ์ถ์๋๋์?
์ฐ๋ฆฌ๋ rc2 ๋๋ ๊ณต์์์ Windows ๋ฐ Ubuntu python ๋ฐ์ด๋๋ฆฌ๋ฅผ ์๋ํ๊ณ ๋ณด์ ํ๋ ๊ฒ์ ๋ชฉํ๋ก ํ๊ณ ์์ต๋๋ค.
Mac ์ง์์ ๋ํ ์์์ด ์์ต๋๊น? ๋๋ ์ง๊ธ Mac์ ๋ถ์ด ์์ต๋๋ค.
2019๋
1์ 24์ผ ์ค์ 6์ 55๋ถ -0600์ Amit Patankar [email protected] ์ด ์์ฑํ์ต๋๋ค.
์ฐ๋ฆฌ๋ rc2 ๋๋ ๊ณต์์์ Windows ๋ฐ Ubuntu python ๋ฐ์ด๋๋ฆฌ๋ฅผ ์๋ํ๊ณ ๋ณด์ ํ๋ ๊ฒ์ ๋ชฉํ๋ก ํ๊ณ ์์ต๋๋ค.
โ
๋น์ ์ด ์ธ๊ธ๋์๊ธฐ ๋๋ฌธ์ ์ด๊ฒ์ ๋ฐ๋ ๊ฒ์ ๋๋ค.
์ด ์ด๋ฉ์ผ์ ์ง์ ๋ต์ฅํ๊ฑฐ๋ GitHub์์ ๋ณด๊ฑฐ๋ ์ค๋ ๋๋ฅผ ์์๊ฑฐํ์ธ์.
์ด์ Mac์ฉ tf-nightly
CPU ํจํค์ง ๊ฐ ์์ต๋๋ค. ์๋ํ๊ณ rc2์๋ ์ฌ์ฉํ ๊ฒ์
๋๋ค.
์ด ์ค๋ ๋์ ์ค๋ ๋ค๋ฅธ ์ฌ๋์๊ฒ๋ ์์์ ์ธ๊ธํ tf-nightly ํจํค์ง๊ฐ ์ข์ต๋๋ค. CPU ๋ฒ์ ์ ๋ํด pip3 install tf-nightly
๋ก ์ค์นํ์ญ์์ค. ํ
์คํธ, MacOS Mojave 10.14.2์์ Python 3.7.2 ์์
์ค์น๊ฐ ์๋๋ ๊ฒ ๊ฐ์ต๋๋ค. ๊ฐ๋จํ ๋ฌธ์ ํด๊ฒฐ ๋จ๊ณ๊ฐ ์์ต๋๊น?
ํธ์ง : ๋ฌธ์ ๋ 32๋นํธ ๋ฒ์ ์ CPython์ด 64๋นํธ ์์คํ
์์ ์ฌ์ฉ๋์๋ค๋ ๊ฒ์
๋๋ค.
@MagixInTheAir ์ผ๋ฐ์ ์ธ Python 3.7 ์ง์์ ๊ดํ ๊ฒ์ด๊ธฐ ๋๋ฌธ์ ์ด ๋ฌธ์ ๋ฅผ ์ข ๋ฃํฉ๋๋ค. ์ฌ์ ํ ๋ฌธ์ ๊ฐ ์๋ ๊ฒฝ์ฐ ์ค์ ์ ๋ํ ์ถ๊ฐ ์ ๋ณด ๋ฐ ๋ก๊ทธ๊ฐ ํฌํจ๋ ์ ๋ฌธ์ ๋ฅผ ๋ค์ ์ฌ์ญ์์ค.
Tensorflow 1.13.1 ์ ์ด์ Python 3.7์ ์ง์ํฉ๋๋ค.
https://pypi.org/project/tensorflow/#files tensorflow==1.13.1์ฉ cp37 ๋ฆด๋ฆฌ์ค๊ฐ ์์ต๋๋ค. ํ๊ฒฝ์ ๋ฌธ์ ๊ฐ ์์ ์ ์์ต๋๋ค.
3.7.2๋ฅผ ์ฌ์ฉํ๊ณ ์์ผ๋ฉฐ ๋์ผํ ๋ฌธ์ ๊ฐ ์์ต๋๋ค. 1.31.1์ ๋ํด ๋ณด๊ณ ๋ ๋ฒ์ /ํ๊ทธ๋ ๋ค์๊ณผ ๊ฐ์ต๋๋ค.
{('cp37', 'cp37m', 'manylinux1_x86_64')}
๋ด 3.7.2๋ ๋ค์์ ์ง์ํฉ๋๋ค.
[('cp37', 'cp37m', 'linux_x86_64'), ('cp37', 'abi3', 'linux_x86_64'), ('cp37', 'none', 'linux_x86_64'), ('cp36', 'abi3', 'linux_x86_64'), ('cp35', 'abi3', 'linux_x86_64'), ('cp34', 'abi3', 'linux_x86_64'), ('cp33', 'abi3', 'linux_x86_64'), ('cp32', 'abi3', 'linux_x86_64'), ('py3', 'none', 'linux_x86_64'), ('cp37', 'none', 'any'), ('cp3', 'none', 'any'), ('py37', 'none', 'any'), ('py3', 'none', 'any'), ('py36', 'none', 'any'), ('py35', 'none', 'any'), ('py34', 'none', 'any'), ('py33', 'none', 'any'), ('py32', 'none', 'any'), ('py31', 'none', 'any'), ('py30', 'none', 'any')]
(pep425tags.get_supported()์์)
๊ทธ๋์ ๋ฌธ์ ๋ ํ ์ด๋ฆ์ manylinux1
linux
์ฌ์ผ ํ๋ค๋ ๊ฒ์
๋๋ค.
๊ฑฐ์ ๊ธฐ๋ณธ ๋งค๊ฐ ๋ณ์๊ฐ ์๋ ์์ค์์ ๊นจ๋ํ Python ๋น๋๊ฐ ์์ต๋๋ค.
@dellelce ์์ฃผ ์ค๋๋ ๋ฒ์ ์ pip๋ฅผ ์ฌ์ฉํ๊ณ ์์ต๋๊น?
import pip._internal; print(pip._internal.pep425tags.get_supported())
๋์๊ฒ ๋ง์ ๋ฆฌ๋ ์ค ํ๊ทธ๋ฅผ ์ ๊ณตํฉ๋๋ค.
๋ฐฉ๊ธ ํ์ธํ๋๋ฐ ๋ฌธ์ ๋ ์ํ์ธ ๋น๋์ ์์ต๋๋ค. ๋ด ๋น๋(dellelce/py-base) ๋ฐ ๊ณต์ docker ์ํ์ธ ์ด๋ฏธ์ง(python:alpine)์๋ ๋ฌธ์ ๊ฐ ์์ง๋ง ๋ฐ๋น์(python:latest)์ ๋น๋๋ ์ด๋ฏธ์ง๋ ์ ๋๋ก ์๋ํฉ๋๋ค.
์ฌ์ฉ๋ libc ๋ผ์ด๋ธ๋ฌ๋ฆฌ(musl ๋ glibc)์ ๊ด๋ จ์ด ์์ด์ผ ํฉ๋๊น? ๋ฐ๋ผ์ glibc๋ฅผ ์ฌ์ฉํ์ง ์๋ ๋ค๋ฅธ dist์๋ ๋ฌธ์ ๊ฐ ์์ ์ ์์ต๋๋ค...
๋ชจ๋ ์ต์ ํ๊ณผ 3.7.3 ๋๋ 3.7.2๊ฐ ์์ต๋๋ค...
๋๋ ๋ง์ ๋ฆฌ๋ ์ค๊ฐ ์ง์ํ๋ ๋ง์ ๋ฆฌ๋ ์ค์ ์ํ์ธ์ด ํฌํจ๋์ด ์์ง ์๋ค๊ณ ํ์ ํ๋ค.
@ppwwyyxx glibc๊ฐ ์๋ Linux ๋ฐฐํฌํ์ ์ง์ํ๊ธฐ ์ํ ๋ ๋ค๋ฅธ ํฐ์ผ์ด ์์ด์ผ ํฉ๋๊น?
PEP 571/PEP 513("manylinux")์ glibc๋ง ์ง์ํฉ๋๋ค.
@dellelce ์ํ์ธ ๋ฆฌ๋ ์ค๋ฅผ ์ง์ํ๋ ๊ฒ์ ํฅ๋ฏธ๋ก์ด ์์ด๋์ด์ผ ์ ์์ง๋ง ์ฌ์ํ์ง ์์ ์ ์์ต๋๋ค. ํ์ฌ ๋๋ถ๋ถ์ tensorflow ๋ฐ์ด๋๋ฆฌ๋ Ubuntu 14.04๋ก ์ปดํ์ผ๋ฉ๋๋ค. ์ผ๋ฐ์ ์ผ๋ก ์ฌ์ฉ๋๋ ๋ค๋ฅธ ํ๋ซํผ(์: CentOS)์์๋ ๋๋๋ก ๋ช ๊ฐ์ง ๋ฌธ์ ๊ฐ ๋ฐ์ํ์ต๋๋ค. ์ํ์ธ ์ง์์ด ๋จ๊ธฐ์ ์ผ๋ก๋ ์ฐ์ ์์๊ฐ ์๋ ๊ฒ ๊ฐ์์.
๋ฌธ์ ๋ฅผ ์ฌ๋ ๊ฒ์ ์ปค๋ฎค๋ํฐ์ ํ์์ ๊ด์ฌ์ ์ธก์ ํ๋ ๋ฐ ๋์์ด ๋ ์ ์๊ณ ํญ์ "๊ธฐ๋ถ๊ธ ํ์"์ผ๋ก ํ์๋ ์ ์์ผ๋ฏ๋ก ํญ์ ์ข์ ์ผ์ ๋๋ค.
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
@activatedgeek ์ค๋ก์ง๋ง, Tensorflow๊ฐ Python 3.7(๊ฑฐ์ ํ ๋ฌ ์ ์ ์ถ์๋จ)๊ณผ ํธํ๋๋๋ก ๋ง๋๋ ํ์๋ผ์ธ์ ๊ดํ OP ์ง๋ฌธ์ ๋ค์ด๊ทธ๋ ์ด๋๊ฐ ์ด๋ป๊ฒ ๋ตํ๋์ง ์์ง ๋ชปํฉ๋๋ค.