ExamGecko
Question list
Search
Search

Question 278 - 200-901 discussion

Report
Export

Refer to the exhibit.

A developer just finished testing a Python script and wants to save the list of packages and versions installed on the current machine. The developer must make sure that it will not cause any issues if tested on another device due to different library versions. Which line of code needs to be placed on the snippet where the code is missing?

A.

pip freeze 2> requirements.txt

Answers
A.

pip freeze 2> requirements.txt

B.

pip freeze > requirements.txt

Answers
B.

pip freeze > requirements.txt

C.

pip freeze => requirements.txt

Answers
C.

pip freeze => requirements.txt

D.

pip freeze | requirements.txt

Answers
D.

pip freeze | requirements.txt

Suggested answer: B

Explanation:

pip freeze requirements.txt ile ilgili görsel sonucu The most common command is pip freeze > requirements. txt , which records an environment's current package list into requirements. txt. If you want to install the dependencies in a virtual environment, create and activate that environment first, then use the Install from requirements.

asked 07/10/2024
Sam K
30 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first