Install Python packages to the current directory using PIP in Ubuntu 18
PIP has a --target option to define the target location to install the modules. But for some reason, it was not working and kept giving me the following error. It seems PIP uses the user scheme by default to install and when I use --target, it throws an error.
distutils.errors.DistutilsOptionError: can't combine user with prefix, exec_prefix/home, or install_(plat)base
After searching for a while, I found a workaround and got it working. Here's how to do that. PIP also has another option as --system, it actually disables the user scheme option. That was it. But this option was not listed in pip man page.
Anyway, the final command should look like this:
pip install --system --target <target-dir> <package-name>
Ex:
pip install --system --target ./ pexpect
Hope this post will save someone's time :)
Informative blog. Thank you for sharing..
ReplyDeleteDocker Training in Hyderabad
Docker and Kubernetes Online Training
Docker Training
I have been married with my wife for 6 years and recently she broke up with me and it hurt me deeply when she told me to leave her alone and that she does not love me anymore when i was always faithful and honest to her. I tried all the ways to get her back buying her what she wants like i always did and she still left me heart broken and she even has a new boyfriend which destroyed me even more until a friend of mine from high school directed me to Dr Emu. This man changed my life completely. I followed everything he told me to do and my wife came back. I was stunned everything happened exactly like he told me. I had faith in everything he told me and everything was true. You can contact him via email: Emutemple@gmail.com He will help you in anything you need and quick to answer once you contact him through his whats-app number: +2347012841542
DeleteFor more destails about Dr Emu you can visit his Website: http://emutemple.website2.me/
This comment has been removed by the author.
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteAs claimed by Stanford Medical, It is in fact the ONLY reason this country's women get to live 10 years more and weigh 19 kilos lighter than us.
ReplyDelete(And realistically, it has absoloutely NOTHING to do with genetics or some secret-exercise and really, EVERYTHING to around "how" they eat.)
P.S, I said "HOW", and not "what"...
CLICK on this link to discover if this short quiz can help you release your true weight loss potential
Now it is known to me that articles is nothing but inspiring is everything to do something great. This is a great article for the people who want to come in freelancing.
ReplyDeleteOracle Training in Chennai | Certification | Online Training Course | Oracle Training in Bangalore | Certification | Online Training Course | Oracle Training in Hyderabad | Certification | Online Training Course | Oracle Training in Online | Oracle Certification Online Training Course | Hadoop Training in Chennai | Certification | Big Data Online Training Course