- Newest
- Most votes
- Most comments
Hi, did you try to first upgrade pip (as part of initial code of your notebook): it seems that pip is obsolete. So, updating it as suggested at end of error message won't hurt. It may even solve your issue.
Look for %pip in https://ipython.readthedocs.io/en/stable/interactive/magics.html
Some solution found in this issue :
- Upgrade setuptools.
- Make sure you have the right python version
- Install numpy prior to installing other libraries
If the issue persists, this command can change the behaviour of pip install. So to test if that will affect it in any way you can test it by using --use-feature=in-tree-build
I tried to add it to the requirements.txt file, but it doesn't solve the problem. Instead, in the notebook all of them are updated at the beginning. How can I change the pip install command, adding --use-feature=in-tree-build, in the Training Job? For me, the strange element is that the same code works if outside the folder cloned from git. So this needs to have some correlation.
Relevant content
- Accepted Answerasked 2 years ago
- asked 5 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
Hi, yes I did before all the imports. But I also thought that if I update it in the Notebook, I wouldn't have any effect on the machine it is created for the Training Job, would I? To be sure, I also tried to add pip==23.1.2 at the beginning of the requirements.txt to be sure it is updated also in the training machine, but it seems to not have any effect