Install a Python package into a different directory using pip? - Stack Overflow (https://cdn.sstatic.net/Sites/stackoverflow/Img/favicon.ico?v=ec617d715196) (https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon.png?v=c78bd457575a) (https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon.png?v=c78bd457575a) (Stack Overflow) (/opensearch.xml) (https://stackoverflow.com/questions/2915471/install-a-python-package-into-a-different-directory-using-pip) (https://cdn.sstatic.net/Shared/stacks.css?v=619122b796ae) (https://cdn.sstatic.net/Sites/stackoverflow/primary.css?v=02dcb5186b90) (Feed for question 'Install a Python package into a different directory using pip?') (/feeds/question/2915471) (https://cdn.sstatic.net/Shared/Channels/channels.css?v=5981bb1a5bd7) (https://accounts.google.com/gsi/style) (site logo) Join Stack Overflow By clicking “Sign up”, you agree to our (/legal/terms-of-service/public) terms of service and acknowledge you have read our (/legal/privacy-policy) privacy policy . (e2a58aec89e0105273f31cf44dffd45d868462dc661de60a7d67e669a7370ceb) (1) (undefined) (2.0) Sign up with Google Sign up with GitHub OR (e2a58aec89e0105273f31cf44dffd45d868462dc661de60a7d67e669a7370ceb) (1) (undefined) Email Password (8+ characters (at least 1 letter & 1 number)) Sign up Already have an account? (/users/login) Log in (e2a58aec89e0105273f31cf44dffd45d868462dc661de60a7d67e669a7370ceb) () Skip to main content (https://stackoverflow.com) Stack Overflow (https://stackoverflow.co/) About Products (https://stackoverflow.co/teams/ai/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav-bar&utm_content=overflowai) OverflowAI (https://stackoverflow.co/teams/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=stack-overflow-for-teams) Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers (https://stackoverflow.co/advertising/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=stack-overflow-advertising) Advertising & Talent Reach devs & technologists worldwide about your product, service or employer brand (https://stackoverflow.co/teams/ai/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=overflow-ai) OverflowAI GenAI features for Teams (https://stackoverflow.co/api-solutions/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=overflow-api) OverflowAPI Train & fine-tune LLMs (https://stackoverflow.co/labs/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=labs) Labs The future of collective knowledge sharing (https://stackoverflow.co/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=about-the-company) About the company (https://stackoverflow.blog/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=blog) Visit the blog (Search…) () Loading… (https://stackoverflow.com) current community (https://stackoverflow.com) (Stack Overflow) Stack Overflow (https://stackoverflow.com/help) help (https://chat.stackoverflow.com/?tab=site&host=stackoverflow.com) chat (https://meta.stackoverflow.com) (Meta Stack Overflow) Meta Stack Overflow your communities (https://stackoverflow.com/users/signup?ssrc=site_switcher&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f2915471%2finstall-a-python-package-into-a-different-directory-using-pip) Sign up or (https://stackoverflow.com/users/login?ssrc=site_switcher&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f2915471%2finstall-a-python-package-into-a-different-directory-using-pip) log in to customize your list. (https://stackexchange.com/sites) more stack exchange communities (https://stackoverflow.blog) company blog (Click to show search) (https://stackoverflow.com/users/login?ssrc=head&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f2915471%2finstall-a-python-package-into-a-different-directory-using-pip) Log in (https://stackoverflow.com/users/signup?ssrc=head&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f2915471%2finstall-a-python-package-into-a-different-directory-using-pip) Sign up (/) Home (/questions) Questions (/tags) Tags (/users) Users (https://stackoverflow.com/jobs/companies?so_medium=stackoverflow&so_source=SiteNav) Companies Labs (/jobs?source=so-left-nav) Jobs (/beta/discussions) Discussions Collectives Communities for your favorite technologies. (/collectives-all) Explore all Collectives Teams Now available on Stack Overflow for Teams! AI features where you work: search, IDE, and chat. (https://stackoverflow.co/teams/ai/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=overflowai-learn-more) Learn more (https://stackoverflow.co/teams/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=explore-teams) Explore Teams Teams Ask questions, find answers and collaborate at work with Stack Overflow for Teams. (https://stackoverflow.co/teams/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=explore-teams-compact) Explore Teams Collectives™ on Stack Overflow Find centralized, trusted content and collaborate around the technologies you use most. (/collectives) Learn more about Collectives Teams Q&A for work Connect and share knowledge within a single location that is structured and easy to search. (https://stackoverflow.co/teams/) Learn more about Teams Get early access and see previews of new features. (https://stackoverflow.co/labs/) Learn more about Labs (https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon.png?v=c78bd457575a) (/questions/2915471/install-a-python-package-into-a-different-directory-using-pip) Install a Python package into a different directory using pip? (/questions/ask) Ask Question (2010-05-26 17:55:48Z) Asked 14 years, 3 months ago Modified (?lastactivity) (2024-02-23 13:43:29Z) 6 months ago (Viewed 1,070,209 times) Viewed 1.1m times This question shows research effort; it is useful and clear (69:3:31e,16:6f0fb088509c8c22,10:1725340975,16:2cf1fcbbdd03940f,7:2915471,7182f96375c3d613c1f1a7b282df9cce4bab2b7871d30ff1eab2498a7f0d4e63) 614 (This question does not show any research effort; it is unclear or not useful) (69:3:31e,16:e5bd8f9597860d51,10:1725340975,16:da999af6311c455e,7:2915471,13d243a73a9c8c5edc2f983d14426d235d0faf18deead254a56d4ab72d4f59aa) Save this question. (/posts/2915471/timeline) Show activity on this post. I know the obvious answer is to use virtualenv and virtualenvwrapper, but for various reasons I can't/don't want to do that. So how do I modify the command pip install package_name to make pip install the package somewhere other than the default site-packages ? (/questions/tagged/python) (show questions tagged 'python') python (/questions/tagged/pip) (show questions tagged 'pip') pip (/q/2915471) (Short permalink to this question) Share Share a link to this question Copy link (https://creativecommons.org/licenses/by-sa/3.0/) (The current license for this post: CC BY-SA 3.0) CC BY-SA 3.0 Follow (69:3:31e,16:d7e11ce7d2f82252,10:1725340975,16:fa3eb0624303da9b,7:2915471,2245c36300309e3eb228c25ff6c061863c5efaac757a07a640db2b5fa3fc9439) Follow this question to receive notifications (/posts/2915471/revisions) (show all edits to this post) edited (2015-12-08 20:51:51Z) Dec 8, 2015 at 20:51 (/users/63550/peter-mortensen) (Peter Mortensen's user avatar) (/users/63550/peter-mortensen) Peter Mortensen (reputation score 31,472) 31.5k (22 gold badges) 22 22 gold badges (109 silver badges) 109 109 silver badges (132 bronze badges) 132 132 bronze badges asked (2010-05-26 17:55:48Z) May 26, 2010 at 17:55 (/users/211075/monika-sulik) (Monika Sulik's user avatar) (/users/211075/monika-sulik) Monika Sulik Monika Sulik (reputation score 17,068) 17.1k (15 gold badges) 15 15 gold badges (52 silver badges) 52 52 silver badges (52 bronze badges) 52 52 bronze badges 8 (number of 'useful comment' votes received) 3 Related: (http://stackoverflow.com/q/10866199/95735) How to make editable install of Python package from vcs into specific directory using pip? – (/users/95735/piotr-dobrogost) (42,181 reputation) Piotr Dobrogost Commented (2012-06-02 22:06:29Z, License: CC BY-SA 3.0) Jun 2, 2012 at 22:06 (number of 'useful comment' votes received) 2 Now question number two: when you're already installing into a custom directory, how to make pip NOT try to remove and older version from a non-custom directory. For example - a system-wide one, where you have no write permissions. So far I only pulled this off with easy_install ... – (/users/1338797/tomasz-gandor) (8,673 reputation) Tomasz Gandor Commented (2014-12-11 15:41:02Z, License: CC BY-SA 3.0) Dec 11, 2014 at 15:41 (number of 'useful comment' votes received) 2 @TomaszGandor I think using --ignore-installed option should prevent pip from trying to uninstall already installed packages. – (/users/95735/piotr-dobrogost) (42,181 reputation) Piotr Dobrogost Commented (2016-08-18 08:30:56Z, License: CC BY-SA 3.0) Aug 18, 2016 at 8:30 (number of 'useful comment' votes received) 2 sorry I am new with pip, but is your question the same as asking "as how to have pi install to a different version of python"? I have python 3.4 and 3.5 but i want my pip installations to go to python 3.5. – (/users/1601580/charlie-parker) (5,918 reputation) Charlie Parker Commented (2017-02-08 17:30:23Z, License: CC BY-SA 3.0) Feb 8, 2017 at 17:30 (this comment was edited 1 time) @Charlie Nope, different question. I don't know enough about your installation/intentions, but generally I would probably use virtualenvwrapper and create a virtual environment with something like mkvirtualenv --python=/usr/bin/python3.5 env_name – (/users/211075/monika-sulik) (17,068 reputation) Monika Sulik Commented (2017-02-08 22:06:30Z, License: CC BY-SA 3.0) Feb 8, 2017 at 22:06 (this comment was edited 1 time) (Use comments to ask for more information or suggest improvements. Avoid answering questions in comments.) | (Expand to show all comments on this post) Show 3 more comments 20 Answers 20 Sorted by: (/questions/2915471/install-a-python-package-into-a-different-directory-using-pip?answertab=scoredesc#tab-top) Reset to default (scoredesc) Highest score (default) (trending) Trending (recent votes count more) (modifieddesc) Date modified (newest first) (createdasc) Date created (oldest first) This answer is useful (70:3:31e,16:52e7d1d2d25559a5,10:1725340975,16:7db7cd0b61894884,8:19404371,920356cf7be9c00cec434f2d63f360a02965c8797e3f97300317b198db494f10) 840 (This answer is not useful) (70:3:31e,16:4e017a22dd0644a8,10:1725340975,16:c6230e27af07fe25,8:19404371,70e03ab84a71868eef9160e6616c29f1bec4bbf0adf1354dc4e0fa77662ff11e) Save this answer. (Loading when this answer was accepted…) (/posts/19404371/timeline) Show activity on this post. The (https://pip.pypa.io/en/latest/cli/pip_install/#cmdoption-t) --target switch is the thing you're looking for: pip install --target d:\somewhere\other\than\the\default package_name But you still need to add d:\somewhere\other\than\the\default to PYTHONPATH to actually use them from that location. -t, --target
Install packages into . By default this will not replace existing files/folders in .Use --upgrade to replace existing packages in with new versions. Upgrade pip if target switch is not available: On Linux or OS X: pip install -U pip On Windows (this works around (https://github.com/pypa/pip/issues/1299) an issue ): python -m pip install -U pip (/a/19404371) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 Follow (70:3:31e,16:2f8203c452790783,10:1725340975,16:58bd706ee51fdb22,8:19404371,4543ea4190d1edbee80b2a8c26855b0c4aac2cd3de23ac2edd8c9feb6ecd561a) Follow this answer to receive notifications (/posts/19404371/revisions) (show all edits to this post) edited (2024-02-23 13:43:29Z) Feb 23 at 13:43 (/users/3015186/niko-fohr) (Niko Fohr's user avatar) (/users/3015186/niko-fohr) Niko Fohr (reputation score 32,360) 32.4k (11 gold badges) 11 11 gold badges (105 silver badges) 105 105 silver badges (111 bronze badges) 111 111 bronze badges answered (2013-10-16 13:10:54Z) Oct 16, 2013 at 13:10 (/users/260480/janusz-skonieczny) (Janusz Skonieczny's user avatar) (/users/260480/janusz-skonieczny) Janusz Skonieczny Janusz Skonieczny (reputation score 18,652) 18.7k (11 gold badges) 11 11 gold badges (57 silver badges) 57 57 silver badges (64 bronze badges) 64 64 bronze badges 28 (number of 'useful comment' votes received) 8 @DanH run pip install --upgrade pip ! – (/users/177712/r3m0t) (1,870 reputation) r3m0t Commented (2014-03-19 16:51:33Z, License: CC BY-SA 3.0) Mar 19, 2014 at 16:51 (number of 'useful comment' votes received) 22 This is the true answer, it's just the option was added quite a bit after the accepted answer. – (/users/146821/bukzor) (38,206 reputation) bukzor Commented (2014-04-06 17:57:18Z, License: CC BY-SA 3.0) Apr 6, 2014 at 17:57 (number of 'useful comment' votes received) 8 What's the difference between --install-option="--prefix=$PREFIX_PATH" mentioned by @Ian Bicking and the --target=$PATH option? – (/users/279335/hibou57) (7,090 reputation) Hibou57 Commented (2014-08-15 15:49:44Z, License: CC BY-SA 3.0) Aug 15, 2014 at 15:49 (number of 'useful comment' votes received) 8 target is a pip option, and everything you put in install-option will be passed on to the setup.py install command . Basically target is custom site-packages location. – (/users/260480/janusz-skonieczny) (18,652 reputation) Janusz Skonieczny Commented (2014-08-18 09:19:53Z, License: CC BY-SA 3.0) Aug 18, 2014 at 9:19 (number of 'useful comment' votes received) 17 Using --target may result in a partial installation, since it will not install any including scripts/data files in the specified prefix. It seems like passing --prefix with --install-option is the only proper way to have full control over the used installations prefix. – (/users/1467322/kenneth-hoste) (2,955 reputation) Kenneth Hoste Commented (2015-01-26 11:11:12Z, License: CC BY-SA 3.0) Jan 26, 2015 at 11:11 (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) | (Expand to show all comments on this post) Show 23 more comments This answer is useful (69:3:31e,16:d500542139b76fdf,10:1725340975,16:32f094cccc254de5,7:2916320,51efdd4cbc7705b2c2b25a289a01efef068df219d9b0a5450474796c92ef37a2) 371 (This answer is not useful) (69:3:31e,16:8773d3bd4e454439,10:1725340975,16:06df75b07492dd50,7:2916320,347ed400487eff54cbb71c771fd30023a3797cbcc5e7e871d6077c3af7ffea93) Save this answer. (Loading when this answer was accepted…) (/posts/2916320/timeline) Show activity on this post. Use: pip install --install-option="--prefix=$PREFIX_PATH" package_name You might also want to use --ignore-installed to force all dependencies to be reinstalled using this new prefix. You can use --install-option to multiple times to add any of the options you can use with python setup.py install (--prefix is probably what you want, but there are a bunch more options you could use). (/a/2916320) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/2.5/) (The current license for this post: CC BY-SA 2.5) CC BY-SA 2.5 Follow (69:3:31e,16:638a2f148afd9e5a,10:1725340975,16:4e78cf6af5a099f4,7:2916320,593a06c2d663eb1351aae96e04860eca60f3ca6a26f92aeabe5e0bfb106d4ab7) Follow this answer to receive notifications answered (2010-05-26 19:59:36Z) May 26, 2010 at 19:59 (/users/303070/ian-bicking) (Ian Bicking's user avatar) (/users/303070/ian-bicking) Ian Bicking Ian Bicking (reputation score) 9,882 (6 gold badges) 6 6 gold badges (35 silver badges) 35 35 silver badges (33 bronze badges) 33 33 bronze badges 17 (number of 'useful comment' votes received) 6 if you do this, is there a way to get pip freeze to see the alternate directory? – (/users/465838/russ) (11,165 reputation) Russ Commented (2011-07-22 06:54:24Z, License: CC BY-SA 3.0) Jul 22, 2011 at 6:54 (number of 'useful comment' votes received) 7 pip freeze looks on the path, so if you something like PYTHONPATH=$PREFIX_PATH/lib/python2.6/site-packages pip freeze it should see them. – (/users/303070/ian-bicking) (9,882 reputation) Ian Bicking Commented (2011-08-03 20:53:29Z, License: CC BY-SA 3.0) Aug 3, 2011 at 20:53 (number of 'useful comment' votes received) 5 Using --prefix=$PREFIX_PATH doesn't seem to allow to have full control of installation directory as there's system specific suffix being appended to it (\Lib\site-packages on Windows for example). Is there a way to specify specific directory? – (/users/95735/piotr-dobrogost) (42,181 reputation) Piotr Dobrogost Commented (2012-06-02 22:04:36Z, License: CC BY-SA 3.0) Jun 2, 2012 at 22:04 (number of 'useful comment' votes received) 2 @Piotr: yes there is see my answer. Using '--prefix' is a bit coarse, but works nice if you want your pure python to go under /usr/lib/pythonX.Y/site-packages instead of /usr/local/lib/pythonX.Y/site-packages. – (/users/1307905/anthon) (75,050 reputation) Anthon Commented (2012-06-13 14:39:11Z, License: CC BY-SA 3.0) Jun 13, 2012 at 14:39 (number of 'useful comment' votes received) 125 Not a bad answer 4 years ago, but the --target option exists now. – (/users/2803281/tritium21) (2,894 reputation) Tritium21 Commented (2014-09-28 18:20:50Z, License: CC BY-SA 3.0) Sep 28, 2014 at 18:20 (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) | (Expand to show all comments on this post) Show 12 more comments This answer is useful (70:3:31e,16:03bef780c5b1603a,10:1725340975,16:e6f67dc50839aeb2,8:29103053,e4da73cd81111f98cf9612258295709530ae7c78d817fe1f88f1835aea96edcc) 113 (This answer is not useful) (70:3:31e,16:ec80fbd10ffe4e55,10:1725340975,16:9b74910f6e993a4d,8:29103053,0946f05515ec4211ac6166b04fd19bc4015a6b9f738e40c386335067ad3aa9d1) Save this answer. (Loading when this answer was accepted…) (/posts/29103053/timeline) Show activity on this post. Instead of the --target or --install-options options, I have found that setting the (https://docs.python.org/3/using/cmdline.html#envvar-PYTHONUSERBASE) PYTHONUSERBASE environment variable works well (from discussion on a (https://github.com/pypa/pip/issues/446) bug regarding this very thing): PYTHONUSERBASE=/path/to/install/to pip install --user (Or set the PYTHONUSERBASE directory in your environment before running the command, using export PYTHONUSERBASE=/path/to/install/to ) This uses the very useful --user option but tells it to make the bin , lib , share and other directories you'd expect under a custom prefix rather than $HOME/.local . Then you can add this to your PATH , (https://docs.python.org/3/using/cmdline.html#envvar-PYTHONPATH) PYTHONPATH and other variables as you would a normal installation directory. Note that you may also need to specify the --upgrade and --ignore-installed options if any packages upon which this depends require newer versions to be installed in the PYTHONUSERBASE directory, to override the system-provided versions. A full example PYTHONUSERBASE=/opt/mysterypackage-1.0 /python-deps pip install --user --upgrade numpy scipy ..to install the scipy and numpy package most recent versions into a directory which you can then include in your PYTHONPATH like so (using bash and for python 2.6 on CentOS 6 for this example): export PYTHONPATH=/opt/mysterypackage-1.0 /python-deps/lib64/python2.6 /site-packages:$PYTHONPATH
export PATH=/opt/mysterypackage-1.0 /python-deps/bin :$PATH Using (https://pypi.org/project/virtualenv/) virtualenv is still a better and neater solution! (/a/29103053) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 Follow (70:3:31e,16:d6c68838edc6129a,10:1725340975,16:0d8ffecebdd56966,8:29103053,6a6d1dcb23ec65ca9bf0794a76122143a6df98329dec312fc91e228a9d266fd0) Follow this answer to receive notifications (/posts/29103053/revisions) (show all edits to this post) edited (2022-02-17 14:19:24Z) Feb 17, 2022 at 14:19 (/users/12892/cristian-ciupitu) (Cristian Ciupitu's user avatar) (/users/12892/cristian-ciupitu) Cristian Ciupitu (reputation score 20,760) 20.8k (7 gold badges) 7 7 gold badges (53 silver badges) 53 53 silver badges (79 bronze badges) 79 79 bronze badges answered (2015-03-17 15:24:41Z) Mar 17, 2015 at 15:24 (/users/86080/david-gardner) (David Gardner's user avatar) (/users/86080/david-gardner) David Gardner David Gardner (reputation score) 7,547 (4 gold badges) 4 4 gold badges (37 silver badges) 37 37 silver badges (37 bronze badges) 37 37 bronze badges 13 (number of 'useful comment' votes received) 4 This worked with Travis CI running on Docker containers whereas the --install-option="--prefix=$PREFIX_PATH" solution did not. – (/users/310659/32bits) (713 reputation) 32bits Commented (2015-08-09 21:34:55Z, License: CC BY-SA 3.0) Aug 9, 2015 at 21:34 (number of 'useful comment' votes received) 1 Noobie question, how important is the /bin folder pip creates, --user creates it as does --PREFIX whereas --target does not. – (/users/3176550/jonathan) (11,257 reputation) Jonathan Commented (2016-09-27 14:13:34Z, License: CC BY-SA 3.0) Sep 27, 2016 at 14:13 (number of 'useful comment' votes received) 1 If package is installed in global Python, --ignore-installed is needed. – (/users/1833960/george-sovetov) (5,150 reputation) George Sovetov Commented (2017-01-17 11:35:41Z, License: CC BY-SA 3.0) Jan 17, 2017 at 11:35 (number of 'useful comment' votes received) 1 This option is also compatible with --editable and local installs. – (/users/5483098/mdh) (5,533 reputation) mdh Commented (2017-02-27 13:57:37Z, License: CC BY-SA 3.0) Feb 27, 2017 at 13:57 (number of 'useful comment' votes received) 2 This option comes handy for installing packages as superuser for another non-root user without having to su around (which may be problematic in containers, for example). – (/users/5483098/mdh) (5,533 reputation) mdh Commented (2017-02-27 14:05:31Z, License: CC BY-SA 3.0) Feb 27, 2017 at 14:05 (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) | (Expand to show all comments on this post) Show 8 more comments This answer is useful (70:3:31e,16:0251a0f82420a5f2,10:1725340975,16:90120b4ed568c287,8:32316983,ca395d6a8ba31e0256f3a338c6d2485ae910b8fb473fd46054f70e78ab48c515) 53 (This answer is not useful) (70:3:31e,16:d45367ca5037f6e8,10:1725340975,16:9eae6009b3ebf3fb,8:32316983,f286736db15e8c40426973a7b3ef8aa0ebd08ed35e3aade723115ea39fcddb87) Save this answer. (Loading when this answer was accepted…) (/posts/32316983/timeline) Show activity on this post. To pip install a library exactly where I wanted it, I navigated to the location I wanted the directory with the terminal then used pip install mylibraryName -t . the logic of which I took from this page: (https://cloud.google.com/appengine/docs/python/googlecloudstorageclient/download) https://cloud.google.com/appengine/docs/python/googlecloudstorageclient/download (/a/32316983) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/3.0/) (The current license for this post: CC BY-SA 3.0) CC BY-SA 3.0 Follow (70:3:31e,16:77bb07f92f78173e,10:1725340975,16:4c4ed74ddee9b5f1,8:32316983,cff0058d5fe455bb66a009bd2a8d83fbb3454b14f004d8ddb60060f8c5e7ea77) Follow this answer to receive notifications answered (2015-08-31 17:46:36Z) Aug 31, 2015 at 17:46 user2738183user2738183 2 (number of 'useful comment' votes received) 14 -t is shorthand for --target – (/users/3176550/jonathan) (11,257 reputation) Jonathan Commented (2016-09-27 14:11:07Z, License: CC BY-SA 3.0) Sep 27, 2016 at 14:11 This was the only solution which worked for me. (Windows 7) – (/users/4636579/coliban) (631 reputation) Coliban Commented (2019-07-30 11:59:21Z, License: CC BY-SA 4.0) Jul 30, 2019 at 11:59 (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:80d54ff95d7085be,10:1725340975,16:b2a1ebd016c3c431,8:11017307,e784ae0179a67f4b6a36ef900047ca40cf9e020650e2242def413ce42fb232f5) 46 (This answer is not useful) (70:3:31e,16:e95538a0ea55c4b5,10:1725340975,16:112112e1be3c9841,8:11017307,0e1f1ba52d4cecedc7b864cedd04d16246fb4460ed29eeec54d3743d0980ff1e) Save this answer. (Loading when this answer was accepted…) (/posts/11017307/timeline) Show activity on this post. Installing a Python package often only includes some pure Python files. If the package includes data, scripts and or executables, these are installed in different directories from the pure Python files. Assuming your package has no data/scripts/executables, and that you want your Python files to go into /python/packages/package_name (and not some subdirectory a few levels below /python/packages as when using --prefix ), you can use the one time command: pip install --install-option="--install-purelib=/python/packages" package_name If you want all (or most) of your packages to go there, you can edit your ~/.pip/pip.conf to include: [install]
install-option=--install-purelib=/python/packages That way you can't forget about having to specify it again and again. Any excecutables/data/scripts included in the package will still go to their default places unless you specify addition install options (--prefix /--install-data /--install-scripts , etc., for details look at the (http://docs.python.org/install/index.html#custom-installation) custom installation options). (/a/11017307) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/3.0/) (The current license for this post: CC BY-SA 3.0) CC BY-SA 3.0 Follow (70:3:31e,16:8536f29b2ed66337,10:1725340975,16:922eb37f4926fecd,8:11017307,46b5c4af2ee95307b7694df12a6a0564a582f33f827f1005e85fd1a946bacbc8) Follow this answer to receive notifications (/posts/11017307/revisions) (show all edits to this post) edited (2015-12-08 20:53:06Z) Dec 8, 2015 at 20:53 (/users/63550/peter-mortensen) (Peter Mortensen's user avatar) (/users/63550/peter-mortensen) Peter Mortensen (reputation score 31,472) 31.5k (22 gold badges) 22 22 gold badges (109 silver badges) 109 109 silver badges (132 bronze badges) 132 132 bronze badges answered (2012-06-13 14:39:44Z) Jun 13, 2012 at 14:39 (/users/1307905/anthon) (Anthon's user avatar) (/users/1307905/anthon) Anthon Anthon (reputation score 75,050) 75.1k (34 gold badges) 34 34 gold badges (200 silver badges) 200 200 silver badges (271 bronze badges) 271 271 bronze badges 2 (number of 'useful comment' votes received) 2 A big plus for the config file. I personally specify the --prefix there, because I have a "local" directory on a shared server in the home directory, and it was used as the prefix by easy_install before I moved to pip . System $PATH and $PYTHONPATH were configured before. Instead of install-option=--install-purelib=/blah there is this newer target=/blah option/switch. It is also nice, but sometimes you need just a replacement for --prefix , that you'd use with setup.py or easy_install . – (/users/1338797/tomasz-gandor) (8,673 reputation) Tomasz Gandor Commented (2013-12-13 10:10:41Z, License: CC BY-SA 3.0) Dec 13, 2013 at 10:10 ERROR: Location-changing options found in --install-option: ['--install-purelib'] from command line. This is unsupported, use pip-level options like --user, --prefix, --root, and --target instead. , with pip 22.0.4 – (/users/1047788/user7610) (27,963 reputation) user7610 Commented (2022-04-29 11:25:10Z, License: CC BY-SA 4.0) Apr 29, 2022 at 11:25 (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:247fd0d175f158ec,10:1725340975,16:d1af196e3fcf027c,8:53870246,e11227f2b9eaa9422317851cf37f8b4957a59020ce881650ded9775e6a8710d6) 37 (This answer is not useful) (70:3:31e,16:c7d5e1091f83ee89,10:1725340975,16:20fd4b05022f59ee,8:53870246,bd8ebb54eb697fa4aa48321fa35a7fb8de52dd545c7b841ea582076eaad496d9) Save this answer. (Loading when this answer was accepted…) (/posts/53870246/timeline) Show activity on this post. Tested these options with python3.5 and pip 9.0.3: pip install --target /myfolder [packages] Installs ALL packages including dependencies under /myfolder. Does not take into account that dependent packages are already installed elsewhere in Python. You will find packages from /myfolder/[package_name]. In case you have multiple Python versions, this doesn't take that into account (no Python version in package folder name). pip install --prefix /myfolder [packages] Checks if dependencies are already installed. Will install packages into /myfolder/lib/python3.5/site-packages/[packages] pip install --root /myfolder [packages] Checks dependencies like --prefix but install location will be /myfolder/usr/local/lib/python3.5/site-packages/[package_name]. pip install --user [packages] Will install packages into $HOME:
/home/[USER]/.local/lib/python3.5/site-packages
Python searches automatically from this .local path so you don't need to put it to your PYTHONPATH. => In most of the cases --user is the best option to use.
In case home folder can't be used because of some reason then --prefix. (/a/53870246) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 Follow (70:3:31e,16:4a21c4f6e6e6d366,10:1725340975,16:c112ef66f8b26ee2,8:53870246,27161e9caa364f12a7f557d8cd539d07c7f6af8f3c98e2a7eb32391fc4a9f7ff) Follow this answer to receive notifications (/posts/53870246/revisions) (show all edits to this post) edited (2022-12-22 13:13:29Z) Dec 22, 2022 at 13:13 (/users/651246/seppo-enarvi) (Seppo Enarvi's user avatar) (/users/651246/seppo-enarvi) Seppo Enarvi (reputation score) 3,525 (3 gold badges) 3 3 gold badges (35 silver badges) 35 35 silver badges (26 bronze badges) 26 26 bronze badges answered (2018-12-20 14:06:36Z) Dec 20, 2018 at 14:06 (/users/9515028/mikko) (Mikko's user avatar) (/users/9515028/mikko) Mikko Mikko (reputation score) 1,009 (9 silver badges) 9 9 silver badges (5 bronze badges) 5 5 bronze badges 4 (number of 'useful comment' votes received) 1 Running under python 2.7.16, --target (or --prefix) installs Jinja2-2.10.1.dist-info/ for example, whereas install --install-option="--prefix installs Jinja2-2.10.1-py2.7.egg-info/, which is what I actually wanted – (/users/661740/greg-dougherty) (3,461 reputation) Greg Dougherty Commented (2019-08-07 17:52:06Z, License: CC BY-SA 4.0) Aug 7, 2019 at 17:52 Doesn't always work via (https://github.com/pypa/pip/issues/8438#issuecomment-674420308) environment variables . – (/users/52499/x-yuri) (18,275 reputation) x-yuri Commented (2020-08-15 17:38:50Z, License: CC BY-SA 4.0) Aug 15, 2020 at 17:38 You can also set the directory where --user installs the packages in $PYTHONUSERBASE . Is there any difference betseen using --user and setting $PYTHONUSERBASE vs using --prefix and setting $PYTHONPATH ? – (/users/651246/seppo-enarvi) (3,525 reputation) Seppo Enarvi Commented (2022-12-22 13:23:00Z, License: CC BY-SA 4.0) Dec 22, 2022 at 13:23 What I found my python3 pipe install --prefix /mydir, then the package will be installed unser /mydir/local/lib/python3.10/dist-packages. I am not sure where you can control the default behavior which is not desirable. I want the local to be missing and the dist-package to be site-package – (/users/2407363/kemin-zhou) (6,731 reputation) Kemin Zhou Commented (2024-01-19 21:31:44Z, License: CC BY-SA 4.0) Jan 19 at 21:31 (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:3934d65c39b6393f,10:1725340975,16:0c569355c38524af,8:61731693,d379e37bc43a06ce5f2fe38a1fa827c1e104ae8813942bf0c7643ba603c9a659) 25 (This answer is not useful) (70:3:31e,16:a2968b26de738e51,10:1725340975,16:d92e5baddf2fce7d,8:61731693,da8e05aaba0cf716ea1b428eeb8592a46aa8d3a48d80d5aee1a7072c3370970d) Save this answer. (Loading when this answer was accepted…) (/posts/61731693/timeline) Show activity on this post. pip install "package_name" -t "target_dir" source - (https://pip.pypa.io/en/stable/reference/pip_install/) https://pip.pypa.io/en/stable/reference/pip_install/ -t switch = target (/a/61731693) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 Follow (70:3:31e,16:00b13b7f2a409d6d,10:1725340975,16:91a5ad8dbf6f1c48,8:61731693,02b602f6590579a0029785bd58f003a12c5a52bd83927e4b52897b686120334c) Follow this answer to receive notifications (/posts/61731693/revisions) (show all edits to this post) edited (2023-07-26 03:35:33Z) Jul 26, 2023 at 3:35 answered (2020-05-11 14:09:08Z) May 11, 2020 at 14:09 (/users/8312897/samir-kape) (Samir Kape's user avatar) (/users/8312897/samir-kape) Samir Kape Samir Kape (reputation score) 1,977 (2 gold badges) 2 2 gold badges (18 silver badges) 18 18 silver badges (21 bronze badges) 21 21 bronze badges 1 (number of 'useful comment' votes received) 1 @merv it's different because it's not the same. isn't it? – (/users/8959609/alex-m-m) (501 reputation) Alex M.M. Commented (2020-11-06 14:44:46Z, License: CC BY-SA 4.0) Nov 6, 2020 at 14:44 (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:ed9575b0e9feb578,10:1725340975,16:a5351fbc26de57ba,8:48875996,f23574fdf3654c250ea9e4b5c0a663ece2d0955caa343e7c06c9efb4abc692a0) 21 (This answer is not useful) (70:3:31e,16:0996cd50145bbb50,10:1725340975,16:1d578aec7107bb76,8:48875996,b931cb888e1b2c5f0c07567a768ca9b5ac8d8cea28e132ae03d1b36280654eb7) Save this answer. (Loading when this answer was accepted…) (/posts/48875996/timeline) Show activity on this post. Nobody seems to have mentioned the -t option but that the easiest: pip install -t (/a/48875996) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/3.0/) (The current license for this post: CC BY-SA 3.0) CC BY-SA 3.0 Follow (70:3:31e,16:a912075f9d921b09,10:1725340975,16:7ff6231b6f5ac1e4,8:48875996,b43d3174a3e5586781064caecc1097e64a62e15754d9d1822ddb041c95d4c77a) Follow this answer to receive notifications answered (2018-02-20 00:02:28Z) Feb 20, 2018 at 0:02 (/users/922704/erwan) (Erwan's user avatar) (/users/922704/erwan) Erwan Erwan (reputation score) 3,731 (31 silver badges) 31 31 silver badges (25 bronze badges) 25 25 bronze badges 1 (number of 'useful comment' votes received) 12 The -t option is the short version of the --target option which has been described in another answer ((https://stackoverflow.com/a/19404371/594053) stackoverflow.com/a/19404371/594053 ) :) – (/users/594053/mattisg) (3,946 reputation) MattiSG Commented (2018-04-03 05:40:48Z, License: CC BY-SA 3.0) Apr 3, 2018 at 5:40 (this comment was edited 1 time) (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:979c025243f519d6,10:1725340975,16:6495116a8168af25,8:54823014,4e05e474aead93413ed72411b7fa5afb9c48d794f6bd12a47b7e8f4aee41e5d5) 16 (This answer is not useful) (70:3:31e,16:148769bd68bddafe,10:1725340975,16:84222c9c20c02886,8:54823014,b7e7fec64a2fbf49fef55dfed8a865e572fa160ddecd8eaf02bbb7546e55b4f0) Save this answer. (Loading when this answer was accepted…) (/posts/54823014/timeline) Show activity on this post. pip install packageName -t pathOfDirectory or pip install packageName --target pathOfDirectorty (/a/54823014) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 Follow (70:3:31e,16:9e3bb49fc101e9d8,10:1725340975,16:6fb63da6db0dabd4,8:54823014,2f26cf4140e2d783e3cafcfe5ef238cb874346cf4cd4d8b8c3be95aa4c1600eb) Follow this answer to receive notifications (/posts/54823014/revisions) (show all edits to this post) edited (2019-02-22 09:06:38Z) Feb 22, 2019 at 9:06 (/users/6296561/zoe-save-the-data-dump) (Zoe - Save the data dump's user avatar) (/users/6296561/zoe-save-the-data-dump) Zoe - Save the data dump (Moderator) ♦ (reputation score 28,041) 28k (22 gold badges) 22 22 gold badges (127 silver badges) 127 127 silver badges (157 bronze badges) 157 157 bronze badges answered (2019-02-22 08:35:45Z) Feb 22, 2019 at 8:35 (/users/8241863/kundan-kaushik) (kundan kaushik's user avatar) (/users/8241863/kundan-kaushik) kundan kaushik kundan kaushik (reputation score) 217 (2 silver badges) 2 2 silver badges (11 bronze badges) 11 11 bronze badges 1 (number of 'useful comment' votes received) 1 This is a duplicate of (https://stackoverflow.com/a/19404371/12892) another answer . – (/users/12892/cristian-ciupitu) (20,760 reputation) Cristian Ciupitu Commented (2022-02-18 22:38:08Z, License: CC BY-SA 4.0) Feb 18, 2022 at 22:38 (this comment was edited 1 time) (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:34fdfddf92a2471d,10:1725340975,16:b8a78e947d8904a0,8:27627022,468d286098005e7d05a90c2c44a6301f70a8c5f1d94c8c7f98f59e9fec452114) 15 (This answer is not useful) (70:3:31e,16:0105c08b96013356,10:1725340975,16:015075b347705856,8:27627022,9b67d53f9971c76f2319128831c15332715452572e1d16108386bebb3d93d4f0) Save this answer. (Loading when this answer was accepted…) (/posts/27627022/timeline) Show activity on this post. Just add one point to @Ian Bicking's answer: Using the --user option to specify the installed directory also work if one wants to install some Python package into one's home directory (without sudo user right) on remote server. E.g., pip install --user python-memcached The command will install the package into one of the directories that listed in your PYTHONPATH. (/a/27627022) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/3.0/) (The current license for this post: CC BY-SA 3.0) CC BY-SA 3.0 Follow (70:3:31e,16:991f9179ab4730cf,10:1725340975,16:2d20bbe6e29d5ad3,8:27627022,ae25ad41b57a7856e53594a9ed75521b000171fd6e85708a26ae96665d08fa50) Follow this answer to receive notifications (/posts/27627022/revisions) (show all edits to this post) edited (2014-12-23 20:08:15Z) Dec 23, 2014 at 20:08 (/users/369450/ohmu) (ohmu's user avatar) (/users/369450/ohmu) ohmu (reputation score 19,523) 19.5k (42 gold badges) 42 42 gold badges (111 silver badges) 111 111 silver badges (147 bronze badges) 147 147 bronze badges answered (2014-12-23 19:46:39Z) Dec 23, 2014 at 19:46 (/users/4266357/good-fit) (Good Fit's user avatar) (/users/4266357/good-fit) Good Fit Good Fit (reputation score) 1,298 (17 silver badges) 17 17 silver badges (10 bronze badges) 10 10 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:09b4bf834cc04080,10:1725340975,16:e3ffe77dc6e2a6a1,8:44150705,4d55c1dc9608276c74a94643279c8a89d925d32fcc604d86be9ec95aa6c45b29) 14 (This answer is not useful) (70:3:31e,16:fe4c80c83ff64482,10:1725340975,16:193b979030df0b83,8:44150705,80d6aedd67249b4e4c6c564e012ab70d2f34046b45023196736d9929a615cf15) Save this answer. (Loading when this answer was accepted…) (/posts/44150705/timeline) Show activity on this post. Newer versions of pip (8 or later) can directly use the (https://pip.pypa.io/en/stable/cli/pip_install/#cmdoption-prefix) --prefix option : pip install --prefix=$PREFIX_PATH package_name where $PREFIX_PATH is the installation prefix where lib, bin and other top-level folders are placed. (/a/44150705) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 Follow (70:3:31e,16:929652fe94098875,10:1725340975,16:fa1a0afbac2b41e1,8:44150705,7fdcf4d6dd2d3d6ad226b8290fbbc393047e50d83c9a412af67e3256db19b3ae) Follow this answer to receive notifications (/posts/44150705/revisions) (show all edits to this post) edited (2024-02-11 20:06:33Z) Feb 11 at 20:06 answered (2017-05-24 06:37:23Z) May 24, 2017 at 6:37 (/users/327026/mike-t) (Mike T's user avatar) (/users/327026/mike-t) Mike T Mike T (reputation score 43,031) 43k (18 gold badges) 18 18 gold badges (162 silver badges) 162 162 silver badges (210 bronze badges) 210 210 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:b648746797524423,10:1725340975,16:81fa96c4b798b495,8:30532099,91b0ba502444808b5db4bc9f9229fda45e181f9bb05202d77d468ce5b07e0db7) 4 (This answer is not useful) (70:3:31e,16:71e9bbe2d91215c3,10:1725340975,16:3e276828535b4ba4,8:30532099,f46492e1d02148dae01b4a10ef4bd4080c1b76c8a79dbf5ba4633da8b16b3dce) Save this answer. (Loading when this answer was accepted…) (/posts/30532099/timeline) Show activity on this post. To add to the already good advice, as I had an issue installing (http://en.wikipedia.org/wiki/IPython) IPython when I didn't have write permissions to /usr/local . pip uses distutils to do its install and (https://github.com/pypa/pip/issues/426) this thread discusses how that can cause a problem as it relies on the sys.prefix setting. My issue happened when the IPython install tried to write to '/usr/local/share/man/man1' with Permission denied . As the install failed it didn't seem to write the IPython files in the bin directory. Using "--user" worked and the files were written to ~/.local. Adding ~/.local/bin to the $PATH meant I could use "ipython" from there. However I'm trying to install this for a number of users and had been given write permission to the /usr/local/lib/python2.7 directory. I created a "bin" directory under there and set directives for distutils: vim ~/.pydistutils.cfg
[install]
install-data=/usr/local/lib/python2.7 install-scripts=/usr/local/lib/python2.7 /bin then (-I is used to force the install despite previous failures/.local install): pip install -I ipython Then I added /usr/local/lib/python2.7/bin to $PATH . I thought I'd include this in case anyone else has similar issues on a machine they don't have sudo access to. (/a/30532099) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/3.0/) (The current license for this post: CC BY-SA 3.0) CC BY-SA 3.0 Follow (70:3:31e,16:61a49b6b0055f126,10:1725340975,16:17ab5d989bef30b4,8:30532099,6f855bca3d3f3f1b14dc51e32b78d4f16379915f525ca0150d2a5ac2254cf855) Follow this answer to receive notifications (/posts/30532099/revisions) (show all edits to this post) edited (2015-12-08 20:57:42Z) Dec 8, 2015 at 20:57 (/users/63550/peter-mortensen) (Peter Mortensen's user avatar) (/users/63550/peter-mortensen) Peter Mortensen (reputation score 31,472) 31.5k (22 gold badges) 22 22 gold badges (109 silver badges) 109 109 silver badges (132 bronze badges) 132 132 bronze badges answered (2015-05-29 14:24:14Z) May 29, 2015 at 14:24 (/users/123064/stuart-brock) (Stuart Brock's user avatar) (/users/123064/stuart-brock) Stuart Brock Stuart Brock (reputation score) 3,844 (1 gold badge) 1 1 gold badge (23 silver badges) 23 23 silver badges (21 bronze badges) 21 21 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:12a107af84579bdc,10:1725340975,16:75b4e921a3c3284b,8:52368803,b2d6589b1f0bb11f3ca85e4380733762e6a11df97010ec08f8fff463954748dd) 2 (This answer is not useful) (70:3:31e,16:78d283d6ab395070,10:1725340975,16:3a4417c4a632908f,8:52368803,5f524c10093d6cf80e13016dd858a60d11f5377ae83df3005c762271e082f2ca) Save this answer. (Loading when this answer was accepted…) (/posts/52368803/timeline) Show activity on this post. If you are using brew with python, unfortunately, pip/pip3 ships with very limited options. You do not have --install-option, --target, --user options as mentioned above. (https://docs.brew.sh/Homebrew-and-Python) Note on pip install --user The normal pip install --user is disabled for brewed Python. This is because of a bug in distutils, because Homebrew writes a distutils.cfg which sets the package prefix.
A possible workaround (which puts executable scripts in ~/Library/Python/./bin) is: python -m pip install --user --install-option="--prefix=" You might find this line very cumbersome. I suggest use pyenv for management.
If you are using brew upgrade python python3 Ironically you are actually downgrade pip functionality. (I post this answer, simply because pip in my mac osx does not have --target option, and I have spent hours fixing it) (/a/52368803) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 Follow (70:3:31e,16:1f01745789f3cbbb,10:1725340975,16:3eba525c4920f375,8:52368803,7fd92114e44c7fc846d4b59260f4a95831f0d46c7d971dab4914a473905ca02a) Follow this answer to receive notifications (/posts/52368803/revisions) (show all edits to this post) edited (2018-09-17 13:28:35Z) Sep 17, 2018 at 13:28 answered (2018-09-17 13:22:47Z) Sep 17, 2018 at 13:22 (/users/6710360/anonymous) (anonymous's user avatar) (/users/6710360/anonymous) anonymous anonymous (reputation score) 1,472 (2 gold badges) 2 2 gold badges (19 silver badges) 19 19 silver badges (22 bronze badges) 22 22 bronze badges 1 This answer with an explicit prefix, and ignore-installed due to previous efforts, worked for me: python -m pip install --user --install-option="--prefix='/myFunkyApp/lib'" --ignore-installed – (/users/5324657/jeremy-jones) (5,391 reputation) Jeremy Jones Commented (2019-08-28 16:00:02Z, License: CC BY-SA 4.0) Aug 28, 2019 at 16:00 (this comment was edited 2 times) (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:da7e910fc8a4f73e,10:1725340975,16:ddad4e13e344c913,8:54250211,889d9920832c891ad1ef4762b69659ba6d0b4c0eb973aeb665f614fa30c60e03) 1 (This answer is not useful) (70:3:31e,16:fc22b1c76e1e324b,10:1725340975,16:4b057cb70b7dc957,8:54250211,4e552430ccbde88534dcaf0d1302f336db56fb3588b028c2252bd34eeb3efd88) Save this answer. (Loading when this answer was accepted…) (/posts/54250211/timeline) Show activity on this post. pip install /path/to/package/ is now possible. The difference with this and using the -e or --editable flag is that -e links to where the package is saved (i.e. your downloads folder), rather than installing it into your python path. This means if you delete/move the package to another folder, you won't be able to use it. (/a/54250211) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 Follow (70:3:31e,16:52907595451d13d4,10:1725340975,16:917abf6d61ba6d17,8:54250211,92f1b21eb18fab7039c2fd530061083e286750556f7544f0d51b6df79ecd5152) Follow this answer to receive notifications answered (2019-01-18 08:37:47Z) Jan 18, 2019 at 8:37 (/users/8751871/a-h) (A H's user avatar) (/users/8751871/a-h) A H A H (reputation score) 2,464 (2 gold badges) 2 2 gold badges (23 silver badges) 23 23 silver badges (41 bronze badges) 41 41 bronze badges 2 (number of 'useful comment' votes received) 1 this doesn't answer the question – (/users/3384609/clintm) (4,790 reputation) Clintm Commented (2019-12-04 04:19:59Z, License: CC BY-SA 4.0) Dec 4, 2019 at 4:19 This lets you install a "local" package at the path you put it in. – (/users/8751871/a-h) (2,464 reputation) A H Commented (2021-06-08 11:02:54Z, License: CC BY-SA 4.0) Jun 8, 2021 at 11:02 (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:c388378cdd35a801,10:1725340975,16:e358b1d2be9ad304,8:25366225,396bf01f8736b6458fc108986bcd99b0b2e6548a9cf3f147999ebef2363bd359) 0 (This answer is not useful) (70:3:31e,16:ff246799e41e0766,10:1725340975,16:e7a91d3b1d18c50b,8:25366225,d39561538a0a4338d30efa83217000882b1e34b66ca3efff619bdff7d1ba4109) Save this answer. (Loading when this answer was accepted…) (/posts/25366225/timeline) Show activity on this post. With pip v1.5.6 on Python v2.7.3 (GNU/Linux), option --root allows to specify a global installation prefix, (apparently) irrespective of specific package's options. Try f.i., $ pip install --root=/alternative/prefix/path package_name (/a/25366225) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/3.0/) (The current license for this post: CC BY-SA 3.0) CC BY-SA 3.0 Follow (70:3:31e,16:ed4f7244c8cb7122,10:1725340975,16:66f0263df6e2f9e6,8:25366225,f04e3f1ea0bb0203b74f71cb33c7d7bc935c049d997d23efb80ed7a52fc9bfd8) Follow this answer to receive notifications answered (2014-08-18 14:53:25Z) Aug 18, 2014 at 14:53 (/users/1199891/sphakka) (sphakka's user avatar) (/users/1199891/sphakka) sphakka sphakka (reputation score) 489 (5 silver badges) 5 5 silver badges (12 bronze badges) 12 12 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:4511718e030140f8,10:1725340975,16:eb815472118f234f,8:47651929,bd81052e65d5ec3ac33c4ce98406e6f37f7d9c9f219e5077695c4a2475b434a1) 0 (This answer is not useful) (70:3:31e,16:88b2c53802c49cc5,10:1725340975,16:20a65c91758eff01,8:47651929,08c189b5a3c4924847f718e3c0a7febdfe213d172f3858dbd9895753ba008895) Save this answer. (Loading when this answer was accepted…) (/posts/47651929/timeline) Show activity on this post. I suggest to follow the documentation and create ~/.pip/pip.conf file. Note in the documentation there are missing specified header directory, which leads to following error: error: install-base or install-platbase supplied, but installation scheme is incomplete The full working content of conf file is: [install]
install-base=$HOME
install-purelib=python/lib
install-platlib=python/lib.$PLAT
install-scripts=python/scripts
install-headers=python/include
install-data=python/data Unfortunatelly I can install, but when try to uninstall pip tells me there is no such package for uninstallation process.... so something is still wrong but the package goes to its predefined location. (/a/47651929) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/3.0/) (The current license for this post: CC BY-SA 3.0) CC BY-SA 3.0 Follow (70:3:31e,16:348a9f909bdb78c4,10:1725340975,16:3fe41ad300d006ee,8:47651929,1245209df18d444100c53a9c4586ac5e04bdcda6f17fb8cdc49313bad3585a9a) Follow this answer to receive notifications answered (2017-12-05 10:57:51Z) Dec 5, 2017 at 10:57 (/users/393896/ladislav-zitka) (Ladislav Zitka's user avatar) (/users/393896/ladislav-zitka) Ladislav Zitka Ladislav Zitka (reputation score) 1,002 (11 silver badges) 11 11 silver badges (16 bronze badges) 16 16 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:f3e54f73f6c7ca7c,10:1725340975,16:1919d88d8383468a,8:66674469,4b31d823a74ad246357b823c881824952536dadd5513828be4a16653ed09a7e3) 0 (This answer is not useful) (70:3:31e,16:9b58d352d3c96eb2,10:1725340975,16:4aa4fd369dbc160c,8:66674469,a5a5e38734d4252fd1892d34b03d253862ddcee35f105832f6e625424b1f7510) Save this answer. (Loading when this answer was accepted…) (/posts/66674469/timeline) Show activity on this post. system` option, that will install pip package-bins to /usr/local/bin thats accessible to all users. Installing without this option may not work for all users as things go to user specific dir like $HOME/.local/bin and then it is user specific install which has to be repeated for all users, also there can be path issues if not set for users, then bins won't work. So if you are looking for all users - yu need to have sudo access: sudo su -
python3 -m pip install --system
logout
log back in which --> it should be installed on /usr/local/bin / (/a/66674469) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 Follow (70:3:31e,16:40bb9ef47a53d32e,10:1725340975,16:aa60140ebc971883,8:66674469,1991e719465b2eb066c6b0d07126cda544d905436e4add16b9a6126db6326b62) Follow this answer to receive notifications answered (2021-03-17 13:50:02Z) Mar 17, 2021 at 13:50 (/users/1233188/ashish) (ashish's user avatar) (/users/1233188/ashish) ashish ashish (reputation score) 449 (4 silver badges) 4 4 silver badges (8 bronze badges) 8 8 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:144726ad2e1fe333,10:1725340975,16:c14e1709a63e0741,8:74950124,0c4ed4daa9b3c40fd3c8188f8ac6a13718c3f4736af357a67e501b769b690595) 0 (This answer is not useful) (70:3:31e,16:2193e040689ea9ad,10:1725340975,16:bf4b5fd3d69d2a13,8:74950124,a8c624b0dd240ca9e79fbdee949b0dd02f7a12bb0850b917aa73b1ad04ee42b3) Save this answer. (Loading when this answer was accepted…) (/posts/74950124/timeline) Show activity on this post. Sometimes it works only works with Cache argument -m pip install -U pip --target=C:\xxx\python\lib\site-packages Pillow --cache-dir C:\tmp (/a/74950124) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 Follow (70:3:31e,16:d2cedb8daec8f161,10:1725340975,16:5e001ce3856a8f44,8:74950124,777723a33ef1d204cc10e944ba22690a1e48df57783ca31114fd32f76f9ece07) Follow this answer to receive notifications answered (2022-12-29 10:47:01Z) Dec 29, 2022 at 10:47 (/users/1163485/dazzafact) (dazzafact's user avatar) (/users/1163485/dazzafact) dazzafact dazzafact (reputation score) 2,794 (3 gold badges) 3 3 gold badges (32 silver badges) 32 32 silver badges (51 bronze badges) 51 51 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:a77a29607f24c214,10:1725340975,16:eddea6ad9296d6e4,8:77509858,040af03e5015c5d0415522a68399b304dc261e3a202002dba5567ae61c1fccc9) 0 (This answer is not useful) (70:3:31e,16:c09c570c95279de6,10:1725340975,16:2c9f229f77c2dbca,8:77509858,e70e0eeda714afe6936d50d201f1220b49ae42f073003b8562332bb4950fb5bc) Save this answer. (Loading when this answer was accepted…) (/posts/77509858/timeline) Show activity on this post. Use: pip install package_name -t directory_path If you get the following error: ERROR: Can not combine '--user' and '--target' Use: pip install package_name -t directory_path --no-user e.g. pip install pandas -t C:\Users\user\Desktop\Family\test --no-user (/a/77509858) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 Follow (70:3:31e,16:292e836d411b765e,10:1725340975,16:f88278cc07db4a39,8:77509858,1a502e94e5cfa3ee3dcd7eab1dd5d598df78e487f9f6aab538dc2f5d9a69dfdd) Follow this answer to receive notifications answered (2023-11-19 06:32:38Z) Nov 19, 2023 at 6:32 (/users/11781859/vaibhav-kabdwal) (Vaibhav Kabdwal's user avatar) (/users/11781859/vaibhav-kabdwal) Vaibhav Kabdwal Vaibhav Kabdwal (reputation score) 91 (6 bronze badges) 6 6 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:0a066b6a178fcb64,10:1725340975,16:95e14a8ebc908179,8:76187859,00e7ed76e17dc012a68ac85a4fa6ba447bab581c227f1ff783307580e4e4a1e5) -3 (This answer is not useful) (70:3:31e,16:c7998fc2bd3421a3,10:1725340975,16:8b6323e024775625,8:76187859,3ee132d9bf649e4984abbf630202a1b50d788b726626540dfba499a9d6cdf7ab) Save this answer. (Loading when this answer was accepted…) (/posts/76187859/timeline) Show activity on this post. use default venv, third party vitrualenv or virtualenvwrapper will be pain in future (/a/76187859) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 Follow (70:3:31e,16:b56a42b1eeff6203,10:1725340975,16:91599cae9309f695,8:76187859,35e4bfc26661e7bfe68fba5795a42961ab5b094bb5555e0b96f5b8d968f5d04d) Follow this answer to receive notifications answered (2023-05-06 08:18:45Z) May 6, 2023 at 8:18 (/users/11248174/shyed2001) (shyed2001's user avatar) (/users/11248174/shyed2001) shyed2001 shyed2001 (reputation score) 1 (6 bronze badges) 6 6 bronze badges 1 (number of 'useful comment' votes received) 2 The OP says: "I know the obvious answer is to use virtualenv and virtualenvwrapper, but for various reasons I can't/don't want to do that. " – (/users/2745495/gino-mempin) (28,544 reputation) Gino Mempin Commented (2023-05-08 23:37:33Z, License: CC BY-SA 4.0) May 8, 2023 at 23:37 (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) (/help/privileges/protect-questions) Highly active question . Earn 10 reputation (not counting the (https://meta.stackexchange.com/questions/141648/what-is-the-association-bonus-and-how-does-it-work) association bonus ) in order to answer this question. The reputation requirement helps protect this question from spam and non-answer activity. Not the answer you're looking for? Browse other questions tagged (/questions/tagged/python) (show questions tagged 'python') python (/questions/tagged/pip) (show questions tagged 'pip') pip or (/questions/ask) ask your own question . The Overflow Blog (https://stackoverflow.blog/2024/08/30/mobile-observability-open-telemetry-embrace-ios-android-austin-emmons/?cb=1) (Mobile Observability: monitoring performance through cracked screens, old batteries, and crappy Wi-Fi) Mobile Observability: monitoring performance through cracked screens, old... Featured on Meta (Meta Stack Exchange) (https://meta.stackexchange.com/questions/401324/announcing-a-change-to-the-data-dump-process?cb=1) Announcing a change to the data-dump process (Meta Stack Exchange) (https://meta.stackexchange.com/questions/402121/bringing-clarity-to-status-tag-usage-on-meta-sites?cb=1) Bringing clarity to status tag usage on meta sites (Meta Stack Overflow) (https://meta.stackoverflow.com/questions/431331/what-does-a-new-user-need-in-a-homepage-experience-on-stack-overflow?cb=1) What does a new user need in a homepage experience on Stack Overflow? (Meta Stack Overflow) (https://meta.stackoverflow.com/questions/431273/feedback-requested-how-do-you-use-tag-hover-descriptions-for-curating-and-do-yo?cb=1) (Feedback requested: How do you use tag hover descriptions for curating and do you use the RSS feed feature?) Feedback requested: How do you use tag hover descriptions for curating and do... (Meta Stack Overflow) (https://meta.stackoverflow.com/questions/431399/staging-ground-reviewer-motivation?cb=1) Staging Ground Reviewer Motivation Linked (https://stackoverflow.com/q/47370367?lq=1) (Question score (upvotes - downvotes)) 1 (https://stackoverflow.com/questions/47370367/django-not-installing-in-folder-where-i-want?noredirect=1&lq=1) Django not installing in folder where I want (https://stackoverflow.com/q/65301841?lq=1) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/65301841/how-include-a-python-package-in-my-current-project-direct-under-linux?noredirect=1&lq=1) how include a python package in my current project direct under linux? (https://stackoverflow.com/q/78350032?lq=1) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/78350032/change-the-folder-with-python-scripts-under-windows?noredirect=1&lq=1) Change the folder with python scripts under Windows (https://stackoverflow.com/q/78739205?lq=1) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/78739205/pip-install-to-specific-directory-and-include-dependencies?noredirect=1&lq=1) Pip install to specific directory and include dependencies (https://stackoverflow.com/q/2812520?lq=1) (Question score (upvotes - downvotes)) 742 (https://stackoverflow.com/questions/2812520/dealing-with-multiple-python-versions-and-pip?noredirect=1&lq=1) Dealing with multiple Python versions and PIP? (https://stackoverflow.com/q/10919569?lq=1) (Question score (upvotes - downvotes)) 240 (https://stackoverflow.com/questions/10919569/install-a-module-using-pip-for-specific-python-version?noredirect=1&lq=1) Install a module using pip for specific python version (https://stackoverflow.com/q/24257803?lq=1) (Question score (upvotes - downvotes)) 147 (https://stackoverflow.com/questions/24257803/distutilsoptionerror-must-supply-either-home-or-prefix-exec-prefix-not-both?noredirect=1&lq=1) DistutilsOptionError: must supply either home or prefix/exec-prefix -- not both (https://stackoverflow.com/q/6570635?lq=1) (Question score (upvotes - downvotes)) 150 (https://stackoverflow.com/questions/6570635/installing-multiple-versions-of-a-package-with-pip?noredirect=1&lq=1) Installing multiple versions of a package with pip (https://stackoverflow.com/q/9348869?lq=1) (Question score (upvotes - downvotes)) 34 (https://stackoverflow.com/questions/9348869/how-to-install-virtualenv-without-using-sudo?noredirect=1&lq=1) How to install virtualenv without using sudo? (https://stackoverflow.com/q/25607837?lq=1) (Question score (upvotes - downvotes)) 40 (https://stackoverflow.com/questions/25607837/pip-install-not-installing-into-correct-directory?noredirect=1&lq=1) Pip Install not installing into correct directory? (https://stackoverflow.com/questions/linked/2915471?lq=1) See more linked questions Related (https://stackoverflow.com/q/12217965?rq=3) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/12217965/how-to-install-uninstall-with-pip-to-specific-python-folder?rq=3) How to install/uninstall with pip to specific python folder? (https://stackoverflow.com/q/17216689?rq=3) (Question score (upvotes - downvotes)) 31 (https://stackoverflow.com/questions/17216689/pip-install-python-package-into-a-specific-directory-other-than-the-default-inst?rq=3) Pip install python package into a specific directory other than the default install location (https://stackoverflow.com/q/23991493?rq=3) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/23991493/how-can-i-make-pip-install-my-package-to-path?rq=3) How can i make pip install my package to PATH? (https://stackoverflow.com/q/24834298?rq=3) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/24834298/using-pip-to-install-the-same-package-in-2-different-locations-python?rq=3) Using pip to install the same package in 2 different locations (Python) (https://stackoverflow.com/q/30922109?rq=3) (Question score (upvotes - downvotes)) 1 (https://stackoverflow.com/questions/30922109/how-to-tell-pip-to-create-folders-on-installing-my-package?rq=3) How to tell pip to create folders on installing my package (https://stackoverflow.com/q/36311599?rq=3) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/36311599/installing-python-packages-in-a-central-location?rq=3) Installing python packages in a central location (https://stackoverflow.com/q/41101217?rq=3) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/41101217/installing-pip-packages-in-different-directory-does-not-work?rq=3) Installing pip packages in different directory does not work (https://stackoverflow.com/q/47055613?rq=3) (Question score (upvotes - downvotes)) 6 (https://stackoverflow.com/questions/47055613/pip-install-dependencies-in-custom-directory?rq=3) pip install dependencies in custom directory (https://stackoverflow.com/q/49275228?rq=3) (Question score (upvotes - downvotes)) 1 (https://stackoverflow.com/questions/49275228/how-to-change-the-install-path-for-pip?rq=3) How to change the install path for PIP (https://stackoverflow.com/q/54182358?rq=3) (Question score (upvotes - downvotes)) 1 (https://stackoverflow.com/questions/54182358/installing-a-package-to-a-separate-directory-by-pip?rq=3) Installing a package to a separate directory by pip (https://stackexchange.com/questions?tab=hot) Hot Network Questions (Cross Validated) (https://stats.stackexchange.com/questions/653752/in-what-instances-are-3-d-charts-appropriate) In what instances are 3-D charts appropriate? (English Language & Usage Stack Exchange) (https://english.stackexchange.com/questions/625583/word-for-a-collection-of-awards-such-as-an-olympic-athlete-s-earned-medals) Word for a collection of awards, such as an Olympic athlete’s earned medals (Geographic Information Systems Stack Exchange) (https://gis.stackexchange.com/questions/485484/converting-pipe-separated-file-containing-geojson-geometries-to-geojson-with-ogr) Converting pipe-separated file containing GeoJSON geometries to GeoJSON with ogr2ogr (Motor Vehicle Maintenance & Repair Stack Exchange) (https://mechanics.stackexchange.com/questions/97780/why-is-the-wiper-fluid-hose-on-the-mk7-golf-covered-in-cloth-tape) Why is the wiper fluid hose on the Mk7 Golf covered in cloth tape? (Mathematics Stack Exchange) (https://math.stackexchange.com/questions/4966094/a-classic-problem-about-matrix) A classic problem about matrix (TeX - LaTeX Stack Exchange) (https://tex.stackexchange.com/questions/725645/how-to-reproduce-this-equation-itemization) How to reproduce this equation itemization? (Travel Stack Exchange) (https://travel.stackexchange.com/questions/191132/is-it-possible-to-travel-to-usa-with-legal-cannabis) Is it possible to travel to USA with legal cannabis? (Mathematics Stack Exchange) (https://math.stackexchange.com/questions/4966271/is-this-a-standard-elliptic-integral) Is this a 'standard' elliptic integral? (TeX - LaTeX Stack Exchange) (https://tex.stackexchange.com/questions/725609/i-have-two-identical-latex-files-with-different-file-names-only-one-yields-un) I have two identical LaTeX files, with different file names. Only one yields "undefined references." Why is this happening? (Academia Stack Exchange) (https://academia.stackexchange.com/questions/213315/what-should-be-the-affiliation-of-phd-student-who-submitted-thesis-but-yet-to-de) What should be the affiliation of PhD student who submitted thesis but yet to defend, in a conference talk slides? (Bricks) (https://bricks.stackexchange.com/questions/18823/what-is-inside-the-spike-essential-battery) What is inside the SPIKE Essential battery? (Movies & TV Stack Exchange) (https://movies.stackexchange.com/questions/123342/why-does-jenny-hug-cindy-at-the-end-of-commando-1985) Why does Jenny hug Cindy at the end of "Commando" (1985)? (Mathematica Stack Exchange) (https://mathematica.stackexchange.com/questions/306634/how-can-i-use-dihedralangle-to-get-correct-result) How can I use DihedralAngle to get correct result? (Code Golf Stack Exchange) (https://codegolf.stackexchange.com/questions/275291/how-many-ways-can-you-make-change) How many ways can you make change? (User Experience Stack Exchange) (https://ux.stackexchange.com/questions/152228/can-it-be-acceptable-to-take-over-ctrl-f-shortcut-in-web-app) Can it be acceptable to take over CTRL + F shortcut in web app (Role-playing Games Stack Exchange) (https://rpg.stackexchange.com/questions/213204/lore-reasons-for-being-faithless) Lore reasons for being faithless (Puzzling Stack Exchange) (https://puzzling.stackexchange.com/questions/128143/explain-how-%cf%80-1-50-%e2%85%94-%c3%97-1000-is-plonk) Explain how π – 1 + 50 + ⅔ × 1000 is PLONK (Cross Validated) (https://stats.stackexchange.com/questions/653739/percentage-changes-versus-absolute-changes-when-comparing-rankings) Percentage changes versus absolute changes when comparing rankings (Aviation Stack Exchange) (https://aviation.stackexchange.com/questions/106506/does-an-airplane-fly-less-or-more-efficiently-after-an-mid-flight-engine-failure) Does an airplane fly less or more efficiently after an mid-flight engine failure? (Physics Stack Exchange) (https://physics.stackexchange.com/questions/826416/doesnt-counting-hole-and-electron-current-lead-to-double-counting-of-actual-cur) Doesn't counting hole and electron current lead to double-counting of actual current? (French Language Stack Exchange) (https://french.stackexchange.com/questions/55083/what-is-the-translation-of-a-code-monkey-in-french) What is the translation of a code monkey in French? (Mathematics Stack Exchange) (https://math.stackexchange.com/questions/4966126/understanding-a-proof-that-a-bounded-sequence-in-a-separable-hilbert-space-conta) Understanding a proof that a bounded sequence in a separable Hilbert space contains a weakly convergent subsequence (Physics Stack Exchange) (https://physics.stackexchange.com/questions/826516/can-taut-membranes-and-strings-that-are-clamped-at-both-ends-propagate-non-stand) Can taut membranes and strings that are clamped at both ends propagate non-standing waves? (Astronomy Stack Exchange) (https://astronomy.stackexchange.com/questions/58463/when-a-star-becomes-a-black-hole-do-the-neutrons-that-are-squeezed-together-rele) When a star becomes a black hole do the neutrons that are squeezed together release binding energy and if so does this energy escape from the hole? (/feeds/question/2915471) (Feed of this question and its answers) Question feed Subscribe to RSS Question feed To subscribe to this RSS feed, copy and paste this URL into your RSS reader. (https://stackoverflow.com/feeds/question/2915471) () lang-py (https://stackoverflow.com) (https://stackoverflow.com) Stack Overflow (/questions) Questions (/help) Help (https://chat.stackoverflow.com/?tab=site&host=stackoverflow.com) Chat (https://stackoverflow.co/) Products (https://stackoverflow.co/teams/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=footer&utm_content=teams) Teams (https://stackoverflow.co/advertising/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=footer&utm_content=advertising) Advertising (https://stackoverflow.co/advertising/employer-branding/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=footer&utm_content=talent) Talent (https://stackoverflow.co/) Company (https://stackoverflow.co/) About (https://stackoverflow.co/company/press/) Press (https://stackoverflow.co/company/work-here/) Work Here (https://stackoverflow.com/legal) Legal (https://stackoverflow.com/legal/privacy-policy) Privacy Policy (https://stackoverflow.com/legal/terms-of-service/public) Terms of Service (/contact) Contact Us Cookie Settings (https://stackoverflow.com/legal/cookie-policy) Cookie Policy (https://stackexchange.com) Stack Exchange Network (https://stackexchange.com/sites#technology) Technology (https://stackexchange.com/sites#culturerecreation) Culture & recreation (https://stackexchange.com/sites#lifearts) Life & arts (https://stackexchange.com/sites#science) Science (https://stackexchange.com/sites#professional) Professional (https://stackexchange.com/sites#business) Business (https://api.stackexchange.com/) API (https://data.stackexchange.com/) Data (https://stackoverflow.blog?blb=1) Blog (https://www.facebook.com/officialstackoverflow/) Facebook (https://twitter.com/stackoverflow) Twitter (https://linkedin.com/company/stack-overflow) LinkedIn (https://www.instagram.com/thestackoverflow) Instagram Site design / logo © 2024 Stack Exchange Inc; user contributions licensed under (https://stackoverflow.com/help/licensing) CC BY-SA . rev 2024.9.2.14718 By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our (https://stackoverflow.com/legal/cookie-policy) Cookie Policy . Accept all cookies Necessary cookies only Customize settings