フリー問題

CompTIA Linux+ のフリー問題 14 / 20 問目

問題文

Two automation scripts on the same host need conflicting versions of the same library. Which approach resolves this without changing the system-wide packages?

選択肢

  1. Install the newer version system-wide and pin the older one with the package manager, since the package manager keeps both on disk and the interpreter reads the pin file to decide which one to import for each script.
  2. Rewrite one script so both can use the same version.
  3. Create a separate virtual environment for each script and install the required version into each one.
  4. Install both versions system-wide and let the interpreter select the newer one at run time, and each script picks up the version it declares in its own import.

解答・解説を確認するには

正解と解説の確認、回答の記録には無料登録が必要です。登録すると演習モードでフリー問題に回答し、正誤と解説をその場で確認できます。