PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, October 19, 2022

[FIXED] How to install python module for a user while running cmd under a admin user (Windows 10)

 October 19, 2022     admin, pip, python, setup.py, windows-10     No comments   

Issue

I want install the below package using the command python setup.py install

https://github.com/nokia/robotframework-autoitlibrary with admin privilege.

As per my company policy , i cannot click and select run as administrator. Instead, a help desk person will run the command prompt using the command run as different user and uses an admin account.

But the issue is, whatever python module installation happens in the command prompt thats being run under the admin account is not visible to my user account. If I close the command prompt that has admin rights and opens a new command prompt then none of the installed packages are found.

Do anyone knows a way to install the package using python setup.py install from a cmd running under different user.

enter image description here


Solution

you can specify where the package will be getting installed using --home argument:

https://docs.python.org/3/install/

python setup.py install --home=<dir>

Just specify your python site package location under your user

"..python\python38-32\lib\site-packages"


Answered By - PDHide
Answer Checked By - Robin (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing