We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, just struggling with the uv pip install syntax...
I have a folder called src/ with a sub folder projectlib which itself contains a bunch of .py files and folders of .py files
src/
projectlib
The directory structure is more or less:
PROJECT-SOME-RANDOM-NAME/ |-> pyproject.toml |-> notebooks/... └-> src/ |-> projectlib/ | |-> __init__.py | |-> data_loading.py | |-> models/... | |-> features.py | └-> analysis/... | └> otherlib/...
Then in a bunch of jupyter notebooks and scripts I simply import things as
from projectlib.data_loading import get_users_from_db
So far I've been installing this via
python -m pip install --user .
ran on the top level folder PROJECT-SOME-RANDOM-NAME (outside src)
PROJECT-SOME-RANDOM-NAME
src
But looking to move to uv (for the obvious reasons)
uv
I see I can install all the dependencies described in pyproject.toml using
pyproject.toml
python -m uv pip install --system --prerelease=allow -r pyproject.toml
But not clear on how I can install the projectlib/ folder (and maybe also otherlib/)
projectlib/
otherlib/
The text was updated successfully, but these errors were encountered:
Hi! You're looking for uv pip install -e . or uv pip install "your-project@."
uv pip install -e .
uv pip install "your-project@."
See #313 for some more details on the second syntax.
Sorry, something went wrong.
Yes, that worked.
Ok, just in case someone comes across this issue...
I had the problem that when I modified projectlib some changes would not be applied. Meaning that after running
python -m uv pip install --system -e .
I was still loading the previous version installed with python -m pip install .
python -m pip install .
The issue was that at some point pip had installed projectlib in ~/AppData/Roaming/Python/Python310/site-packages/
~/AppData/Roaming/Python/Python310/site-packages/
Deleting that folder fixed my issue - it had nothing to do with uv
This is supported as of v0.1.24. You can uv pip install . directly, without including a package name.
v0.1.24
uv pip install .
No branches or pull requests
Hi, just struggling with the uv pip install syntax...
I have a folder called
src/
with a sub folderprojectlib
which itself contains a bunch of .py files and folders of .py filesThe directory structure is more or less:
Then in a bunch of jupyter notebooks and scripts I simply import things as
So far I've been installing this via
python -m pip install --user .
ran on the top level folder
PROJECT-SOME-RANDOM-NAME
(outsidesrc
)But looking to move to
uv
(for the obvious reasons)I see I can install all the dependencies described in
pyproject.toml
usingpython -m uv pip install --system --prerelease=allow -r pyproject.toml
But not clear on how I can install the
projectlib/
folder (and maybe alsootherlib/
)The text was updated successfully, but these errors were encountered: