voxelpose-pytorchのrequirements.txtをWindows10マシンにインストールする
学習させて推論までをやりたい。
コード:
論文:
[2004.06239] VoxelPose: Towards Multi-Camera 3D Human Pose Estimation in Wild Environment
論文のまとめスライド:
[DL輪読会]VoxelPose: Towards Multi-Camera 3D Human Pose Estimation in Wi…
デモ動画:
論文執筆者の一人、王春雨=Chunyu Wangさんのサイト
まずローカルのWindows10マシンで学習させられるか試してみる。
machine specs:
- CPU: Intel Core i5-10400F
- RAM: 32GB
- GPU: RTX2060 SUPER 8GB
まずPyTorchのインストール。WSLは使わずに、素のWindows10環境にインストールしてみる。voxelpose-pytorchのリポジトリにはrequirements.txtはあるけど、Pythonのバージョンについては記載なし。
Python自体も、ROS Noeticを以前インストールしたときに一緒にインストールしただけなので、chocolateyでpyenvをインストールして、pyenvからPythonをインストールする。
インストールだけで長くなりそうなので、別スクラップにする。
PyTorchがWindows10上で使えるようになったので、あらためてvoxelposeを動かすことにチャレンジする。
まず自分のアカウントにリポジトリをフォーク。
pip install -r requirements.txt
でいきなり失敗してもうた。
(.venv-3.9.3) PS C:\Users\yosuke\shared\work\voxelpose-pytorch> python -m pip install -r .\requirements.txt
Collecting tqdm==4.29.1
Downloading tqdm-4.29.1-py2.py3-none-any.whl (46 kB)
|████████████████████████████████| 46 kB 3.2 MB/s
Collecting json_tricks==3.13.2
Downloading json_tricks-3.13.2.tar.gz (20 kB)
ERROR: Could not find a version that satisfies the requirement torch==1.4.0
ERROR: No matching distribution found for torch==1.4.0
(.venv-3.9.3) PS C:\Users\yosuke\shared\work\voxelpose-pytorch>
再開。pipのバージョンあがってたので 21.0.1->21.1.1に更新。
(.venv-3.9.3) PS C:\Users\yosuke\shared\work\voxelpose-pytorch> python -m pip install -r .\requirements.txt
Collecting tqdm==4.29.1
Using cached tqdm-4.29.1-py2.py3-none-any.whl (46 kB)
Collecting json_tricks==3.13.2
Using cached json_tricks-3.13.2.tar.gz (20 kB)
ERROR: Could not find a version that satisfies the requirement torch==1.4.0 (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2, 1.7.1, 1.8.0, 1.8.1)
ERROR: No matching distribution found for torch==1.4.0
(.venv-3.9.3) PS C:\Users\yosuke\shared\work\voxelpose-pytorch>
Python3.8で再チャレンジしたが、ダメだった。
(.venv-3.8.9) PS C:\Users\yosuke\shared\work\voxelpose-pytorch> python -m pip install -r .\requirements.txt
Collecting tqdm==4.29.1
Using cached tqdm-4.29.1-py2.py3-none-any.whl (46 kB)
Collecting json_tricks==3.13.2
Using cached json_tricks-3.13.2.tar.gz (20 kB)
ERROR: Could not find a version that satisfies the requirement torch==1.4.0 (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2, 1.7.1, 1.8.0, 1.8.1)
ERROR: No matching distribution found for torch==1.4.0
(.venv-3.8.9) PS C:\Users\yosuke\shared\work\voxelpose-pytorch>
Win用の1.4が無いわけではなさそうなんだけど。
Linux and Windows
# CUDA 10.1
pip install torch==1.4.0 torchvision==0.5.0
# CUDA 9.2
pip install torch==1.4.0+cu92 torchvision==0.5.0+cu92 -f > https://download.pytorch.org/whl/torch_stable.html
# CPU only
pip install torch==1.4.0+cpu torchvision==0.5.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
1.4より新しいPyTorchをインストールしてみようかと思ったけど、1.5.0/1.5.1で後方互換性の無いアップデートがあったようだから、やらないほうがよさげ。
Backwards Incompatible Changes
Python3.7/3.6で python -m pip install -r .\requirements.txt
やっても結果は3.9/3.8と同じだったので、Pythonのバージョンが問題ではなさそう。cudaのバージョンの問題かな?
PS C:\Users\yosuke\shared\work\voxelpose-pytorch> nvidia-smi
Sun May 2 19:22:03 2021
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 461.33 Driver Version: 461.33 CUDA Version: 11.2 |
|-------------------------------+----------------------+----------------------+
| GPU Name TCC/WDDM | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 GeForce RTX 206... WDDM | 00000000:01:00.0 On | N/A |
| 29% 30C P8 11W / 175W | 2230MiB / 8192MiB | 8% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
I had same problem and python -m pip install --upgrade pip setuptools wheel worked for me
ダメ。同じpip install -U を3.8/3.7/3.6でやってもダメ。
(.venv-3.9.3) PS C:\Users\yosuke\shared\work\voxelpose-pytorch> python -m pip install --upgrade pip setuptools wheel
Requirement already satisfied: pip in c:\users\yosuke\shared\work\voxelpose-pytorch\.venv-3.9.3\lib\site-packages (21.1.1)
Requirement already satisfied: setuptools in c:\users\yosuke\shared\work\voxelpose-pytorch\.venv-3.9.3\lib\site-packages (49.2.1)
Collecting setuptools
Downloading setuptools-56.0.0-py3-none-any.whl (784 kB)
|████████████████████████████████| 784 kB ...
Collecting wheel
Downloading wheel-0.36.2-py2.py3-none-any.whl (35 kB)
Installing collected packages: wheel, setuptools
Attempting uninstall: setuptools
Found existing installation: setuptools 49.2.1
Uninstalling setuptools-49.2.1:
Successfully uninstalled setuptools-49.2.1
Successfully installed setuptools-56.0.0 wheel-0.36.2
(.venv-3.9.3) PS C:\Users\yosuke\shared\work\voxelpose-pytorch> python -m pip install torch==1.4.0
ERROR: Could not find a version that satisfies the requirement torch==1.4.0 (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2, 1.7.1, 1.8.0, 1.8.1)
ERROR: No matching distribution found for torch==1.4.0
(.venv-3.9.3) PS C:\Users\yosuke\shared\work\voxelpose-pytorch>
なんか、 -f
でDL元を指定したらとおった。
(.venv-3.8.9) PS C:\Users\yosuke\shared\work\voxelpose-pytorch> python -m pip install torch==1.4.0 -f https://download.pytorch.org/whl/torch_stable.html
Looking in links: https://download.pytorch.org/whl/torch_stable.html
Collecting torch==1.4.0
Downloading https://download.pytorch.org/whl/cu92/torch-1.4.0%2Bcu92-cp38-cp38-win_amd64.whl (641.9 MB)
|████████████████████████████████| 641.9 MB 108 kB/s
Installing collected packages: torch
Successfully installed torch-1.4.0+cu92
wheelのURLを直で指定するのでもインストールできたのか。
(.venv-3.8.9) PS C:\Users\yosuke\shared\work\voxelpose-pytorch> python -m pip install https://download.pytorch.org/whl/cu101/torch-1.4.0-cp38-cp38-win_amd64.whl
Collecting torch==1.4.0
Downloading https://download.pytorch.org/whl/cu101/torch-1.4.0-cp38-cp38-win_amd64.whl (796.9 MB)
|████████████████████████████████| 796.9 MB 76 kB/s
Installing collected packages: torch
Successfully installed torch-1.4.0
(.venv-3.8.9) PS C:\Users\yosuke\shared\work\voxelpose-pytorch> python -m pip freeze
torch @ https://download.pytorch.org/whl/cu101/torch-1.4.0-cp38-cp38-win_amd64.whl
(.venv-3.8.9) PS C:\Users\yosuke\shared\work\voxelpose-pytorch>
import torch
はとおって、torch.cuda.is_available()
もTrue
にはなった。これでOKなのかな?
(.venv-3.8.9) PS C:\Users\yosuke\shared\work\voxelpose-pytorch> python
Python 3.8.9 (tags/v3.8.9:a743f81, Apr 6 2021, 14:02:34) [MSC v.1928 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\yosuke\shared\work\voxelpose-pytorch\.venv-3.8.9\lib\site-packages\torch\__init__.py", line 97, in <module>
from torch._C import *
ImportError: numpy.core.multiarray failed to import
>>> import numpy as np
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'numpy'
>>> exit()
(.venv-3.8.9) PS C:\Users\yosuke\shared\work\voxelpose-pytorch> python -m pip install numpy
Collecting numpy
Downloading numpy-1.20.2-cp38-cp38-win_amd64.whl (13.7 MB)
|████████████████████████████████| 13.7 MB 6.8 MB/s
Installing collected packages: numpy
Successfully installed numpy-1.20.2
(.venv-3.8.9) PS C:\Users\yosuke\shared\work\voxelpose-pytorch> python
Python 3.8.9 (tags/v3.8.9:a743f81, Apr 6 2021, 14:02:34) [MSC v.1928 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as np
>>> import torch
>>> x = torch.rand(5, 3)
>>> x
tensor([[0.4321, 0.2597, 0.0267],
[0.1976, 0.7101, 0.0553],
[0.5518, 0.9845, 0.3400],
[0.9776, 0.3212, 0.3747],
[0.3343, 0.5990, 0.6674]])
>>> torch.cuda.is_available()
True
>>>
requirements.txtのインストールに再チャレンジ。torchはOKっぽいが、今度はOpenCVがみつからない。
(.venv-3.8.9) PS C:\Users\yosuke\shared\work\voxelpose-pytorch> python -m pip install -r .\requirements.txt
Collecting tqdm==4.29.1
Using cached tqdm-4.29.1-py2.py3-none-any.whl (46 kB)
Collecting json_tricks==3.13.2
Using cached json_tricks-3.13.2.tar.gz (20 kB)
Requirement already satisfied: torch==1.4.0 in c:\users\yosuke\shared\work\voxelpose-pytorch\.venv-3.8.9\lib\site-packages (from -r .\requirements.txt (line 3)) (1.4.0)
ERROR: Could not find a version that satisfies the requirement opencv_python==4.0.0.21 (from versions: 3.4.8.29, 3.4.9.31, 3.4.9.33, 3.4.10.35, 3.4.10.37, 3.4.11.39, 3.4.11.41, 3.4.11.43, 3.4.11.45, 3.4.13.47, 4.1.2.30, 4.2.0.32, 4.2.0.34, 4.3.0.36, 4.3.0.38, 4.4.0.40, 4.4.0.42, 4.4.0.44, 4.4.0.46, 4.5.1.48)
ERROR: No matching distribution found for opencv_python==4.0.0.21
(.venv-3.8.9) PS C:\Users\yosuke\shared\work\voxelpose-pytorch>
一番近そうな、4.1.2.30にバージョンを変更したらopencvは入った。が、今度はmatplotlibが入らない。2.0.2はpipがサポートしてるっぽいんだけど。
(.venv-3.8.9) PS C:\Users\yosuke\shared\work\voxelpose-pytorch> git diff
diff --git a/requirements.txt b/requirements.txt
index fc4f746..c0c5335 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,7 +1,7 @@
tqdm==4.29.1
json_tricks==3.13.2
torch==1.4.0
-opencv_python==4.0.0.21
+opencv_python==4.1.2.30
prettytable==0.7.2
scipy==1.4.1
torchvision==0.5.0
(.venv-3.8.9) PS C:\Users\yosuke\shared\work\voxelpose-pytorch> python -m pip install -r .\requirements.txt
Collecting tqdm==4.29.1
Using cached tqdm-4.29.1-py2.py3-none-any.whl (46 kB)
Collecting json_tricks==3.13.2
Using cached json_tricks-3.13.2.tar.gz (20 kB)
Requirement already satisfied: torch==1.4.0 in c:\users\yosuke\shared\work\voxelpose-pytorch\.venv-3.8.9\lib\site-packages (from -r .\requirements.txt (line 3)) (1.4.0)
Collecting opencv_python==4.1.2.30
Downloading opencv_python-4.1.2.30-cp38-cp38-win_amd64.whl (33.0 MB)
|████████████████████████████████| 33.0 MB 6.4 MB/s
Collecting prettytable==0.7.2
Downloading prettytable-0.7.2.zip (28 kB)
Collecting scipy==1.4.1
Downloading scipy-1.4.1-cp38-cp38-win_amd64.whl (31.0 MB)
|████████████████████████████████| 31.0 MB ...
Collecting torchvision==0.5.0
Downloading torchvision-0.5.0-cp38-cp38-win_amd64.whl (1.2 MB)
|████████████████████████████████| 1.2 MB 6.4 MB/s
Collecting numpy==1.16.2
Downloading numpy-1.16.2.zip (5.1 MB)
|████████████████████████████████| 5.1 MB ...
Collecting matplotlib==2.0.2
Downloading matplotlib-2.0.2.tar.gz (53.9 MB)
|████████████████████████████████| 53.9 MB 6.4 MB/s
ERROR: Command errored out with exit status 1:
command: 'C:\Users\yosuke\shared\work\voxelpose-pytorch\.venv-3.8.9\Scripts\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\yosuke\\AppData\\Local\\Temp\\pip-install-lphc8k5b\\matplotlib_86912f573a7c4cd7bae800dd594c0bff\\setup.py'"'"'; __file__='"'"'C:\\Users\\yosuke\\AppData\\Local\\Temp\\pip-install-lphc8k5b\\matplotlib_86912f573a7c4cd7bae800dd594c0bff\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\yosuke\AppData\Local\Temp\pip-pip-egg-info-pylcimci'
cwd: C:\Users\yosuke\AppData\Local\Temp\pip-install-lphc8k5b\matplotlib_86912f573a7c4cd7bae800dd594c0bff\
Complete output (72 lines):
============================================================================
Edit setup.cfg to change the build options
BUILDING MATPLOTLIB
matplotlib: yes [2.0.2]
python: yes [3.8.9 (tags/v3.8.9:a743f81, Apr 6 2021,
14:02:34) [MSC v.1928 64 bit (AMD64)]]
platform: yes [win32]
REQUIRED DEPENDENCIES AND EXTENSIONS
numpy: yes [version 1.20.2]
six: yes [six was not found.pip will attempt to install
it after matplotlib.]
dateutil: yes [dateutil was not found. It is required for date
axis support. pip/easy_install may attempt to
install it after matplotlib.]
functools32: yes [Not required]
subprocess32: yes [Not required]
pytz: yes [pytz was not found. pip will attempt to install
it after matplotlib.]
cycler: yes [cycler was not found. pip will attempt to
install it after matplotlib.]
tornado: yes [tornado was not found. It is required for the
WebAgg backend. pip/easy_install may attempt to
install it after matplotlib.]
pyparsing: yes [pyparsing was not found. It is required for
mathtext support. pip/easy_install may attempt to
install it after matplotlib.]
libagg: yes [pkg-config information for 'libagg' could not
be found. Using local copy.]
freetype: no [The C/C++ header for freetype (ft2build.h)
could not be found. You may need to install the
development package.]
png: no [The C/C++ header for png (png.h) could not be
found. You may need to install the development
package.]
qhull: yes [pkg-config information for 'qhull' could not be
found. Using local copy.]
OPTIONAL SUBPACKAGES
sample_data: yes [installing]
toolkits: yes [installing]
tests: no [skipping due to configuration]
toolkits_tests: no [skipping due to configuration]
OPTIONAL BACKEND EXTENSIONS
macosx: no [Mac OS-X only]
qt5agg: no [PyQt5 not found]
qt4agg: no [PySide not found; PyQt4 not found]
gtk3agg: no [Requires pygobject to be installed.]
gtk3cairo: no [Requires cairocffi or pycairo to be installed.]
gtkagg: no [Requires pygtk]
tkagg: yes [installing; run-time loading from Python Tcl /
Tk]
wxagg: no [requires wxPython]
gtk: no [Requires pygtk]
agg: yes [installing]
cairo: no [cairocffi or pycairo not found]
windowing: yes [installing]
OPTIONAL LATEX DEPENDENCIES
dvipng: no
ghostscript: no
latex: no
pdftops: no
OPTIONAL PACKAGE DATA
dlls: no [skipping due to configuration]
============================================================================
* The following required packages can not be built:
* freetype, png
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/f5/f0/9da3ef24ea7eb0ccd12430a261b66eca36b924aeef06e17147f9f9d7d310/matplotlib-2.0.2.tar.gz#sha256=0ffbc44faa34a8b1704bc108c451ecf87988f900ef7ce757b8e2e84383121ff1 (from https://pypi.org/simple/matplotlib/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement matplotlib==2.0.2 (from versions: 0.86, 0.86.1, 0.86.2, 0.91.0, 0.91.1, 1.0.1, 1.1.0, 1.1.1, 1.2.0, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1rc1, 1.4.1, 1.4.2, 1.4.3, 1.5.0, 1.5.1, 1.5.2, 1.5.3, 2.0.0b1, 2.0.0b2, 2.0.0b3, 2.0.0b4, 2.0.0rc1, 2.0.0rc2, 2.0.0, 2.0.1, 2.0.2, 2.1.0rc1, 2.1.0, 2.1.1, 2.1.2, 2.2.0rc1, 2.2.0, 2.2.2, 2.2.3, 2.2.4, 2.2.5, 3.0.0rc2, 3.0.0, 3.0.1, 3.0.2, 3.0.3, 3.1.0rc1, 3.1.0rc2, 3.1.0, 3.1.1, 3.1.2, 3.1.3, 3.2.0rc1, 3.2.0rc3, 3.2.0, 3.2.1, 3.2.2, 3.3.0rc1, 3.3.0, 3.3.1, 3.3.2, 3.3.3, 3.3.4, 3.4.0rc1, 3.4.0rc2, 3.4.0rc3, 3.4.0, 3.4.1)
ERROR: No matching distribution found for matplotlib==2.0.2
(.venv-3.8.9) PS C:\Users\yosuke\shared\work\voxelpose-pytorch>
ここでひっかかってるっぽい。
* The following required packages can not be built:
* freetype, png
matplotlibのバージョン指定を2.0.2から2.1.0に修正してみたら、インストールは通った。が、以下のエラーが発生。
(.venv-3.8.9) PS C:\Users\yosuke\shared\work\voxelpose-pytorch> python -m pip install -r .\requirements.txt
Collecting tqdm==4.29.1
Using cached tqdm-4.29.1-py2.py3-none-any.whl (46 kB)
Collecting json_tricks==3.13.2
Using cached json_tricks-3.13.2.tar.gz (20 kB)
Requirement already satisfied: torch==1.4.0 in c:\users\yosuke\shared\work\voxelpose-pytorch\.venv-3.8.9\lib\site-packages (from -r .\requirements.txt (line 3)) (1.4.0)
Collecting opencv_python==4.1.2.30
Using cached opencv_python-4.1.2.30-cp38-cp38-win_amd64.whl (33.0 MB)
Collecting prettytable==0.7.2
Using cached prettytable-0.7.2.zip (28 kB)
Collecting scipy==1.4.1
Using cached scipy-1.4.1-cp38-cp38-win_amd64.whl (31.0 MB)
Collecting torchvision==0.5.0
Using cached torchvision-0.5.0-cp38-cp38-win_amd64.whl (1.2 MB)
Collecting numpy==1.16.2
Using cached numpy-1.16.2.zip (5.1 MB)
Collecting matplotlib==2.2.5
Downloading matplotlib-2.2.5-cp38-cp38-win_amd64.whl (9.0 MB)
|████████████████████████████████| 9.0 MB 6.4 MB/s
Collecting easydict==1.9
Downloading easydict-1.9.tar.gz (6.4 kB)
Collecting PyYAML==5.4
Downloading PyYAML-5.4-cp38-cp38-win_amd64.whl (213 kB)
|████████████████████████████████| 213 kB ...
Collecting tensorboardX==2.1
Downloading tensorboardX-2.1-py2.py3-none-any.whl (308 kB)
|████████████████████████████████| 308 kB ...
INFO: pip is looking at multiple versions of torch to determine which version is compatible with other requirements. This could take a while.
ERROR: Exception:
Traceback (most recent call last):
File "C:\Users\yosuke\shared\work\voxelpose-pytorch\.venv-3.8.9\lib\site-packages\pip\_internal\cli\base_command.py", line 180, in _main
status = self.run(options, args)
File "C:\Users\yosuke\shared\work\voxelpose-pytorch\.venv-3.8.9\lib\site-packages\pip\_internal\cli\req_command.py", line 204, in wrapper
return func(self, options, args)
File "C:\Users\yosuke\shared\work\voxelpose-pytorch\.venv-3.8.9\lib\site-packages\pip\_internal\commands\install.py", line 318, in run
requirement_set = resolver.resolve(
File "C:\Users\yosuke\shared\work\voxelpose-pytorch\.venv-3.8.9\lib\site-packages\pip\_internal\resolution\resolvelib\resolver.py", line 127, in resolve
result = self._result = resolver.resolve(
File "C:\Users\yosuke\shared\work\voxelpose-pytorch\.venv-3.8.9\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 473, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "C:\Users\yosuke\shared\work\voxelpose-pytorch\.venv-3.8.9\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 384, in resolve
raise ResolutionTooDeep(max_rounds)
pip._vendor.resolvelib.resolvers.ResolutionTooDeep: 2000000
(.venv-3.8.9) PS C:\Users\yosuke\shared\work\voxelpose-pytorch>
pip uninstall torchしてから再度wheelのURLからpip installしたが、状況変わらず。
torchの行をrequirements.txtから消して、再チャレンジ。以下の内容で修正してる。
(.venv-3.8.9) PS C:\Users\yosuke\shared\work\voxelpose-pytorch> git diff
diff --git a/requirements.txt b/requirements.txt
index fc4f746..f96d4de 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,12 +1,11 @@
tqdm==4.29.1
json_tricks==3.13.2
-torch==1.4.0
-opencv_python==4.0.0.21
+opencv_python==4.1.2.30
prettytable==0.7.2
scipy==1.4.1
torchvision==0.5.0
numpy==1.16.2
-matplotlib==2.0.2
+matplotlib==2.2.5
easydict==1.9
PyYAML==5.4
tensorboardX==2.1
(.venv-3.8.9) PS C:\Users\yosuke\shared\work\voxelpose-pytorch>
opencvのバージョンをあげた関係で、numpyのバージョンが合わなくなってた。
(.venv-3.8.9) PS C:\Users\yosuke\shared\work\voxelpose-pytorch> python -m pip install -r .\requirements.txt
Collecting tqdm==4.29.1
Using cached tqdm-4.29.1-py2.py3-none-any.whl (46 kB)
Collecting json_tricks==3.13.2
Using cached json_tricks-3.13.2.tar.gz (20 kB)
Collecting opencv_python==4.1.2.30
Using cached opencv_python-4.1.2.30-cp38-cp38-win_amd64.whl (33.0 MB)
Collecting prettytable==0.7.2
Using cached prettytable-0.7.2.zip (28 kB)
Collecting scipy==1.4.1
Using cached scipy-1.4.1-cp38-cp38-win_amd64.whl (31.0 MB)
Collecting torchvision==0.5.0
Using cached torchvision-0.5.0-cp38-cp38-win_amd64.whl (1.2 MB)
Collecting numpy==1.16.2
Using cached numpy-1.16.2.zip (5.1 MB)
Collecting matplotlib==2.2.5
Using cached matplotlib-2.2.5-cp38-cp38-win_amd64.whl (9.0 MB)
Collecting easydict==1.9
Using cached easydict-1.9.tar.gz (6.4 kB)
Collecting PyYAML==5.4
Using cached PyYAML-5.4-cp38-cp38-win_amd64.whl (213 kB)
Collecting tensorboardX==2.1
Using cached tensorboardX-2.1-py2.py3-none-any.whl (308 kB)
INFO: pip is looking at multiple versions of json-tricks to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of <Python from Requires-Python> to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of tqdm to determine which version is compatible with other requirements. This could take a while.
ERROR: Cannot install -r .\requirements.txt (line 3) and numpy==1.16.2 because these package versions have conflicting dependencies.
The conflict is caused by:
The user requested numpy==1.16.2
opencv-python 4.1.2.30 depends on numpy>=1.17.3
To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies
numpyのバージョン指定を上げて、再チャレンジ。インストールは、なんとかとおった。が、これで果たしてこの後がうまくいくんだろうかw
(.venv-3.8.9) PS C:\Users\yosuke\shared\work\voxelpose-pytorch> git diff
diff --git a/requirements.txt b/requirements.txt
index fc4f746..453fd5f 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,12 +1,11 @@
tqdm==4.29.1
json_tricks==3.13.2
-torch==1.4.0
-opencv_python==4.0.0.21
+opencv_python==4.1.2.30
prettytable==0.7.2
scipy==1.4.1
torchvision==0.5.0
-numpy==1.16.2
-matplotlib==2.0.2
+numpy==1.17.3
+matplotlib==2.2.5
easydict==1.9
PyYAML==5.4
tensorboardX==2.1
(.venv-3.8.9) PS C:\Users\yosuke\shared\work\voxelpose-pytorch> python -m pip install -r .\requirements.txt
Collecting tqdm==4.29.1
Using cached tqdm-4.29.1-py2.py3-none-any.whl (46 kB)
Collecting json_tricks==3.13.2
Using cached json_tricks-3.13.2.tar.gz (20 kB)
Collecting opencv_python==4.1.2.30
Using cached opencv_python-4.1.2.30-cp38-cp38-win_amd64.whl (33.0 MB)
Collecting prettytable==0.7.2
Collecting scipy==1.4.1
Using cached scipy-1.4.1-cp38-cp38-win_amd64.whl (31.0 MB)
Collecting torchvision==0.5.0
Using cached torchvision-0.5.0-cp38-cp38-win_amd64.whl (1.2 MB)
Collecting numpy==1.17.3
Downloading numpy-1.17.3-cp38-cp38-win_amd64.whl (12.7 MB)
|████████████████████████████████| 12.7 MB 6.4 MB/s
Collecting matplotlib==2.2.5
Using cached matplotlib-2.2.5-cp38-cp38-win_amd64.whl (9.0 MB)
Collecting easydict==1.9
Using cached easydict-1.9.tar.gz (6.4 kB)
Collecting PyYAML==5.4
Using cached PyYAML-5.4-cp38-cp38-win_amd64.whl (213 kB)
Collecting tensorboardX==2.1
Using cached tensorboardX-2.1-py2.py3-none-any.whl (308 kB)
Collecting six
Using cached six-1.15.0-py2.py3-none-any.whl (10 kB)
Requirement already satisfied: torch==1.4.0 in c:\users\yosuke\shared\work\voxelpose-pytorch\.venv-3.8.9\lib\site-packages (from torchvision==0.5.0->-r .\requirements.txt (line 6)) (1.4.0)
Collecting pillow>=4.1.1
Downloading Pillow-8.2.0-cp38-cp38-win_amd64.whl (2.2 MB)
|████████████████████████████████| 2.2 MB ...
Collecting python-dateutil>=2.1
Using cached python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
Collecting cycler>=0.10
Using cached cycler-0.10.0-py2.py3-none-any.whl (6.5 kB)
Collecting pytz
Using cached pytz-2021.1-py2.py3-none-any.whl (510 kB)
Collecting pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1
Using cached pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
Collecting kiwisolver>=1.0.1
Downloading kiwisolver-1.3.1-cp38-cp38-win_amd64.whl (51 kB)
|████████████████████████████████| 51 kB ...
Collecting protobuf>=3.8.0
Downloading protobuf-3.15.8-py2.py3-none-any.whl (173 kB)
|████████████████████████████████| 173 kB ...
Building wheels for collected packages: json-tricks, prettytable, easydict
Building wheel for json-tricks (setup.py) ... done
Created wheel for json-tricks: filename=json_tricks-3.13.2-py2.py3-none-any.whl size=22859 sha256=0b163c6fd43a6c8261bc814d7ec8d8ddcab26e158d68f10de76fb032b58f6054
Stored in directory: c:\users\yosuke\appdata\local\pip\cache\wheels\03\41\7c\36254e9d0fc120616424b6ad94597835b26f58bfacaa4088b9
Building wheel for prettytable (setup.py) ... done
Created wheel for prettytable: filename=prettytable-0.7.2-py3-none-any.whl size=13699 sha256=9eaf9bfd48a451e0415e1b6f136b71bcd6c9097b1d9f709d77757f17c29ec575
Stored in directory: c:\users\yosuke\appdata\local\pip\cache\wheels\48\6d\77\9517cb933af254f51a446f1a5ec9c2be3e45f17384940bce68
Building wheel for easydict (setup.py) ... done
Created wheel for easydict: filename=easydict-1.9-py3-none-any.whl size=6350 sha256=fdb65c4c5f096264c9d21315435fb244a095abf6e85487338d91580a6c447cd7
Stored in directory: c:\users\yosuke\appdata\local\pip\cache\wheels\d3\e0\e9\305e348717e399665119bd012510d51ff4f22d709ff60c3096
Successfully built json-tricks prettytable easydict
Installing collected packages: six, pytz, python-dateutil, pyparsing, protobuf, pillow, numpy, kiwisolver, cycler, tqdm, torchvision, tensorboardX, scipy, PyYAML, prettytable, opencv-python, matplotlib, json-tricks, easydict
Successfully installed PyYAML-5.4 cycler-0.10.0 easydict-1.9 json-tricks-3.13.2 kiwisolver-1.3.1 matplotlib-2.2.5 numpy-1.17.3 opencv-python-4.1.2.30 pillow-8.2.0 prettytable-0.7.2 protobuf-3.15.8 pyparsing-2.4.7 python-dateutil-2.8.1 pytz-2021.1 scipy-1.4.1 six-1.15.0 tensorboardX-2.1 torchvision-0.5.0 tqdm-4.29.1
pipdeptreeというパッケージの依存関係チェッカーをつかってみる。特に警告等出てはいないっぽい?大丈夫なのかな??
(.venv-3.8.9) PS C:\Users\yosuke\shared\work\voxelpose-pytorch> python -m pip freeze
cycler==0.10.0
easydict==1.9
json-tricks==3.13.2
kiwisolver==1.3.1
matplotlib==2.2.5
numpy==1.17.3
opencv-python==4.1.2.30
Pillow==8.2.0
prettytable==0.7.2
protobuf==3.15.8
pyparsing==2.4.7
python-dateutil==2.8.1
pytz==2021.1
PyYAML==5.4
scipy==1.4.1
six==1.15.0
tensorboardX==2.1
torch @ https://download.pytorch.org/whl/cu101/torch-1.4.0-cp38-cp38-win_amd64.whl
torchvision==0.5.0
tqdm==4.29.1
(.venv-3.8.9) PS C:\Users\yosuke\shared\work\voxelpose-pytorch> python -m pipdeptree
easydict==1.9
json-tricks==3.13.2
matplotlib==2.2.5
- cycler [required: >=0.10, installed: 0.10.0]
- six [required: Any, installed: 1.15.0]
- kiwisolver [required: >=1.0.1, installed: 1.3.1]
- numpy [required: >=1.7.1, installed: 1.17.3]
- pyparsing [required: >=2.0.1,!=2.1.6,!=2.1.2,!=2.0.4, installed: 2.4.7]
- python-dateutil [required: >=2.1, installed: 2.8.1]
- six [required: >=1.5, installed: 1.15.0]
- pytz [required: Any, installed: 2021.1]
- six [required: >=1.10, installed: 1.15.0]
opencv-python==4.1.2.30
- numpy [required: >=1.17.3, installed: 1.17.3]
pipdeptree==2.0.0
- pip [required: >=6.0.0, installed: 21.1.1]
prettytable==0.7.2
PyYAML==5.4
scipy==1.4.1
- numpy [required: >=1.13.3, installed: 1.17.3]
setuptools==56.0.0
tensorboardX==2.1
- numpy [required: Any, installed: 1.17.3]
- protobuf [required: >=3.8.0, installed: 3.15.8]
- six [required: >=1.9, installed: 1.15.0]
- six [required: Any, installed: 1.15.0]
torchvision==0.5.0
- numpy [required: Any, installed: 1.17.3]
- pillow [required: >=4.1.1, installed: 8.2.0]
- six [required: Any, installed: 1.15.0]
- torch [required: ==1.4.0, installed: 1.4.0]
tqdm==4.29.1
wheel==0.36.2
(.venv-3.8.9) PS C:\Users\yosuke\shared\work\voxelpose-pytorch>
長くなったのでこのスクラップはここまでにして、続きはこっちでやる。