You're supposed to use the m without the .py suffix, i.e.:
$ python -m aname
From the man page:
-m module-name
Searches sys.path for the named module and runs the corresponding .py file as
a script.
The m parameter is a module, similar to
import
or from
.
Question: I am getting the same error python -m ~/.conda/envs/open2c/bin/pip vs python -m pip. I run into the problem because I am trying to create an environment using conda env create -f environment.yml command. The trace shows python tagging on the path top pip as opposed to just doing python -m pip. I feel it must having something to do with an env variable. Any ideas?
ReplyDelete