Skip to content
New issue

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

how to use pdm install local packages,like this:!pdm add torch --find-links ./path. #3081

Closed
lluck42 opened this issue Aug 7, 2024 · 4 comments
Labels
⭐ enhancement Improvements for existing features

Comments

@lluck42
Copy link

lluck42 commented Aug 7, 2024

Is your feature/enhancement proposal related to a problem? Please describe.

Describe the solution you'd like

@lluck42 lluck42 added the ⭐ enhancement Improvements for existing features label Aug 7, 2024
@lluck42 lluck42 closed this as completed Aug 7, 2024
@lluck42 lluck42 changed the title how to use whl path to install package,like this pdm add how to use pdm install local packages,like this:!pdm add torch --find-links ./path. Aug 7, 2024
@lluck42 lluck42 reopened this Aug 7, 2024
@lluck42
Copy link
Author

lluck42 commented Aug 7, 2024

pdm is useful,but i can‘t find a way to search package file in local like pip. do it support this? eg: pip install --no-index --find-links=/path/to/packages -r requirements.txt

@frostming
Copy link
Collaborator

You are looking for type = "find_links" sources: https://pdm-project.org/en/latest/usage/config/#configure-the-package-indexes

@frostming frostming closed this as not planned Won't fix, can't repro, duplicate, stale Aug 7, 2024
@lluck42
Copy link
Author

lluck42 commented Aug 7, 2024

can you show me a example?is this toml file righ?:
image
image
image
code:
pdm add torch torchvision torchaudio

@lluck42
Copy link
Author

lluck42 commented Aug 7, 2024

image
thanks, it like work well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⭐ enhancement Improvements for existing features
Projects
None yet
Development

No branches or pull requests

2 participants