poetry -C path/to/project add package
installs package with relative path to python interpreter
#9415
Labels
poetry -C path/to/project add package
installs package with relative path to python interpreter
#9415
Description
poetry -C path/to/project add package
installs package but the shebang interpreter directive has a relative path to the python interpreter, instead of an absolute.This means that the package can only be run from the same place it was installed.
Example:
Running from the same place it was installed, it finds the package
but
cd
into the directory, and run the command again, it fails.This is because the python interpreter has a relative path.
If I instead install it from the directory where it's used, it works, regardless from where I'm calling it from, as the path is absolute.
Related to #9247
Workarounds
Use
cd path/to/package && poetry [CMD]
instead ofpoetry -C path/to/package [CMD]
Poetry Installation Method
install.python-poetry.org
Operating System
Ubuntu 20.04
Poetry Version
1.8.3
Poetry Configuration
The text was updated successfully, but these errors were encountered: