Skip to content
Advertisement

Tag: pip

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 docker in-house; I’m not talking about sharing work with anyone outside a small team, or about projects getting heavy re-use. What advantage do

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 brackets: pip install -r requirements.txt But how can you install multiple extra dependencies of a single package ? There is of course the possibility to create multiple lines

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 seems to break our tests. I’m using python 3.7.9 in pyenv on a debian laptop. I reproduced the problem with a pretty simple example: Activate a fresh pyenv virtualenv and install the latest pytest with pip install

Installing pip is not working in python < 3.6

I am trying to use these steps with bitbucket CI to deploy an application: However, the python get-pip.py step fails with this error: Why isn’t it working now? Does it depend on the operating system? For the equivalent issue with upgrading pip in old Python installations, see Upgrading pip fails with syntax error caused by sys.stderr.write(f”ERROR: {exc}”). Answer pip 21.0

installing pip on python2.7.5 and the old version issue

I want to make some change on a code which has been developed with python2.7.5 so I should use Python 2.7.5. But when I’m installing pip on python2.7.5, face this error. I have downloaded get-pip.py and ran it through cmd here is the error: DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your

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

Installing with pip, I can write the following requirements.txt file: And successfully install the requirements file: However, I have co-located in the directory a setup.py script that lists: And installing this submodule using pip involves pip running setup.py…which fails to handle the module link: I can see a lot of ways around this, but it seems like there should be

Advertisement