requirements icon indicating copy to clipboard operation
requirements copied to clipboard

Support "+cpu" in version comparison

Open Hafplo opened this issue 5 years ago • 4 comments

Describe the bug not able to detect version with "+cpu"

To Reproduce Steps to reproduce the behavior:

  1. Go to 'requirements.txt' file in project
  2. Add "torch==1.7.1+cpu"
  3. Install the package
  4. See error

Expected behavior detect version correctly check for version including suffixes

Screenshots If applicable, add screenshots to help explain your problem.

IDE (please complete the following information. See Main Menu -> Help -> About):

  • OS: Windows 10
  • Product: PyCharm 2020.3.2 (Professional Edition)
  • Build: #PY-203.6682.179, built on December 30, 2020
  • Runtime version: 11.0.9.1+11-b1145.63 amd64
  • VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
  • Project SDK: Python 3.7

Plugin (please complete the following information. See Main Menu -> File -> Settings -> Plugins):

  • Version: 2020.6-203

Hafplo avatar Jan 13 '21 16:01 Hafplo

@Hafplo torch 1.7.1+cpu not found in https://pypi.org/project/torch/

meanmail avatar Jan 24 '21 10:01 meanmail

I use the commands from Pytorch official site: https://pytorch.org/get-started/locally/

pip install torch==1.7.1+cpu torchvision==0.8.2+cpu torchaudio===0.7.2 -f https://download.pytorch.org/whl/torch_stable.html

Hafplo avatar Feb 04 '21 16:02 Hafplo

@meanmail Any comments or updates?

Hafplo avatar Mar 21 '21 13:03 Hafplo

@Hafplo -f, --find-lins options are not currently supported. Support will be added in one of the next releases

meanmail avatar May 02 '21 18:05 meanmail