Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PERMISSION DENIDED ERRNO 13
#1
HI

I am trying to install flake8 on virtualenv but i was unable to do so due to following error

Exception:
Error:
Traceback (most recent call last): File "/home/sai/calculator/lib/python3.6/site-packages/pip/basecommand.py", line 215, in main status = self.run(options, args) File "/home/sai/calculator/lib/python3.6/site-packages/pip/commands/install.py", line 360, in run prefix=options.prefix_path, File "/home/sai/calculator/lib/python3.6/site-packages/pip/req/req_set.py", line 784, in install **kwargs File "/home/sai/calculator/lib/python3.6/site-packages/pip/req/req_install.py", line 851, in install self.move_wheel_files(self.source_dir, root=root, prefix=prefix) File "/home/sai/calculator/lib/python3.6/site-packages/pip/req/req_install.py", line 1064, in move_wheel_files isolated=self.isolated, File "/home/sai/calculator/lib/python3.6/site-packages/pip/wheel.py", line 345, in move_wheel_files clobber(source, lib_dir, True) File "/home/sai/calculator/lib/python3.6/site-packages/pip/wheel.py", line 323, in clobber shutil.copyfile(srcfile, destfile) File "/usr/lib/python3.6/shutil.py", line 121, in copyfile with open(dst, 'wb') as fdst: PermissionError: [Errno 13] Permission denied: '/home/sai/calculator/lib/python3.6/site-packages/__pycache__/mccabe.cpython-36.pyc'
I need to know what are Probable solutions for the problem.Please let me know
Reply
#2
sudo the command
if it is the previous command
sudo !!
Recommended Tutorials:
Reply
#3
Should not need to use sudo as virtual environment should be user based.
(Jan-17-2019, 05:56 PM)ambush Wrote: I am trying to install flake8 on virtualenv
How are you creating the virtual environment,is calculator your environment folder do you see see (calculator)?
Now also virtual environment is build into python trough venv.
Example:
tom@tom:~$ python -m venv my_env
tom@tom:~$ cd my_env
tom@tom:~/my_env$ source bin/activate

# Active see (my_env)
(my_env) tom@tom:~/my_env$ pip install flake8
Collecting flake8  
Installing collected packages: pyflakes, mccabe, pycodestyle, flake8
Successfully installed flake8-3.6.0 mccabe-0.6.1 pycodestyle-2.4.0 pyflakes-2.0.0

(my_env) tom@tom:~/my_env$ python 
Python 3.7.2 (default, Jan 16 2019, 23:14:35) 
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import flake8
>>> flake8.__version__
'3.6.0'
>>> exit()
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  The INSERT permission was denied on the object Steven5055 3 2,964 Jun-12-2024, 08:13 AM
Last Post: GregoryConley
  Delete file with read-only permission, but write permission to parent folder cubei 6 25,475 Jun-01-2024, 07:22 AM
Last Post: Eleanorreo
  KivyMD android app - problem with permission polak7gt 0 904 Jan-18-2024, 01:27 PM
Last Post: polak7gt
  Potential Permission error on Mac OSX Catalina OWOLLC 1 1,806 Nov-02-2023, 07:52 AM
Last Post: unjnsacih
  logging: change log file permission with RotatingFileHandler erg 0 2,497 Aug-09-2023, 01:24 PM
Last Post: erg
  Permission issue when using scapy jao 3 16,657 Feb-05-2022, 06:14 PM
Last Post: snippsat
  Error no 13: Permission denied in python shantanu97 1 8,722 Mar-31-2021, 02:15 PM
Last Post: snippsat
  How a Mac OS software can restart itself with admin permission in Python 3.7? Formationgrowthhacking 0 2,389 Sep-03-2020, 05:29 PM
Last Post: Formationgrowthhacking
  Error 13 permission tpolim008 2 4,645 Apr-09-2020, 06:22 PM
Last Post: tpolim008
  Fixing "PermissionError: [Errno 13] Permission denied" puredata 17 89,634 Mar-09-2020, 03:20 PM
Last Post: syssy

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020