python-sip

Location of global libraries for Python on Mac?

混江龙づ霸主 提交于 2019-11-28 05:27:51
I'm fighting with installation SIP for Python on Mac OS X. Finally after compilation and installation when I run console form folder of SIP (locally) I can import sipconfig, but when I`m in other folder I cant - there is no module called sipconfig. My question is - Where is folder to which I have to copy modules if I want to have them available globally (like "import os"), or how I can check it, because location "/Library/Python/2.6/site-packages/" doesn`t work. diatoid Try checking your python's sys.path list with: import sys print(sys.path) A simple method I use is to ask a module where it

How to check if a library is 32bit/64bit built on Mac OS X?

蓝咒 提交于 2019-11-27 17:39:44
问题 I'm having some trouble in using PyQt/SIP. I guess the SIP is compiled into 64bit, but Python has some problem with finding it. File "qtdemo.py", line 46, in import sip ImportError: dlopen(/Library/Python/2.6/site-packages/sip.so, 2): no suitable image found. Did find: /Library/Python/2.6/site-packages/sip.so: mach-o, but wrong architecture How do I know if a library (so/dylib) is 32bit or 64bit? How do I know if my Python is 32bit or 64bit? 回答1: The file tool can be used to identify

How to install SIP & PyQT on windows 7

♀尐吖头ヾ 提交于 2019-11-27 01:22:18
I'm a newbie to Python environment & really struggling to install SIP & PyQt on my Win 7 machine. This is what I've done so far, I've downloaded SIP-4.16.9 and extracted files from the zip folder The extracted folder is then copied to C:\Python34\Lib Launched a command prompt(cmd) and changed path to C:\Python34\Lib Then when I entered python configure.py at C:\Python34\Lib and I get the response as below At this stage I'm not sure whether it's been installed successfully, to verify I looked for SIP.h at C:\Python34\Include (according to above response - in red), but I cant find any such

How to install SIP & PyQT on windows 7

↘锁芯ラ 提交于 2019-11-26 09:38:08
问题 I\'m a newbie to Python environment & really struggling to install SIP & PyQt on my Win 7 machine. This is what I\'ve done so far, I\'ve downloaded SIP-4.16.9 and extracted files from the zip folder The extracted folder is then copied to C:\\Python34\\Lib Launched a command prompt(cmd) and changed path to C:\\Python34\\Lib Then when I entered python configure.py at C:\\Python34\\Lib and I get the response as below At this stage I\'m not sure whether it\'s been installed successfully, to