command 'gcc' failed with exit status 1

I tried all answers but I can't solve the problem of installing Biopython package I installed Mingw , but when I try to install the package : python setup.py install I get the following error: ...

Cannot install numpy from wheel format

I am trying to install numpy from whl file. I get the error: numpy-1.9.1%2Bmkl-cp34-none-win_amd64.whl is not a supported wheel on this platform. Details: Windows 8.1 pro x64, elevated command...

Install thrift_sasl for Python in Windows

I have been trying to install the thrift_sasl package through pip in Windows 10 x64. The thrift_sasl depends on the sasl package, but on running pip install thrift_sasl or pip install sasl, I run...

Python Connexion — Control "Type" Key in 400 Response Errors

I'm using connexion, a python library for REST API's, with a swagger definition. It's working properly for the actual requests, but when there is an error condition, such as validation fails, it...

Python multiprocessing queue get() timeout despite full queue

I am using Python's multiprocessing module to do scientific parallel processing. In my code I use several working processes which does the heavy lifting and a writer process which persists the...

Installing pocketsphinx python module: command 'swig.exe' failed

I'm getting something like this. Can anyone please tell me how to fix this. C:\Users\krush\Documents\ML using Python>pip install pocketsphinx Collecting pocketsphinx Using cached...

How to poll python asyncio task status

With gevent, I can monitor a long running function like so: greenlet = gevent.Greenlet(long_running_task, *args, **kwargs) greenlet.start() while not greenlet.ready(): ...

error LNK2001: unresolved external symbol PyInit_

I am trying to follow this tutorial to be abe to use C code in python. http://dfm.io/posts/python-c-extensions/ here is the gist...

Extract Acrobat Document Object from a table in .docx file in Python

I have a .docx file with a table in it. There are cells which contain an embedded Acrobat Document Object. I'm using python-docx module to read and extract data from the .docx file, but it doesn't...

Kivy's 3D rendering (monkey rotation) apk crashes on start

Versions: Python: python3 OS: Android Kivy: v1.11.1 Kivy installation method: buildozer I took Kivy's example 3D Rendering (rotation monkey head) app, on Linux(Ubuntu) and Windows 7 application...

Why do I get these errors: "deasync" & "node build.js", "fsevents" & "node install", "node-gyp", "make" errors on "yarn add"

Please help me make sense of this big fat error output. At this point I don't know which end is up. I have been spinning my wheels for days on this. This is not the first/only package installation...

Failed to install gcc on Python-3.7-alpine docker container

I am trying to set up a Python docker container, when I run the command "docker-compose up" to build the Dockerfile it throws me this error message below. The docker file was successfully built...

Python glove missing module 'glove' 'Glove'

Here is what I performed: Installed pip3 install glove_py ok. In Jupyter Python, import glove works ok. from glove import * Problem: When I try a basic setup code to ensure all the modules are...

certbort commands return ModuleNotFoundError: No module named '_cffi_backend'

I followed a guide to get my python flask app running and I am at the last step where I change http into https with certbot. But when I run my certbot command sudo certbot --nginx -d domainname -d...

Python and Huawei Wingle - getting error when I send USSD code (using huawei-modem-python-api-client library)

I have been working on a project using python and Huawei wingle E8372 (usb wingle) to send USSD code, fetch response which is returned by server and then also show the status of ussd (if...

Error with Pillow library when dockerinzing Django app

I develop Django apps in Windows environnement and deploy my apps in production in Linux server. Python 3.8.3 I have a Django project that works (in dev and prod) and I try to "dockerize" it but I...

ERROR: Failed building wheel for psycopg2 (Ubuntu 20.04 + Python 3.8.5 + venv)

Greetings wisdom from Stackoverflow! I'm having issues building wheel for psycopg2 thru pip install -r requirements.txt. I'm on ubuntu 20.04 + python 3.8.5 + venv. This is my...

Why am I Unable to install flask (PIP error)?

I am Unable to install Flask or nearly any other modules. My OS: Ubuntu 14.04 LTS (32bit). Ubuntu Comes with pre installed Python2 and Python3. As I had work with flask, I tried to install it with...

Dependent Chained Dropdown Select List with Django - Not working

I am trying to build a dependant dropdown in a django form, but it is not working. I have followed videos and tutorials, but got no luck. I would like to select a brand of a car (make) and then a...

Unable to install Pykerberos on Macos due to clang command failure

I want to install requests_kerberos so that I can import DISABLED and HTTPKerberosAuth. When I enter the command on my Mac's terminal: pip3 install requests_kerberos, I get an error about failed...

Error during cdlib python package installation

I am trying to install cdlib package in python but some error is occurring. Please help me to solve this problem. The error is given below ERROR: Command errored out with exit status 1: ERROR:...

can't install pycrypto, python 3.10, how to fix?

Cannot install pycrypto. Windows 10, build tools have. P.S(pycryptodome is not installing, required version of python < 3.5) Error ERROR: Command errored out with exit status 1: command:...

Need help to install Kivy

No matter what i try, kivy always fails to install. I can install most other packages but not kivy. I tried it through pycharm, reinstalling python, and trying every command on cmd prompt, it just...

cytoolz/dicttoolz.c:19:10: fatal error: Python.h: No such file or directory

cytoolz/dicttoolz.c:19:10: fatal error: Python.h: No such file or directory 19 | #include "Python.h" | ^~~~~~~~~~ compilation terminated. error: command 'gcc' failed...

discord.ext.commands.errors.CommandInvokeError: Command raised an exception: KeyError: 'dislike_count'

Ignoring exception in command play: Traceback (most recent call last): File "C:\Users\rcesa\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\core.py", line 85, in...

TweepError: Twitter error response: status code = 403

I'm trying to extract the amount of #btc since 2019-01-01 per day. I know the error is about permission, but I'm already using the keys generated from Twitter developer's portal. Here's my code, I...

wxPython not installing via PIP on Apple Silicon M1 Max

Have a project that is written in Python 3.8.x and wxPython. It was developed on an Apple MacBookPro (Intel-based). wxPython installed via PIP inside a virtual environment without problems. Life...

How to run spark 3.2.0 on google dataproc?

Currently, google dataproc does not have spark 3.2.0 as an image. The latest available is 3.1.2. I want to use the pandas on pyspark functionality that spark has released with 3.2.0. I am doing...

Extract data based on condition

I have the following dataset (sample) from which I have to extract dataframe based on a condition. The dataset consists of machines (over 1000), the downtime in hours, the status, and the downtime...

Error no matching distribution found for MarkupSafe==1.0

Trying to install libraries in a newly created environment after using the command pip install -r requirements.txt And got an error: ERROR: Command errored out with exit status 1: command:...

Relevant tags