-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Description
Hey there,
In the documentation I see a pip-style requirements.txt is supposedly supported for installing arbitrary Python packages in the containers. I haven't seen the need to try it yet, but recently wanted to test out something that required a new package and was surprised to find that well, nothing happened, and then I got a fun little ImportError.
To test this further, I put some garbage into the requirements file, and found that (when I went back to the version of my code that didn't require the extra package) it chugged along just fine. I know that the SDK ensures that the requirements file exists in the source directory, since I tested that, but otherwise it seems to me like nothing is being done with it once it's sent over.
Here's the sample requirements file that didn't seem to get parsed:
tensorflow==1.7.0
tqdm==4.7.4
sjdhjaskldhjaskl==1.2.0
When I use this file locally, I get the following:
(dataplayground2) zach@wa1okdba002:~/stats/omc/utils/sagemaker_source_dir$ pip install -r requirements.txt
Requirement already satisfied: tensorflow==1.7.0 in /home/u1/zach/proj/dataplayground2/lib/python2.7/site-packages (from -r requirements.txt (l
ine 1))
Requirement already satisfied: tqdm==4.7.4 in /home/u1/zach/proj/dataplayground2/lib/python2.7/site-packages (from -r requirements.txt (line 2)
)
Collecting sjdhjaskldhjaskl==1.2.0 (from -r requirements.txt (line 3))
Could not find a version that satisfies the requirement sjdhjaskldhjaskl==1.2.0 (from -r requirements.txt (line 3)) (from versions: )
No matching distribution found for sjdhjaskldhjaskl==1.2.0 (from -r requirements.txt (line 3))
Thanks,
Zach