When I click cmd+R on a python file
conda run --name env_name file.py
Appears in my terminal. But then the environment clearly isn't activated because it fails to import packages that are in that environment. As you can see below
(bf) ➜ bagflow git:(main) ✗ python file.py
here
(bf) ➜ bagflow git:(main) ✗ conda run --name bf python file.py
Traceback (most recent call last):
File "file.py", line 1, in <module>
import pytest
ModuleNotFoundError: No module named 'pytest'
ERROR conda.cli.main_run:execute(49): `conda run python file.py` failed. (See above for error)
This is on a Apple Silicon Mac using miniconda
When I click cmd+R on a python file
conda run --name env_name file.pyAppears in my terminal. But then the environment clearly isn't activated because it fails to import packages that are in that environment. As you can see below
This is on a Apple Silicon Mac using miniconda