Fix nix-shell command example in python docs
The nix-shell command here is incorrect AFAICT. `-i` is supposed to specify the interpreter and `-p` specifies the packages.
This commit is contained in:
parent
74260a4922
commit
c67a6482a3
|
@ -165,7 +165,7 @@ run the script in the `python3` shell.
|
||||||
|
|
||||||
```py
|
```py
|
||||||
#! /usr/bin/env nix-shell
|
#! /usr/bin/env nix-shell
|
||||||
#! nix-shell -i 'python3.withPackages(ps: [ps.numpy])'
|
#! nix-shell -i python3 -p 'python3.withPackages(ps: [ps.numpy])'
|
||||||
|
|
||||||
import numpy
|
import numpy
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue