Error Installing scikit-learn

When trying to install scikit-learn, I get the following error: Exception: Traceback (most recent call last): File...

pip unexpectedly not installing latest version of git package with branch/commit pinning

I have a requirements.txt file with the following line (among others): git+https://github.com/lead-ratings/[email protected]#egg=SexMachine When I do pip install -r requirements.txt I...

Django runserver error: unsupported operand type(s) for +=: 'NoneType' and 'str'

I'm running a local dev project made with Django. But I cannot have the dev server to start: (Gaia_database_env)FakeComputer:gaia_database_proj FakeUser$ python manage.py runserver Traceback (most...

Fail to install PyX using Anaconda

I'm having problems installing python modules PyX, I received the following error when using pip: $ pip install PyX Collecting PyX Could not find a version that satisfies the requirement PyX...

Installing powerline fonts for zsh + Prezto theme

I am currently using Zsh + Prezto for my scripting shell configuration. I have been using the sorin theme but am a little dissatisfied with it. I'd like to switch to the paradox theme! It is...

Why is python setup.py saying invalid command 'bdist_wheel' on Travis CI?

My Python package has a setup.py which builds fine locally on Ubuntu Trusty and on a fresh Vagrant Ubuntu Trusty VM when I provision it like this: sudo apt-get install python python-dev...

using pip3: module "importlib._bootstrap" has no attribute "SourceFileLoader"

I have installed pip for python 3.6 on Ubuntu 14. After I run sudo apt-get install python3-pip to install pip3, it works very well. However, after installation, when I am trying to run pip3...

Tensorflow import error: No module named 'tensorflow'

I installed TensorFlow on my Windows Python 3.5 Anaconda environment The validation was successful (with a warning) (tensorflow) C:\>python Python 3.5.3 |Intel Corporation| (default, Apr 27...

What do square brackets mean in pip install?

I see more and more commands like this: $ pip install "splinter[django]" What do these square brackets do?

No module named future

I am running a telegram bot in python and i am using python3.6 on raspbian ( pi3 ) Below is my imports: from __future__ import (absolute_import, division, print_function,...

ModuleNotFoundError: No module named 'user_agent'

I am trying to run this on my computer https://github.com/WuLC/GoogleImagesDownloader But I keep getting an error of ModuleNotFoundError: No module named 'user_agent' even though I did pip...

PyCharm: ImportError no module named X?

X in this example represents any module or package you install. The problem: I have a problem with a package called 'X'. In PyCharm I get an error ImportError: No module named 'X'. My code runs...

The reason cause different location of python packages

I am new to Linux system and don't have background about operating system. I have some issues about importing numpy,but I worked it out. But still have some questions in my mind. I know that I can...

Python dependency hell: A compromise between virtualenv and global dependencies?

I've tested various ways to manage my project dependencies in Python so far: Installing everything global with pip (saves spaces, but sooner or later gets you in trouble) pip & venv or virtualenv...

I can't load my trained h5 model with load.models(), how do I fix this error?

So I think tensorflow.keras and the independant keras packages are in conflict and I can't load my model, which I have made with transfer learning. Import in the CNN ipynb: !pip install...

Reportlab install: need Pillow. Pillow install: need zlib. Zlib install: file not found

Relevant details: Windows 8 Python 2.7 and 3.7 installed. I'm trying to migrate from 2.7 to 3.7, starting by making sure I have every package I use installed for 3.7 IDE is PyCharm. I tried...

Missing dependancies of rtree

I am currently using Spyder for Python, and I have this error message when I open the program: Error: You have missing dependencies! rtree>= 0.8.3: None (NOK) Please install them to avoid this...

Unable to convert py files to exe using pyinstaller

I was trying to convert my python program to a standalone executable file. However, after running pyinstaller, it runs into an error and doesn't output the file. This is the log: 60 INFO:...

Docker Alpine Linux python (missing)

I have a pipeline which deploys my container from GitLab. Last deployment was 5 days ago and went without any problems. Today I deploy it and get the following error: $ apk add --no-cache curl...

How do I deal with an internal compiler error (cc1plus: gimplify) when installing c based python libraries (OpenCV2) on a Raspberry PI?

I've been trying to install the OpenCV2 libraries for Python 3 on my Raspberry PI 3B. I started this process by installing Python 3 through apt and using pip3 to install OpenCV. However the...

DeprecationWarning: executable_path has been deprecated selenium python

I am using sublime to code python scripts. The following code is for selenium in python to install the driver automatically by using the webdriver_manager package # pip install...

Resolving new pip backtracking runtime issue

The new pip dependency resolver that was released with version 20.3 takes an inappropriately long time to install a package. On our CI pipeline yesterday, a docker build that used to take ~10...

Creating new jupyter notebook: 500: Internal Server Error

I have just installed Python 3.9.1 and pip 21.0.1, but I can't make Jupyter Notebook to work. I can open it, but I can't create a new Python 3 Notebook (500: Internal Server Error). I have tried...

Cannot pip install via proxy when on Conda env

I have some weird problem with pip install via proxy. When I'm in the base Conda environment (/conda) pip install works fine (using proxy: HTTPS_PROXY env variable). But when I'm switching to...

cannot import name '_endpoint_from_view_func' from 'flask.helpers' in python

I ran the same code on Ubuntu with no problem, but ran it on Windows10 with problems. I also installed Flask. My windows environment is configured as follows: $ pip --version pip 21.1.1 from...

ImportError: cannot import name 'load_mnist' from 'pytorchcv'

--------------------------------------------------------------------------- ImportError Traceback (most recent call last) <ipython-input-1-2cacdf187bba> in <module> ...

Binance Api Python setup

I created a Bot to trade BTC with Binance and am currently trying to set my Raspberry Pi 3 B+ up. With every pip install python-binance I get Using cached backports.zoneinfo-0.2.1.tar.gz (74...

"AttributeError: module 'tweepy' has no attribute 'StreamListener'" with Python 3.9

class MyStreamListener(tweepy.StreamListener): def on_status(self, status): print(status.text) # prints every tweet received def on_error(self, status_code): if...

Zappa: UpdateFunctionConfiguration operation: The operation cannot be performed at this time. An update is in progress for resource

I am try update a lambda by zappa, I created virtualenv and active virtualenv and install libraries, but in the moment run zappa update enviroment, I have this problem: How can i fix this :( ...

Scikit-learn installation - Preparing metadata (pyproject.toml) ... error

I am running pip3 install -U scikit-learn to install Scikit-learn however it returns an error: Preparing metadata (pyproject.toml) ... error ERROR: Command errored out with exit status 1: ...