So I'm in the PyQT folder that I just downloaded and unzipped, and am trying to run configure.py. I'm doing this
alexandermoreno$ python configure.py -q /users/alexandermoreno/QT/5.2.1/clang_64/bin/qmake -d /Library/Python/2.7/site-packages/ --use-arch x86_64
giving me the following error:
-bash: python configure.py -q : command not found
However, when I run python configure.py just to see its output, I get:
Error: Make sure you have a working Qt qmake on your PATH or use the -q
argument to explicitly specify a working Qt qmake.
So it's saying to use the -q file, but then when I use it, it gives me that the command is not found.
Related
I just installed Python 3.10.1 on Windows 11 and while following some tutorials I started with the basics of making sure everything looks right in the command prompt. I also added all the necessary data into the PATH variable.
When I run the simple command pip, the result is "Fatal error in launcher: Unable to create process using '"C:\Python310\python.exe" "C:\Python310\Scripts\pip.exe" ': The system cannot find the file specified."
However, when I run the command py -m pip I get the results I would expect when running pip.
Is there a way to fix the original command, or is this a new Windows 11 or Python 3.10.1 update of syntax?
I have a python script which I need to bundle it into a single exe file using pyinstaller. While running the command 'pyinstaller –-onefile –-windowed myscript.py' through command prompt. I got the error 'Fatal error: PyInstaller does not include a pre-compiled bootloader for your platform' after the line 30389: INFO: Building EXE from EXE-00.toc.
And on googling I found that we need perform certain steps as a pre-requisite to build bootloader as follows,
Step 1: git clone https://github.com/pyinstaller/pyinstaller
Step 2: cd pyinstaller/bootloader
Step 3: python ./waf distclean all
On performing step 3, I got the error like 'Could not configure a C compiler'
Could anyone help me to resolve the same.
you have to install c compiler
here is the link
https://visualstudio.microsoft.com/vs/features/cplusplus/
run ' python -m pip install --upgrade google-assistant-sdk[samples] ',it show below error message:
Complete output from command python setup.py egg_info:
unable to execute 'arm-poky-linux-gnueabi-gcc': No such file or directory
unable to execute 'arm-poky-linux-gnueabi-gcc': No such file or directory
No working compiler found, or bogus compiler options passed to
the compiler from Python's standard "distutils" module. See
the error messages above. Likely, the problem is not related
to CFFI but generic to the setup.py of any Python package that
tries to compile C code. (Hints: on OS/X 10.8, for errors about
-mno-fused-madd see http://stackoverflow.com/questions/22313407/
Otherwise, see https://wiki.python.org/moin/CompLangPython or
the IRC channel #python on irc.freenode.net.)
I've installed Caffe on my Ubuntu 14.04 machine. the make runtest runs perfectly fine with 581 tests passed. I'm trying to work with the command line and python interface and getting the following two errors:
Command Line Interface: When I try to run the command caffe, I'm getting the following error:
No command 'caffe' found, did you mean: Command 'caff' from package
'signing-party' (universe)
caffe: command not found
Python Interface: When I run the command make pycaffe, I'm getting the following error:
CXX/LD -o python/caffe/_caffe.so python/caffe/_caffe.cpp
python/caffe/_caffe.cpp:9:31: fatal error: numpy/arrayobject.h: No such file
or directory
#include <numpy/arrayobject.h>
^
compilation terminated.
make: *** [python/caffe/_caffe.so] Error 1
Make sure that numpy is installed correctly and the path is mentioned to detect the newly installed library. The steps are provided in Caffe website itself.
For the 'Caffe' command to work, you will have to step into the folder where the 'Caffe' executable is created and then try running the executable through the terminal.
Regarding the second problem you had, I had the same problem, I solved uncommenting this line inside the Makefile.config:
# Decomment le line uncommented below:
# Homebrew installs numpy in a non standard path (keg only)
PYTHON_INCLUDE += $(dir $(shell python -c 'import numpy.core; print(numpy.core.__file__)'))/include
# PYTHON_LIB += $(shell brew --prefix numpy)/lib
I've downloaded SSH 1.7.14 from this link: https://pypi.python.org/pypi/ssh/1.7.14
It is a .tar.gz file. I extracted the files out and tried to set up the module for my Python 2.7.
I typed in the command from a cmd window as follows:
python C:\Users\TestUser\Downloads\ssh-1.7.14\setup.py build
But I've got the error message below:
running build
running build_py
error: package directory 'ssh' does not exist
So I tried another command argument:
python C:\Users\TestUser\Downloads\ssh-1.7.14\setup.py install
However, I've got following error:
running install
running build
running build_py
error: package directory 'ssh' does not exist
So I am quite confused. How can I set up this module and run it correctly?
Thanks.
As the author states, ssh is a fork of paramiko that has meanwhile been incorporated into paramiko, so you should try to install it instead, and update your scripts to reflect the change. Since you're on windows, you'll need to install dependencies by hand (notably, pycrypto)