Error PermissionError with pip3

0 votes

This is the error when I try to get anything with pip3 I'm not sure what to do

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/pip/", line 122, in main
    status =, args)
  File "/usr/lib/python3/dist-packages/pip/commands/", line 283, in run
    requirement_set.install(install_options, global_options, root=options.root_path)
  File "/usr/lib/python3/dist-packages/pip/", line 1435, in install
    requirement.install(install_options, global_options, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/pip/", line 671, in install
    self.move_wheel_files(self.source_dir, root=root)
  File "/usr/lib/python3/dist-packages/pip/", line 901, in move_wheel_files
  File "/usr/lib/python3/dist-packages/pip/", line 206, in move_wheel_files
    clobber(source, lib_dir, True)
  File "/usr/lib/python3/dist-packages/pip/", line 193, in clobber
  File "/usr/lib/python3.4/", line 237, in makedirs
    mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/usr/local/lib/python3.4/dist-                        packages/Django-1.7.2.dist-info'

Storing debug log for failure in /home/omega/.pip/pip.log

Any help?

Jul 2, 2020 in Python by kartik
• 37,520 points

1 answer to this question.

0 votes

Hello @kartik,

Just install them using --user option which install the package only for the current user and not for all

pip install xxxxxx --user

Hope it helps!!

Thank You!

answered Jul 2, 2020 by Niroj
• 82,800 points

Related Questions In Python

0 votes
11 answers
+1 vote
10 answers

How to fix this? ValueError: invalid literal for int() with base 10 error in Python

Just for the record: >>> int('55063.000000') Traceback (most recent ...READ MORE

answered Aug 17, 2020 in Python by pakainfo
• 200 points
0 votes
1 answer

Inconsistent Whitespace error occurrence when using Python doctest with newline characters

Hi. It's pretty simple actually. All you ...READ MORE

answered Feb 12, 2019 in Python by Nymeria
• 3,520 points
0 votes
1 answer
0 votes
1 answer

How to temporarily disable a foreign key constraint in MySQL?

Hello @kartik, To turn off foreign key constraint ...READ MORE

answered Jun 23, 2020 in Python by Niroj
• 82,800 points
0 votes
1 answer

How do I use Django templates without the rest of Django?

Hello @kartik, Let's say you have this important ...READ MORE

answered Jun 23, 2020 in Python by Niroj
• 82,800 points
0 votes
1 answer

Error:Render form errors with the label rather than field name

Hello @kartik, There is a simple way to ...READ MORE

answered Apr 29, 2020 in Python by Niroj
• 82,800 points
0 votes
1 answer

Error:pip install mysql-python fails with EnvironmentError: mysql_config not found

Hello @kartik, It seems mysql_config is missing on ...READ MORE

answered May 5, 2020 in Python by Niroj
• 82,800 points