Install of a wheel from URL with pipenv
See original GitHub issueHello, I am attempting to install PyTorch into an environment with pipenv
.
See: http://pytorch.org/
System:
- macOS
- Python 3.6 (installed via Brew)
- CUDA: none
pipenv --three
pipenv install numpy
pipenv install http://download.pytorch.org/whl/torch-0.2.0.post3-cp36-cp36m-macosx_10_7_x86_64.whl
Issue:
Installing http://download.pytorch.org/whl/torch-0.2.0.post3-cp36-cp36m-macosx_10_7_x86_64.whl...
Collecting torch==0.2.0.post3 from http://download.pytorch.org/whl/torch-0.2.0.post3-cp36-cp36m-macosx_10_7_x86_64.whl
Downloading http://download.pytorch.org/whl/torch-0.2.0.post3-cp36-cp36m-macosx_10_7_x86_64.whl (5.7MB)
Collecting pyyaml (from torch==0.2.0.post3)
Requirement already satisfied: numpy in /Users/nwh/.local/share/virtualenvs/proj2-d5yuf5ok/lib/python3.6/site-packages (from torch==0.2.0.post3)
Installing collected packages: pyyaml, torch
Successfully installed pyyaml-3.12 torch-0.2.0.post3
Adding http://download.pytorch.org/whl/torch-0.2.0.post3-cp36-cp36m-macosx_10_7_x86_64.whl to Pipfile's [packages]...
Locking [dev-packages] dependencies...
Locking [packages] dependencies...
Traceback (most recent call last):
File "/usr/local/bin/pipenv", line 11, in <module>
sys.exit(cli())
File "/usr/local/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/pipenv/cli.py", line 936, in install
do_lock(no_hashes=no_hashes)
File "/usr/local/lib/python3.6/site-packages/pipenv/cli.py", line 491, in do_lock
results = resolve_deps(deps, sources=project.sources)
File "/usr/local/lib/python3.6/site-packages/pipenv/utils.py", line 49, in resolve_deps
for result in r.resolve():
File "/usr/local/lib/python3.6/site-packages/piptools/resolver.py", line 94, in resolve
self.their_constraints))
File "/usr/local/lib/python3.6/site-packages/piptools/resolver.py", line 131, in check_constraints
raise UnsupportedConstraint(msg, constraint)
piptools.exceptions.UnsupportedConstraint: pip-compile does not support URLs as packages, unless they are editable. Perhaps add -e option? (constraint was: torch==0.2.0.post3 from http://download.pytorch.org/whl/torch-0.2.0.post3-cp36-cp36m-macosx-10-7-x86-64.whl)
Question: Does pipenv
support wheel installs given a URL?
This alternative appears to work:
pipenv shell
pip install http://download.pytorch.org/whl/torch-0.2.0.post3-cp36-cp36m-macosx_10_7_x86_64.whl
Issue Analytics
- State:
- Created 6 years ago
- Reactions:6
- Comments:21 (15 by maintainers)
Top Results From Across the Web
PipEnv: How to handle locally installed .whl packages
I took the URL from that. pipenv run pypi-server -p 8080 ./packages & should be --port=8080 on newer versions. '-p' is no longer...
Read more >Advanced Usage of Pipenv - Read the Docs
Dependencies of wheels provided in a Pipfile will not be captured by $ pipenv ... pipenv install --pypi-mirror <mirror_url> $ pipenv update --pypi-mirror ......
Read more >How to install, download and build Python wheels - ActiveState
Python Install Wheel ; Assuming you don't first need to install Python from python.org, you can install a wheel by running the following...
Read more >Release and Version History — pipenv 2022.12.20.dev0 ...
Fix for requirementslib hanging during install of remote wheels files. ... that source is not added to Pipfile when index url is given...
Read more >Install Python, pip, and the EB CLI on Linux
If your Linux distribution came with Python, you might need to install the Python ... setuptools, wheel Successfully installed pip setuptools wheel.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
So how can we properly install Pytorch with pipenv?
this was just added in master!