Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Trying to execute python script in pipeline, fails to install items from requirements.txt

Alan Lanteigne April 24, 2024

I have some very basic packages needed by my script.  When the pipeline runs, it fails because it can't find/install the packages.  Requirements.txt includes:

requests
datetime
re
json
shutil
signal
enum

What am I doing wrong?

 

Thanks!

 

2s
1
+ pip install -r requirements.txt
2
Collecting requests (from -r requirements.txt (line 1))
3
Downloading requests-2.31.0-py3-none-any.whl.metadata (4.6 kB)
4
Collecting datetime (from -r requirements.txt (line 2))
5
Downloading DateTime-5.5-py3-none-any.whl.metadata (33 kB)
6
ERROR: Could not find a version that satisfies the requirement re (from versions: none)
7
ERROR: No matching distribution found for re
8

1 answer

1 vote
Syahrul
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 25, 2024

G'day, @Alan Lanteigne 

The error could mean two things:

  1. Your docker image is running an older version of Pip
  2. The package you're trying to install is unavailable for your Python version.

If you use the default image, you can check the Python version here and see if the version is supported for https://pypi.org/project/DateTime/

Regards,
Syahrul

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events