# Help setting up the environment to contribute to CPython

**URL:** <https://discuss.python.org/t/help-setting-up-the-environment-to-contribute-to-cpython/10131>\
**Category:** Core Development\
**Tags:** help\
**Created:** [August 12, 2021, 8:40pm UTC](https://discuss.python.org/t/help-setting-up-the-environment-to-contribute-to-cpython/10131 "2021-08-12T20:40:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tech-Matt](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/tech-matt/32/4724_2.png) [@Tech-Matt](https://discuss.python.org/u/Tech-Matt)\
**Post date:** [August 12, 2021, 8:40pm UTC](https://discuss.python.org/t/help-setting-up-the-environment-to-contribute-to-cpython/10131/1 "2021-08-12T20:40:15Z")

</div>

Hi guys. I’m following the [Python Developer’s guide](https://devguide.python.org/) to start contributing to CPython as a beginner. I’m stuck upon an issue about setting up the environment and I can’t just understand what’s wrong.  
So I have basically forked the CPython repository and I have cloned it on my local pc. Then I followed the instructions on the “Getting Started” section of the guide (I’m on Windows) and I have to verify that all the dependencies required are installed.  
So I opened a cmd prompt and entered:  
`PCbuild\build.bat`

It seems like everything is installed correctly, except for this:  
`Cannot locate MSBuild.exe on PATH or as MSBUILD variable`

I’ve searched on Google and found out that I had to add the address of this app to PATH, and I did it. The truth is nothing changed and I still get the same error.

In particular, I added these two addresses:

```auto
C:\Windows\Microsoft.NET\Framework\v4.0.30319
C:\Windows\Microsoft.NET\Framework64\v4.0.30319

```

(Because I found MSBuild inside those folders)

So, What Am I doing wrong?

---

<div class="post-metadata">

**Author:** ![zware](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/zware/32/58_2.png) [@zware](https://discuss.python.org/u/zware)\
**Post date:** [August 12, 2021, 9:05pm UTC](https://discuss.python.org/t/help-setting-up-the-environment-to-contribute-to-cpython/10131/2 "2021-08-12T21:05:35Z")

</div>

Hello and welcome 🙂

It’s been a long time since I’ve gone through this setup process, so I am rather shooting in the dark here. But you shouldn’t have to add anything to PATH yourself. You may need to reboot, or at least reopen cmd.exe for variables set by the Visual Studio installer to appear correctly. Also, make sure you selected everything that looked Python-related in the VS installer, and note that it does need to be Visual Studio 2019, not Visual Studio Code.

---

<div class="post-metadata">

**Author:** ![brettcannon](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/brettcannon/32/34895_2.png) [@brettcannon](https://discuss.python.org/u/brettcannon)\
**Post date:** [August 12, 2021, 9:10pm UTC](https://discuss.python.org/t/help-setting-up-the-environment-to-contribute-to-cpython/10131/3 "2021-08-12T21:10:37Z")

</div>

Another option (depending on your motivation), is to use WSL or Docker and develop under Linux. And if you do happen to be a VS Code user we have a devcontainer defined which should have the tooling ready to go.

---

<div class="post-metadata">

**Author:** ![Tech-Matt](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/tech-matt/32/4724_2.png) [@Tech-Matt](https://discuss.python.org/u/Tech-Matt)\
**Post date:** [August 13, 2021, 4:47pm UTC](https://discuss.python.org/t/help-setting-up-the-environment-to-contribute-to-cpython/10131/4 "2021-08-13T16:47:18Z")

</div>

Okay, thank you very much, guys.
