tensorflow: TypeError: run() got an unexpected keyword argument 'argv'
When I followed the TensorFlow Mechanics 101 tutorial python fully_connected_feed.py in examples/tutorials/mnist directory, I came across this problem:
Traceback (most recent call last):
File "fully_connected_feed.py", line 277, in <module>
tf.app.run(main=main, argv=[sys.argv[0]] + unparsed)
TypeError: run() got an unexpected keyword argument 'argv'
I am using tensorflow 0.11 version in Anaconda environment.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 30 (3 by maintainers)
Prior to 1.0, always make sure the tensorflow example code you run is from the same branch as the binary version you have installed.
So your options are:
Mixing and matching source code and binary install will likely cause you pain.
@loretoparisi
Select the branch match you tensorflow version and download it, run the file in the directory you download.
Thanks a lot, i git the r0.11 banch eventually, and it works !
Please Dude, read the topic:
git clone https://github.com/tensorflow/tensorflow -b r0.11
Thanks, i try “-b r0.11” with Git clone and it works
Thx a lot every one, it works!
I got it and it works,thanks!
@loretoparisi I recompiled my code using
r0.12but it now gives another error ‘run() got an unexpected keyword argument argv’Use “-b r0.11” with Git clone!