Python Forum
Access denied not able to do anything 8( What do i do?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Access denied not able to do anything 8( What do i do?
#1
I don't have the patience to indent the code on every line so i put it to paste bin.

I have a legit issue https://pastebin.com/2QDHwz0z I was writing along with a tutorial video I grabbed from udemy with my last 99$< which it's not worth that price and now I'm broke. I wrote this code C:>python39>python.exe -m venv %USERPROFILE%\venvs\demoenv4 as trying to write my own Venv and now I get nothing but access denied anytime I type in python, Python, and that same Venv is now access denied.

Because of the of being mass downvoted now for really no reason other than I'm not able to ask any more question. and get this issue fixed.... < at stack overflow. Kinda sucks people can downvote you there I guess I'm this forums lurker now 8(

No clue what to do now Python access denied

C:\Users\Asus>3+3
'3+3' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Asus>python
Access is denied.

C:\Users\Asus>
I tried doing math to see if Python was active, I guess not.
Reply
#2
(Oct-20-2020, 07:32 AM)MurphysLaw Wrote: I don't have the patience to indent the code on every line so i put it to paste bin.

just use proper BBcode tags and it will preserve indentation as you copy/paste your code. Because what you have in pastebin in terminal/cmd comamnds and output, the best would be output tags. For python code - python tags, for traceback - error tags, etc.

See BBcode help for more info.


(Oct-20-2020, 07:32 AM)MurphysLaw Wrote: Because of the of being mass downvoted now for really no reason other than I'm not able to ask any more question. and get this issue fixed.... < at stack overflow. Kinda sucks people can downvote you there I guess I'm this forums lurker now

We tend think that community here is more welcoming than on SO, but it's two way street and will very much depends on your attitude too.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#3
Given also your other thread
1. It looks like you did not install python properly
2. You are confused about the difference between python code/python shell and terminal/cmd commands and which to run where (e.g. pip is command that you run on your terminal/cmd, not inside python interpreter).

It looks like you messed up your python installation (e.g. in a location without permission to write with your current credentials?!). I would suggest you start with clean install, following this tutorial step by step, verbatim.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#4
(Oct-20-2020, 07:32 AM)MurphysLaw Wrote: C:\Users\Asus>python
Access is denied.
Try again after running cmd as administrator.

Basic demo of creating venv.
Make you own folder first eg code or my_code,eaiser than mess with %USERPROFILE%.
# Test python
C:\code>python -V
Python 3.8.3

# Test pip
C:\code>pip -V
pip 20.2.2 from c:\python38\lib\site-packages\pip (python 3.8)

# Make virtual enviroment
C:\code>python -m venv my_env

# cd in
C:\code>cd my_env

# Activate
C:\code\my_env>C:\code\my_env\Scripts\activate

# Test pip again,see now that it poin to this folder and there is (my_env)
(my_env) C:\code\my_env>pip -V
pip 19.2.3 from c:\code\my_env\lib\site-packages\pip (python 3.8)
buran likes this post
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  The INSERT permission was denied on the object Steven5055 2 1,417 Feb-25-2023, 11:37 PM
Last Post: Steven5055
  access is denied error 5 for network drive mapping ? ahmedbarbary 2 1,729 Aug-17-2022, 10:09 PM
Last Post: ahmedbarbary
  Server Folder Error : WinError5 Access Denied fioranosnake 1 1,091 Jun-21-2022, 11:11 PM
Last Post: Larz60+
  Error no 13: Permission denied in python shantanu97 1 6,094 Mar-31-2021, 02:15 PM
Last Post: snippsat
  os.remove() Access is denied pythonnewbie138 3 30,452 Aug-28-2020, 10:02 PM
Last Post: bowlofred
  Fixing "PermissionError: [Errno 13] Permission denied" puredata 17 71,929 Mar-09-2020, 03:20 PM
Last Post: syssy
  Has anyone experience a winError[5] Access Denied in Windows 10? fstkmaro 2 12,815 Nov-11-2019, 02:38 PM
Last Post: fstkmaro
  PermissionError: [Errno 13] Permission denied: error leviathan54 2 46,566 Apr-20-2019, 12:51 AM
Last Post: leviathan54
  [python] PermissionError: [Errno 13] Permission denied akamouch 1 42,392 Feb-07-2019, 03:28 PM
Last Post: ichabod801
  getting [Errno 13] Permission denied: gobinath 1 7,025 Jan-29-2019, 05:36 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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