So I used ! sys instead of use "pip" directly. From what I searched, this should be the best practice.
But the second cell doesn't print anything. I got the code from this web, it should work. But can anyone tell me why it didn't. geekforgeek
So I used ! sys instead of use "pip" directly. From what I searched, this should be the best practice.
But the second cell doesn't print anything. I got the code from this web, it should work. But can anyone tell me why it didn't. geekforgeek
There shouldn't be a space between -
and m
:
python -m pip install thing
python - m pip install thing # NOT this
Otherwise the dash -
will be treated as "read input from stdin
", I presume.