Guest User

Untitled

a guest
Dec 16th, 2017
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.03 KB | None | 0 0
  1. File "/usr/local/lib/python3.5/dist-packages/keras/utils/vis_utils.py", line 17, in _check_pydot
  2. raise ImportError('Failed to import pydot. You must install pydot'
  3. ImportError: Failed to import pydot. You must install pydot and graphviz for `pydotprint` to work.
  4.  
  5. deeplearning@deep-learning-virtual-machine:~$ pip install pydot
  6. Collecting pydot
  7. Collecting pyparsing>=2.1.4 (from pydot)
  8. Using cached pyparsing-2.2.0-py2.py3-none-any.whl
  9. Installing collected packages: pyparsing, pydot
  10. Found existing installation: pyparsing 2.0.3
  11. Uninstalling pyparsing-2.0.3:
  12. Exception:
  13. Traceback (most recent call last):
  14. File "/usr/lib/python3.5/shutil.py", line 538, in move
  15. os.rename(src, real_dst)
  16. PermissionError: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/__pycache__/pyparsing.cpython-35.pyc' -> '/tmp/pip-45miiuxw-uninstall/usr/lib/python3/dist-packages/__pycache__/pyparsing.cpython-35.pyc'
  17.  
  18. During handling of the above exception, another exception occurred:
  19.  
  20. Traceback (most recent call last):
  21. File "/usr/local/lib/python3.5/dist-packages/pip/basecommand.py", line 215, in main
  22. status = self.run(options, args)
  23. File "/usr/local/lib/python3.5/dist-packages/pip/commands/install.py", line 342, in run
  24. prefix=options.prefix_path,
  25. File "/usr/local/lib/python3.5/dist-packages/pip/req/req_set.py", line 778, in install
  26. requirement.uninstall(auto_confirm=True)
  27. File "/usr/local/lib/python3.5/dist-packages/pip/req/req_install.py", line 754, in uninstall
  28. paths_to_remove.remove(auto_confirm)
  29. File "/usr/local/lib/python3.5/dist-packages/pip/req/req_uninstall.py", line 115, in remove
  30. renames(path, new_path)
  31. File "/usr/local/lib/python3.5/dist-packages/pip/utils/__init__.py", line 267, in renames
  32. shutil.move(old, new)
  33. File "/usr/lib/python3.5/shutil.py", line 553, in move
  34. os.unlink(src)
  35. PermissionError: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/__pycache__/pyparsing.cpython-35.pyc'
  36.  
  37. sudo apt install python-pydot python-pydot-ng graphviz # python-pydot-ng isn't in the 14.04 repos
Add Comment
Please, Sign In to add comment