Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install dependencies globally instead of using conda #3144

Merged
merged 1 commit into from
Nov 11, 2024
Merged

Conversation

clee2000
Copy link
Contributor

@clee2000 clee2000 commented Nov 4, 2024

Stop using conda to install python and other dependnecies, and also don't use an conda environment. We don't even have any packages that are exclusively on conda.

  • upgrade to ubuntu to 22.04 because 20.04 didn't have python3.10
  • make link checker ignore .jenkins/build.sh

Copy link

pytorch-bot bot commented Nov 4, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/tutorials/3144

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 5be80c9 with merge base 6c0f792 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@clee2000 clee2000 changed the title [experiment] venv Use venv in docker image instead of conda Nov 7, 2024
@clee2000 clee2000 requested a review from malfet November 7, 2024 00:21
Copy link
Contributor

@malfet malfet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but consider getting rid of venv as well:
ubuntu-22.04 has python-3.10 as default system compiler, just install everything system wide

Comment on lines 5 to 9
python3.10 -m venv /opt/venv/tutorials
source /opt/venv/tutorials/bin/activate
pip install --upgrade pip
pip install -r ./requirements.txt
chown ci-user:ci-user /opt/venv -R
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need a venv here? It's our docker container, why not install dependencies system-wide?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed

@clee2000 clee2000 changed the title Use venv in docker image instead of conda Install dependencies globally instead of using conda Nov 11, 2024
@clee2000 clee2000 merged commit a329388 into main Nov 11, 2024
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants