Python Forum
Access denied not able to do anything 8( What do i do? - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Access denied not able to do anything 8( What do i do? (/thread-30412.html)



Access denied not able to do anything 8( What do i do? - MurphysLaw - Oct-20-2020

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.


RE: Access denied not able to do anything 8( What do i do? - buran - Oct-20-2020

(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.


RE: Access denied not able to do anything 8( What do i do? - buran - Oct-20-2020

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.


RE: Access denied not able to do anything 8( What do i do? - snippsat - Oct-20-2020

(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)