Guest User

Untitled

a guest
Jan 16th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. pip install PyMySQL
  2.  
  3. Exception:
  4. Traceback (most recent call last):
  5.  
  6. File "/usr/lib/python3.5/dist-packages/pip/products.py", line 122, in main
  7. status = self.run(options, args)
  8. File "/usr/lib/python3.5/dist-packages/pip/commands/install.py", line 295, in run
  9. requirement_set.install(install_options, global_options, root=options.root_path)
  10. File "/usr/lib/python3.5/dist-packages/pip/req.py", line 1436, in install
  11. requirement.install(install_options, global_options, *args, **kwargs)
  12. File "/usr/lib/python3.5/dist-packages/pip/req.py", line 672, in install
  13. self.move_wheel_files(self.source_dir, root=root)
  14. File "/usr/lib/python3.5/dist-packages/pip/req.py", line 902, in move_wheel_files
  15. pycompile=self.pycompile,
  16. File "/usr/lib/python3.5/dist-packages/pip/wheel.py", line 214, in move_wheel_files
  17. clobber(source, lib_dir, True)
  18. File "/usr/lib/python3.5/dist-packages/pip/wheel.py", line 204, in clobber
  19. os.makedirs(destdir)
  20. File "/usr/lib/python3.5/os.py", line 157, in makedirs
  21. mkdir(name, mode)
  22. OSError: [Errno 13] Permission denied: '/usr/local/lib/python3.5/dist-packages/PyMySQL-0.8.0.dist-info'
  23.  
  24. Storing debug log for failure in /home/pi/.pip/pip.log
  25.  
  26. $ pip install --user PyMySQL
  27.  
  28. $ pip install --user virtualenv
  29. $ virtualenv -p python3.5 myvirtualenvname && . myvirtualenvname/bin/activate
  30. $ pip install PyMySQL
  31.  
  32. $ sudo pip install PyMySQL
Add Comment
Please, Sign In to add comment