Pip in Console getting Access Denied error
4 posts
• Page 1 of 1
Pip in Console getting Access Denied error
Hi,
I'm trying to move a Web app to IIS. I'm trying to install WebOb in my virtual environment using "pip install WebOb==dev". I'm getting an error:
Access is denied 'c:\\Windows\\System32\\config\\systemprofile\\pip
I've searched the web but the only reference I could find to a similar error was for django from 2012. It had a link to another page but that page was gone.
There's a line in the deploy_done.py file that looks like it's related to the pip envionment;
os.environ['APPDATA'] = os.path.join(PROJECT_DIR, PYTHON_MODULES_DIR)
It was commented out. I removed the comment it but it didn't seem to change anything. The APPDATA environment variable is set to C:\Windows\system32\config\systemprofile\AppData\Roaming. I can't figure out why pip is trying to reference systemprofile\pip.
It would probably help if I understood virtualenv.
Can anyone point me in the proper direction?
Update: I was able to install WebOb using easy_install. That doesn't explain the pip error but it gets me around the problem. The only environment variable that looks like it might be related is;
USERPROFILE=C:\Windows\System32\config\systemprofile
I don't know if that's useful or not.
I'm trying to move a Web app to IIS. I'm trying to install WebOb in my virtual environment using "pip install WebOb==dev". I'm getting an error:
Access is denied 'c:\\Windows\\System32\\config\\systemprofile\\pip
I've searched the web but the only reference I could find to a similar error was for django from 2012. It had a link to another page but that page was gone.
There's a line in the deploy_done.py file that looks like it's related to the pip envionment;
os.environ['APPDATA'] = os.path.join(PROJECT_DIR, PYTHON_MODULES_DIR)
It was commented out. I removed the comment it but it didn't seem to change anything. The APPDATA environment variable is set to C:\Windows\system32\config\systemprofile\AppData\Roaming. I can't figure out why pip is trying to reference systemprofile\pip.
It would probably help if I understood virtualenv.
Can anyone point me in the proper direction?
Update: I was able to install WebOb using easy_install. That doesn't explain the pip error but it gets me around the problem. The only environment variable that looks like it might be related is;
USERPROFILE=C:\Windows\System32\config\systemprofile
I don't know if that's useful or not.
Re: Pip in Console getting Access Denied error
Hello,
1. Please make sure that your web app directory has write permission for IIS worker process user, usually it is IIS_IUSRS.
2. Update zoo application environment variables:
3. Restart IIS process, reopen web console and try again:
pip install WebOb==dev
Thank you.
1. Please make sure that your web app directory has write permission for IIS worker process user, usually it is IIS_IUSRS.
2. Update zoo application environment variables:
- Code: Select all
...
<environmentVariables>
...
<add name="APPDATA" value="%APPL_PHYSICAL_PATH%" />
<add name="USERPROFILE" value="%APPL_PHYSICAL_PATH%" />
</environmentVariables>
3. Restart IIS process, reopen web console and try again:
pip install WebOb==dev
Thank you.
Re: Pip in Console getting Access Denied error
That fixed it. Thank you very much Ruslan. I appreciate your help.
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 19 guests