Install globally with --user
See original GitHub issue- I have searched the issues of this repo and believe that this is not a duplicate.
- I have searched the documentation and believe that my question is not covered.
Feature Request
I am using Poetry to install project dependencies into a Docker container where I do not have root access. Since using a virtualenv would be unnecessary (there is only ever one project in this container) and a waste of time (this is done as part of a web service aiming at speed), I configure settings.virtualenvs.create
to false
. However, this causes Poetry to try to install the packages system-globally, which fails because I don’t have root access in the container.
I would like a way to tell Poetry to use pip install --user
instead of just pip install
to install packages when virtualenvs are disabled.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:64
- Comments:21 (6 by maintainers)
Top Results From Across the Web
Downloading and installing packages globally - npm Docs
Installing a package globally allows you to use the code in the package as a set of tools on your local computer. To...
Read more >guides/npm-global-without-sudo.md at main - GitHub
Here is a way to install packages globally for a given user. 1. Create a directory for global packages. mkdir "${HOME}/.npm- ...
Read more >Global npm packages are install on different user directory
I'm not able to use those global libs now. Say for example npm install -g gulp. installs the gulp module under. C:\Users<DELETED_USER>\AppData\ ...
Read more >yarn global
yarn global. Install packages globally on your operating system. ... The global command makes executables available to use on your operating system.
Read more >A Note on Permissions | Introduction
Test: Download a package globally without using sudo . npm install -g jshint. Instead of steps 2-4 you can also use the corresponding...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Found this here issue when looking for the equivalent of
poetry install --user
. The reason is that I am working in a VSCode development container, and want to avoid the unnecessary fuss of creating a virtualenv, thuspoetry config virtualenv.create false
. usingsudo poetry install
doesn’t feel quite right.It would even be better to just configure this, somehow, so that my development container could have these settings here:
or similar.
It’s perfectly possible to create a virtualenv inside the development container, but this is really quite redundant, because in most cases, there is only ever the single environment inside it. This saves a bunch of steps and indirections.