2017-10-19 20 views
1

嘗試加載TensorFlow在朱莉婭,我獲得誤差錯誤:LoadError:LoadError:語法:「()」不是一個有效的函數參數名稱

ERROR: LoadError: LoadError: syntax: "()" is not a valid function argument name

我無法得到解決。我使用Ubuntu和朱莉婭版本0.6.0 的問題:

julia> using TensorFlow 
INFO: Precompiling module TensorFlow. 
WARNING: Loading a new version of TensorFlow.jl for the first time. This initial load can take around 5 minutes as code is precompiled; subsequent usage will only take a few seconds. 
ERROR: LoadError: LoadError: syntax: "()" is not a valid function argument name 
Stacktrace: 
[1] include_from_node1(::String) at ./loading.jl:569 
[2] include(::String) at ./sysimg.jl:14 
[3] include_from_node1(::String) at ./loading.jl:569 
[4] include(::String) at ./sysimg.jl:14 
[5] anonymous at ./<missing>:2 
while loading /home/spg/.julia/v0.6/TensorFlow/src/ops.jl, in expression starting on line 119 
while loading /home/spg/.julia/v0.6/TensorFlow/src/TensorFlow.jl, in expression starting on line 184 
ERROR: Failed to precompile TensorFlow to /home/spg/.julia/lib/v0.6/TensorFlow.ji. 
Stacktrace: 
[1] compilecache(::String) at ./loading.jl:703 
[2] _require(::Symbol) at ./loading.jl:490 
[3] require(::Symbol) at ./loading.jl:398 
+0

我刪除tensorflow並重新安裝一次,並得到了同樣的錯誤: – spg

回答

0

在此之後link,運行Pkg.update()

+0

這句話雖然理論上回答這個問題,[最好](// meta.stackoverflow.com/q/8259)在這裏包含答案的基本部分,並提供參考鏈接。 – peacetype

相關問題