1
0
Fork 0
mirror of https://github.com/NixOS/nix.dev.git synced 2024-10-18 14:32:43 -04:00

Merge pull request #556 from eunsukimme/docs/from_python2_to_python3

This commit is contained in:
Valentin Gagarin 2023-05-14 13:47:10 +02:00 committed by GitHub
commit 3d23d36bc6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -128,13 +128,13 @@ If you need an additional program temporarily, you can run a nested Nix shell.
The programs provided by the specified packages will be added to the current environment. The programs provided by the specified packages will be added to the current environment.
```shell-session ```shell-session
[nix-shell:~]$ nix-shell -p python2 [nix-shell:~]$ nix-shell -p python3
this path will be fetched (7.94 MiB download, 46.61 MiB unpacked): this path will be fetched (11.42 MiB download, 62.64 MiB unpacked):
/nix/store/i2irgbnhx66ac0am0x19443rv13g39z1-python-2.7.18.6 /nix/store/pwy30a7siqrkki9r7xd1lksyv9fg4l1r-python3-3.10.11
copying path '/nix/store/i2irgbnhx66ac0am0x19443rv13g39z1-python-2.7.18.6' from 'https://cache.nixos.org'... copying path '/nix/store/pwy30a7siqrkki9r7xd1lksyv9fg4l1r-python3-3.10.11' from 'https://cache.nixos.org'...
[nix-shell:~]$ python --version [nix-shell:~]$ python --version
Python 2.7.18.6 Python 3.10.11
``` ```
Exit the shell as usual to return to the previous environment. Exit the shell as usual to return to the previous environment.