forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Description
vscode 1.41.1
Latest version of ms-python.python 2020.1.57204
python 3.7.5, Mac OSX Catalina
I am running miniconda and have selected my env Python 3.7.5 64-bit ('octant':conda)
(which is displayed in lower left of window)
The run button outputs the following
source /Users/paulyoung/miniconda3/bin/activate
conda activate octant
➜ DataPrep source /Users/paulyoung/miniconda3/bin/activate
conda activate octant
conda run -n octant python /Users/paulyoung/MyData/Code/DataPrep/Prepare_Dataset.py
(base) ➜ DataPrep conda activate octant
(octant) ➜ DataPrep conda run -n octant python /Users/paulyoung/MyData/Code/DataPrep/Prepare_Dataset.py
ERROR conda.cli.main_run:execute(30): Subprocess for 'conda run ['python', '/Users/paulyoung/MyData/Code/DataPrep/Prepare_Dataset.py']' command failed. (See above for error)
Traceback (most recent call last):
File "/Users/paulyoung/MyData/Code/DataPrep/Prepare_Dataset.py", line 1, in <module>
import numpy as np
ModuleNotFoundError: No module named 'numpy'
However from within the terminal I can run the file with python Prepare_Dataset.py with no issues (the terminal has a prompt showing me that I am within my virtualenv)
BTW have run conda list at the terminal
and numpy is in the environment
Metadata
Metadata
Assignees
Labels
No labels