如何在conda 虚拟环境中安装thop?
在conda虚拟环境中安装thop:pip3 install --upgrade git+https://github.com/Lyken17/pytorch-OpCounter.git
·
在conda虚拟环境中安装thop:
在ubuntu16.04下亲测成功,首先要进入到相应的虚拟环境,
例如虚拟环境为my_env
source activate my_env
然后再接着输入下面的命令。
pip3 install --upgrade git+https://github.com/Lyken17/pytorch-OpCounter.git
更多推荐


所有评论(0)