# Error while installing the Simple ITK manually

**URL:** https://discourse.itk.org/t/error-while-installing-the-simple-itk-manually/2479
**Category:** Engineering
**Created:** [December 5, 2019, 6:02pm UTC](https://discourse.itk.org/t/error-while-installing-the-simple-itk-manually/2479 "2019-12-05T18:02:25Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Felippe\_Trigueiro\_An](https://discourse.itk.org/user_avatar/discourse.itk.org/felippe_trigueiro_an/32/1015_2.png) [@Felippe\_Trigueiro\_An](https://discourse.itk.org/u/Felippe_Trigueiro_An)
#### Post date: [December 5, 2019, 6:02pm UTC](https://discourse.itk.org/t/error-while-installing-the-simple-itk-manually/2479/1 "2019-12-05T18:02:25Z")

</div>

I’m trying to install the SimpleITK manually according this link [Building Simple ITK manually](https://simpleitk.readthedocs.io/en/master/Documentation/docs/source/building.html#building-manually) because I need to run the Simple ITK in C++ using the qmake, but I’m getting this error:

```
CMake Error at PythonVirtualEnvInstall.cmake:57 (message):
Installation of SimpleITK into Python virutal enviroment failed.

/home/felippe/tmp_ting/SimpleITK-build/Testing/Installation/PythonVirtualenv/bin/python:
  can't open file
  '/home/felippe/tmp_ting/SimpleITK-build/Wrapping/Python/Packaging/setup.py':
  [Errno 2] No such file or directory

```

I have already installed all the prerequisites (Gtest, ITK, Swig, Lua and Cmake) and the SimpleITK for python according to this link [Compilations and instalations from github](https://github.com/SimpleITK/SimpleITKPythonPackage#compilations-and-installation-from-github), but I’m still having this problem. So, how to solve this?

Ps: If there is a way of not installing the simpleITK for python it will be also nice because I just need the SimpleITK for C++.

Thanks.

---

<div class="post-metadata">

### Author: ![blowekamp](https://discourse.itk.org/user_avatar/discourse.itk.org/blowekamp/32/79_2.png) [@blowekamp](https://discourse.itk.org/u/blowekamp)
#### Post date: [December 5, 2019, 6:10pm UTC](https://discourse.itk.org/t/error-while-installing-the-simple-itk-manually/2479/2 "2019-12-05T18:10:53Z")

</div>

Please look at the CMake variable “WRAP\_PYTHON”. If you set it to OFF python will not be compiled. Additionally, if you set “WRAP\_DEFAULT” to OFF on the first configuration no wrapping will occur and you will not seed SWIG either.

---

<div class="post-metadata">

### Author: ![Felippe\_Trigueiro\_An](https://discourse.itk.org/user_avatar/discourse.itk.org/felippe_trigueiro_an/32/1015_2.png) [@Felippe\_Trigueiro\_An](https://discourse.itk.org/u/Felippe_Trigueiro_An)
#### Post date: [December 6, 2019, 5:19am UTC](https://discourse.itk.org/t/error-while-installing-the-simple-itk-manually/2479/3 "2019-12-06T05:19:23Z")

</div>

I did this using WRAP\_DEFAULT, but I’ve got some other problems: (I) The CMAKE didn’t generate the include files but generated the .lib(when I compiled with SuperBuild the include were at /SimpleITK-Build/include); (II) For solving this I tried to use the new .lib files with the old include, but the qt return to me the same ‘undefined reference to …’ errors.

So, how to solve this?

Thanks.
