question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:open
  • Created 4 years ago
  • Reactions:64
  • Comments:21 (6 by maintainers)

github_iconTop GitHub Comments

20reactions
stale[bot]commented, Nov 13, 2019

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.

15reactions
kristjanvalurcommented, Sep 7, 2022

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, thus poetry config virtualenv.create false. using sudo 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:

poetry config virtualenv.create false
poetry config install.user true

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found