Unable to install mmcv-full with pipenv.
See original GitHub issueIssue description
Unable to install mmcv-full with pipenv.
Expected result
Can be installed without problems
Actual result
An error will occur as shown below.
β> /m/n/k/c/work on dev-mmdet-2.23.0 β¨― pipenv lock 12:10:07
Locking [dev-packages] dependencies...
Locking [packages] dependencies...
Building requirements...
Resolving dependencies...
β Success!
Updated Pipfile.lock (a7d644)!
β> /m/n/k/c/work on dev-mmdet-2.23.0 β¨― pipenv sync 12:10:51
Installing dependencies from Pipfile.lock (a7d644)...
An error occurred while installing https://download.openmmlab.com/mmcv/dist/cu113/torch1.10.0/mmcv_full-1.4.7-cp38-cp38-manylinux1_x86_64.whl#egg=mmcv-full --hash=sha256:7459572935a7ba6293fee619c205583d76cd832464ffe9f15115ebe0396450e4! Will try again.
π ββββββββββββββββββββββββββββββββ 14/14 β 00:00:20
Installing initially failed dependencies...
[pipenv.exceptions.InstallError]: Collecting mmcv-full==1.4.7
[pipenv.exceptions.InstallError]: Using cached https://download.openmmlab.com/mmcv/dist/cu113/torch1.10.0/mmcv_full-1.4.7-cp38-cp38-manylinux1_x86_64.whl (47.7 MB)
[pipenv.exceptions.InstallError]: ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them.
[pipenv.exceptions.InstallError]: mmcv-full==1.4.7 from https://download.openmmlab.com/mmcv/dist/cu113/torch1.10.0/mmcv_full-1.4.7-cp38-cp38-manylinux1_x86_64.whl#egg=mmcv-full (from -r /tmp/pipenv-vznfd55f-requirements/pipenv-1z06yhcm-requirement.txt (line 1)):
[pipenv.exceptions.InstallError]: Expected sha256 7459572935a7ba6293fee619c205583d76cd832464ffe9f15115ebe0396450e4
[pipenv.exceptions.InstallError]: Got 95dde9139fec10789406aa13e4824c3187805f52f23acd5aa6b924094be5e427
ERROR: Couldn't install package: mmcv-full
Package installation failed...
β€ ββββββββββββββββββββββββββββββββ 0/1 β 00:00:02
β> /m/n/k/c/work on dev-mmdet-2.23.0 β¨―
Steps to replicate
For commands only, it can be reproduced as follows.
pip install pipenv
pipenv --python 3.8.6
pipenv install "mmcv-full==1.4.7" -i https://download.openmmlab.com/mmcv/dist/cu113/t
orch1.10.0/index.html
Another method is to write it in the Pipfile in advance and then lock
and sync
.
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[packages]
mmcv-full = {file = "https://download.openmmlab.com/mmcv/dist/cu113/torch1.10.0/mmcv_full-1.4.7-cp38-cp38-manylinux1_x86_64.whl"}
torch = {file = "https://download.pytorch.org/whl/cu113/torch-1.10.0%2Bcu113-cp38-cp38-linux_x86_64.whl"}
torchvision = {file = "https://download.pytorch.org/whl/cu113/torchvision-0.11.0%2Bcu113-cp38-cp38-linux_x86_64.whl"}
mmdet = "==2.23.0"
[dev-packages]
[requires]
python_version = "3.8"
After creating the above Pipfile, do pipenv lock
and pipenv sync
.
pipenv lock
pipenv sync
Environment
It is running in the following environment.
β> ~ nvidia-container-cli info 12:05:06
NVRM version: 465.19.01
CUDA version: 11.3
Device Index: 0
Device Minor: 0
Model: NVIDIA Tesla T4
Brand: Nvidia
GPU UUID: GPU-b2fd7cfe-e194-bdb7-3a2a-78a5d8528d38
Bus Location: 00000000:00:1e.0
Architecture: 7.5
β> ~ lsb_release -a 12:05:32
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.6 LTS
Release: 18.04
Codename: bionic
β> ~
Issue Analytics
- State:
- Created a year ago
- Comments:16
Top Results From Across the Web
Unable to install mmcv-full with pipenv. Β· Issue #1892 - GitHub
I was able to install mmcv-full with pipenv == 2022.3.28 without any problems. There seems to be an error with pipenv==2022.4.8 . See...
Read more >Installation β mmcv 1.7.0 documentation - Read the Docs
Before installing mmcv-full, make sure that PyTorch has been successfully installed following the PyTorch official installation guide.
Read more >python pip: "error: legacy-install-failure" - Stack Overflow
I want to install gensim python packageΒ ...
Read more >Install | Data Version Control - DVC
Open-source version control system for Data Science and Machine Learning projects. Git-like experience to organize your data, models, and experiments.
Read more >pipenv shell - Fatal error in launcher : r/django - Reddit
pip install pipenv. tried to activate environment with: pipenv shell. But got an error: Fatal error in launcher: Unable to create process.
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
Thanks @Keiku β there should be a new release in an hour or so that will included the latest changes and the fix for the original issue. The
torchvision
version error difference remains a mystery, but I will keep it in mind if we get any other issue reports with the same error like that. May end up closing at some point soon based on your positive feedback. Thanks!@matteius In pipenv version
2022.4.9.dev0
, the below error occur withlock
. Iβm not sure why this is happening.