No module named _cffi_backend

I have python2.6 in my Linux rhel-5. I have installed pip and required CFFI packages. When i try to run a sample CFFI program it says : ffi = FFI() File...

Python - InvocationError in tox running py.test and coverage test

My project has the following structure: my_project | setup.py tox.ini src | core_functions.py client.py server.py sql_database.py tests.py The tests.py file contains the...

Error when installing secp256k1 library on windows

I am trying to install the secp256k1 library on my windows 10 64-bit machine and I receive the following error C:\Users\user\Downloads\http-ftp>pip3 install secp256k1 Collecting secp256k1 Using...

Failed building wheel for xmlsec - mac

I'm installing my mac on python virtualenv environment. Whenever I install requirement packages command "pip install -r requirements.txt" i got this messages. pip install -r requirements.txt...

How to install multiple packages in conda from a file without creating a new environment?

I took these from yml file of packages that my current environment is missing. How do I just install these within my current environment? channels: - defaults dependencies: -...

Failed building wheel for mujoco-py with OpenAI Gym

I followed the installation instructions for OpenAI Gym, but the full install gives the error "Failed to build wheel for mujoco-py" pip install gym and import gym work fine on my laptop and import...

What is the meaning of "Failed building wheel for X" in pip install?

This is a truly popular question here at SO, but none of the many answers I have looked at, clearly explain what this error really mean, and why it occurs. One source of confusion, is that when...

"No SSL support included in this python" Anaconda-python3-smtplib

I am using Anaconda environment with python 3.7 set up. I am trying to send a simple email via my gmail account using smtplib and I am getting "No SSL support included in this python" I do realize...

How to get messages from googles Pub/Sub sytsem by using the current pubsub subsciber

I need to receive published messages from googles Pub/Sub system by using a python based subscriber. For this I did the following steps: On the web console I created a project, a registry, a...

Python: why do I get an error when I import geopandas?

I try to import geopandas in my jupyter notebook. import geopandas as gp and I get the following error: ImportError:...

WEBP support not installed error with Pillow included in Anaconda

I have written a small code to open webp image in the Anaconda prompt. from PIL import Image im = Image.open('test.webp') It causes the following...

PyInstaller: StopIteration Error when I import geopandas

I am trying to execute PyInstaller on a my script. I installed all of the required packages and the .exe is succesfully created. But when I execute it on another machine, I get he Following...

PortAudio library not found by sounddevice during runtime [WINDOWS]

PROBLEM: Similar to this question for Linux, I'm running into a OSError: PortAudio library not found after I package my app with pyinstaller and execute the .exe. (Note, I do not encounter any...

"AssertionError: Torch not compiled with CUDA enabled" in spite upgrading to CUDA version

I figured out this is a popular question, but still I couldn't find a solution for that. I'm trying to run a simple repo Here which uses PyTorch. Although I just upgraded my Pytorch to the latest...

Jupyterhub - ERROR:asyncio:Task exception was never retrieved

I'm not able to install Jupyterhub using pip. I tried reinstall, but no matter what, I'm still getting asyncio Error. Any idea what I'm doing wrong ? [[email protected] bin]# which...

ImportError: cannot import name 'rcParams' from 'matplotlib'

I have tried to uninstall and reinstall matplotlib in my tf-gpu enviornment I made but I keep getting this error: ImportError: cannot import name 'rcParams' from 'matplotlib' This is the entire...

CentOS 7 - Install Paramiko - bash: paramiko: command not found... error

I am new to Python and CentOS and looking for some options to automate some daily job using Paramiko. However, got below error when installing Paramiko. Hope you guys can help. [[email protected] ~]$...

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...

Error with Python3 to connect to snowflake: snowflake.connector.errors.OperationalError::Failed to execute:'SSLSocket' object has no attribute 'conn

It seems there is some issue with latest snowflake connector . I am trying to install it on Ubuntu OS and trying to connect to snowflake but it gives error AttributeError: 'SSLSocket' object has...

ImportError: cannot import name 'Session' from 'flask_session' (unknown location)

I have the following code from CS50w, the file is application.py import os from flask import Flask, session from flask_session import Session from sqlalchemy import create_engine from...

Module Not found when importing PyCaret in Jupyter

I'm trying to learn PyCaret but having a problem when trying to import it in Jupyter Lab. I'm working in a virtualenv and installed pycaret via pip: pip install pycaret I can confirm its...

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...

Heroku SSL connection error unsupported protocol

I have been using Heroku for a while to host my Discord bot. It has been connecting to a MySQL database hosted on ClearDB successfully. However, very recently, whenever I use the bot and it tries...

Can't pip install to target (distutils.errors.DistutilsOptionError: can't combine user with prefix, exec_prefix/home, or install_(plat)base)

I'm using ubuntu subsystem of linux and are trying to install a package using python 3.8 into a target such that I can zip the package. I can install the package in python 3.8 and I can use the...

Using apache-airflow-providers-snowflake on airflow (no module named Snowflake)

I have installed package apache-airflow-providers-snowflake on airflow on docker and i am getting error No module named Snowflake Please refer attachment (check the error mentioned for the...

How to fix error during pythonnet installation

When I try to use following command: pip install pythonnet I see error that you can see below: Collecting pythonnet Using cached pythonnet-2.5.2.tar.gz (1.9 MB) Requirement already satisfied:...

Cannot pip install mediapipe on Macos M1

Hello fellows I'm using mac air with M1 chip My env sets like (CV) san  ~/work/python  conda list # packages in environment at /Users/san/miniforge3/envs/CV: # # Name ...

from Google import Create_Service ModuleNotFoundError: No module named 'Google'

I'm trying to use Gmail api in python to send email but I cant get past importing the Google module despite using "pip install --upgrade google-api-python-client" or "pip install google". However...

Package streamlit app and run executable on windows

this is my first question on Stackoverflow. I hope my question is clear, otherwise let me know and don't hesitate to ask me more details. I'm trying to package a streamlit app for a personal...

Why can't Python 3 virtualenv find some installed packages?

I am working with a Python virtualenv named env to execute Odoo. In the virtualenv bin directory, I got this: pip pip3 pip3.8 python -> /usr/bin/python3 python3 -> python python3.8 ->...