# Need help installing pyq

**URL:** <https://forum.kx.com/t/need-help-installing-pyq/13624>\
**Category:** Community Support\
**Tags:** imported, kdb-and-q\
**Created:** [June 17, 2021, 12:00am UTC](https://forum.kx.com/t/need-help-installing-pyq/13624 "2021-06-17T00:00:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lkerr2](https://sea2.discourse-cdn.com/flex002/user_avatar/forum.kx.com/lkerr2/32/57_2.png) [@lkerr2](https://forum.kx.com/u/lkerr2)\
**Post date:** [June 17, 2021, 12:00am UTC](https://forum.kx.com/t/need-help-installing-pyq/13624/1 "2021-06-17T00:00:00Z")

</div>

[https://learninghub.kx.com/forums/topic/need-help-installing-pyq](https://learninghub.kx.com/forums/topic/need-help-installing-pyq)

I am new to KDB+ and q. I want to install it in my google cloud Debian Buster Linux. I have tried many things to install the pyq extension but didnt find a way to install it successfully. Here are specifications and methods I have tried.

1. uname -m showing x86\_64

2. I have installed KDB+ 64 bit version. By using command q directly in terminal it gives following info.

gdrive\_bckup\_2@instance-3:~$ q  
KDB+ 4.0 2021.04.26 Copyright (C) 1993-2021 Kx Systems  
l64/ 8(16)core 16043MB gdrive\_bckup\_2 instance-3 10.148.0.3 EXPIRE 2022.06.12 [vishveshup@gmail.com](mailto:vishveshup@gmail.com) KOD #4176665

q)til 10  
0 1 2 3 4 5 6 7 8 9  
q)

1. using python 3.7

gdrive\_bckup\_2@instance-3:~$ python --version  
Python 3.7.3

1. python version is 64 bit

gdrive\_bckup\_2@instance-3:~$ python  
Python 3.7.3 (default, Jan 22 2021, 20:04:44)  
[GCC 8.3.0] on linux  
Type “help”, “copyright”, “credits” or “license” for more information.

> > > import struct  
> > > print(struct.calcsize(“P”)\*8)  
> > > 64

1. I tried to install / update all of three GNU make, gcc and clang.

2. Then I tried pip3 install pyq in normal terminal with and without sudo (pip install .. gives an error “bash: pip: command not found”, so mostly I am using pip3 install ..). But unsuccessful.

[https://drive.google.com/file/d/1tSnxHIiaid7lDxRaG1\_tmRx\_7iHTCoUC/view?usp=sharing](https://drive.google.com/file/d/1tSnxHIiaid7lDxRaG1_tmRx_7iHTCoUC/view?usp=sharing")

&nbsp;

1. Then I followed this guide [https://code.kx.com/q/interfaces/pyq/install/#installing-into-a-virtual-environment](https://code.kx.com/q/interfaces/pyq/install/#installing-into-a-virtual-environment") and created virtualenv but didnt worked. I also tried venv but that also not worked.

[https://drive.google.com/file/d/1GVQOw3WhguvVFC2Bryi\_gGpoeHrH-WCf/view?usp=sharing](https://drive.google.com/file/d/1GVQOw3WhguvVFC2Bryi_gGpoeHrH-WCf/view?usp=sharing")

&nbsp;

I tried with anaconda and it also not working.

[https://drive.google.com/file/d/1Mub4ffVk7CcVS1XJkh24pFYWnNPwohNv/view?usp=sharing](https://drive.google.com/file/d/1Mub4ffVk7CcVS1XJkh24pFYWnNPwohNv/view?usp=sharing")

&nbsp;

To help keep the question clear I have attached all output of error in the txt file via google drive & also captured snip of all files and append them into single png file attached here. Kindly check them for more info.

&nbsp;

Please guide me how to install pyq in my system. Thank you.

&nbsp;

Previously I have posted this by mistake in q-bies section. Please close that post if posted into irrelevant section else close this. Thanks again !

---

<div class="post-metadata">

**Author:** ![cmccarthy1](https://avatars.discourse-cdn.com/v4/letter/c/dec6dc/32.png) [@cmccarthy1](https://forum.kx.com/u/cmccarthy1)\
**Post date:** [September 14, 2021, 12:00am UTC](https://forum.kx.com/t/need-help-installing-pyq/13624/2 "2021-09-14T00:00:00Z")

</div>

Hi,

I don’t know if this is still an issue but, in step 7 your installation indicates that QHOME could not be found? can you run

export QHOME=/path/to/q/folder

and see if that fixes the issue?

All the best,

Conor
