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
  KivyMD android app - problem with permission polak7gt 0 285 Jan-18-2024, 01:27 PM
Last Post: polak7gt
  Potential Permission error on Mac OSX Catalina OWOLLC 1 717 Nov-02-2023, 07:52 AM
Last Post: unjnsacih
  logging: change log file permission with RotatingFileHandler erg 0 1,031 Aug-09-2023, 01:24 PM
Last Post: erg
  The INSERT permission was denied on the object Steven5055 2 1,483 Feb-25-2023, 11:37 PM
Last Post: Steven5055
  Permission issue when using scapy jao 3 9,800 Feb-05-2022, 06:14 PM
Last Post: snippsat
  Error no 13: Permission denied in python shantanu97 1 6,167 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 1,781 Sep-03-2020, 05:29 PM
Last Post: Formationgrowthhacking
  Error 13 permission tpolim008 2 3,484 Apr-09-2020, 06:22 PM
Last Post: tpolim008
  Fixing "PermissionError: [Errno 13] Permission denied" puredata 17 72,547 Mar-09-2020, 03:20 PM
Last Post: syssy
  PermissionError: [Errno 13] Permission denied: error leviathan54 2 46,671 Apr-20-2019, 12:51 AM
Last Post: leviathan54

Forum Jump:

User Panel Messages

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