ImportError: cannot import name ‘gen’ from ‘tornado’ (unknown location)

I am trying to reinstall pip in my Mac. However, I am still running into the following error. I tried to fix it by deleting pip, but even when I try to reinstall it, the same problem keeps occurring. …

Can’t install PyArrow on Ubuntu

I have an EC2 Ubuntu 18.04.3 LTS instance with python 3.6.9 I tried to install pyarrow with this command: python3 -m pip install pyarrow But I get an error: Command “/usr/bin/python3 -u -c “…

How can I run a Python project on another computer without installing anything on it?

I have a Python Project that has a bunch of dependencies (in my VirtualEnv). I need to run my project in my school computer for Demonstration. My School computer does not have python installed, and …

Why use requirements.txt in a Docker image

There is a similar question from last year but I don’t think the responses are widely applicable and it’s not accepted. Edit: this is in the context of developing small jobs that will only be run in …

Pip install multiple extra dependencies of a single package via requirement file

Some package, such as DVC allow you to install extra dependencies to use additional features: to install a single extra dependency, whether by command line or in a requirements.txt, you simply use …

pytest breaks with pip install

I’m working in a repo that has tests and some test helper libraries in a directory named test (https://github.com/covid-projections/covid-data-model/tree/main/test). Mysteriously pip install dash …

Python3: install github-based module in setup.py?

Installing with pip, I can write the following requirements.txt file: git+https://repo@branch#egg=foo&subdirectory=this/bar/foo numpy And successfully install the requirements file: python3 -m …

Trying to pip install ibm-db in a virtual env on IBM i resulting in error limits.h

I’m trying to install ibm-db into a virtual environment with Python running on an IBM i. I’m running into the following exception about limits.h no such file or directory. All the other similar …

What is the recommended replacement for pip in Debian/Ubuntu where there is no deb package available?

sudo apt-get install trac no longer finds trac. sudo apt-git install pip no longer finds pip, but python has the command: python -m ensurepip that is supposed to do the same thing but instead advises …

Error when installing tensorflow on Ubuntu Server 20.04

I have a Raspberry Pi 4B with Ubuntu Server 20.04 and I’m getting an error when trying to install tensorflow. ubuntu@pi1:~$ pip3 install tensorflow ERROR: Could not find a version that satisfies the …