# Question on Upgrading PYNQ using a source distribution?

**URL:** https://discuss.pynq.io/t/question-on-upgrading-pynq-using-a-source-distribution/1605
**Category:** Support
**Created:** [August 3, 2020, 2:21pm UTC](https://discuss.pynq.io/t/question-on-upgrading-pynq-using-a-source-distribution/1605 "2020-08-03T14:21:27Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Reedom](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/reedom/32/966_2.png) [@Reedom](https://discuss.pynq.io/u/Reedom)
#### Post date: [August 3, 2020, 2:21pm UTC](https://discuss.pynq.io/t/question-on-upgrading-pynq-using-a-source-distribution/1605/1 "2020-08-03T14:21:28Z")

</div>

PYNQ v2.4  
Board: ZCU102

Hi,

I currently am using v2.4 and want to upgrade it to v2.5 using the source distribution file.

I am a bit confused with @gnatale answer on updating it with the 2.5 source distribution.

> [@Pip3 install --upgrade error](https://discuss.pynq.io/t/pip3-install-upgrade-error/631):
>
> PYNQ version (e.g. v2.3): Board name (e.g. Pynq-Z2): Description: sudo pip3 install --upgrade git+https://github.com/Xilinx/PYNQ.git I get the error as follows: In file included from \_xiic/xiic\_g.c:40:0: common/armv7l/xparameters.h:19:10: fatal error: xparameters\_ps.h: No such file or directory #include “xparameters\_ps.h” ^ ~~~~~~~~~~~~~~~~~ compilation terminated Is anyone meet this too? How to compile the c or cpp project?

After downloading the sdist file, would we keep it on the host machine or move it to board through the Samba share folder?

Is there a specific folder on the PYNQ image that we should move it to through the Samba share folder system?

Now from reading the documentation below, I do believe I understand how to run the sdist file to upgrade my PYNQ version to 2.5 using the command below. Am I correct about this?  
[https://pynq.readthedocs.io/en/latest/overlay\_design\_methodology/python\_packaging.html](https://pynq.readthedocs.io/en/latest/overlay_design_methodology/python_packaging.html)  
 ![image](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/2X/f/fa066e793cf2d5f0ff437cd0ac20e861fc149942.png)

Also, this might be really simpleminded. If I wanted the v2.5 PYNQ packages, why not just copy and replace those PYNQ packages onto the board through the Samba share folder system?

Appreciate the help!

---

<div class="post-metadata">

### Author: ![rock](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/rock/32/32_2.png) [@rock](https://discuss.pynq.io/u/rock)
#### Post date: [August 17, 2020, 4:31pm UTC](https://discuss.pynq.io/t/question-on-upgrading-pynq-using-a-source-distribution/1605/2 "2020-08-17T16:31:54Z")

</div>

Source distribution is supported after 2.5 so you probably do not want to do it this way. I think reburning the image is the right way to do.

---

<div class="post-metadata">

### Author: ![Reedom](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/reedom/32/966_2.png) [@Reedom](https://discuss.pynq.io/u/Reedom)
#### Post date: [August 17, 2020, 4:56pm UTC](https://discuss.pynq.io/t/question-on-upgrading-pynq-using-a-source-distribution/1605/3 "2020-08-17T16:56:08Z")

</div>

If I reburn the image to 2.5, then will I have to rebuild the Linux VM environment to be suitable to PYNQ v2.5.

---

<div class="post-metadata">

### Author: ![rock](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/rock/32/32_2.png) [@rock](https://discuss.pynq.io/u/rock)
#### Post date: [August 17, 2020, 4:57pm UTC](https://discuss.pynq.io/t/question-on-upgrading-pynq-using-a-source-distribution/1605/4 "2020-08-17T16:57:48Z")

</div>

Yes, but that process should be simplified by the vagrant file we provided.
