# Building Pytorch wheel for ROCM version

**URL:** <https://discuss.pytorch.org/t/building-pytorch-wheel-for-rocm-version/63886>\
**Category:** Uncategorized\
**Created:** [December 12, 2019, 4:41pm UTC](https://discuss.pytorch.org/t/building-pytorch-wheel-for-rocm-version/63886 "2019-12-12T16:41:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ivallesp](https://discuss.pytorch.org/letter_avatar_proxy/v4/letter/i/e56c9b/32.png) [@ivallesp](https://discuss.pytorch.org/u/ivallesp)\
**Post date:** [December 12, 2019, 4:41pm UTC](https://discuss.pytorch.org/t/building-pytorch-wheel-for-rocm-version/63886/1 "2019-12-12T16:41:09Z")

</div>

Hi,

I am compiling Pytorch inside a Docker container in order to make it work with ROCM. I have been successful until now, everyting works well. However, I would like to build the wheel when I run `.jenkins/pytorch/build.sh` but instead, it installs pytorch in the system version of Python and there’s no trace of the whl file in my pytorch directory. Any clue?

Rationale: **I’d like to handle my dependencies with poetry** , and I’d like to point to the wheel in the requirements…

Thanks

---

<div class="post-metadata">

**Author:** ![tom](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/tom/32/3162_2.png) [@tom](https://discuss.pytorch.org/u/tom)\
**Post date:** [April 2, 2020, 8:04pm UTC](https://discuss.pytorch.org/t/building-pytorch-wheel-for-rocm-version/63886/2 "2020-04-02T20:04:09Z")

</div>

Hi,

sorry for the late reply! You can use `python3 setup.py bdist_wheel` to build wheels.  
I put up a [recipe for building PyTorch on ROCm](https://lernapparat.de/pytorch-rocm/) on my blog.

Best regards

Thomas
