简体   繁体   中英

Python setup tools installation error using ubuntu

I am trying to run the command sudo python3 setup.py install in the research directory of TensorFlow models but I am getting the following error:

File "/tmp/easy_install-7odqdand/matplotlib-3.2.0rc3/setup.py", line 136
raise IOError(f"Failed to download jquery-ui.  Please download "
                                                               ^
SyntaxError: invalid syntax

What may be the problem?

You are likely using a version of python less than Python3.6. f-strings are used and supported since then apparently. https://github.com/matplotlib/matplotlib/issues/17075#issuecomment-611190672

If you don't want to upgrade python just upgrade matplotlib to version 2.1.0 which is the minimum requirement for tensorflow object detection API. I just did that and been able to install Tensorflow Object detection API on Ubuntu 16, which comes with python 3.5.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM