Oct. 2021 update: I am at my wit's end over this. Still Windows 10, official GNU emacs 27.2. Anaconda installed in c:\users\[username]\Anaconda3. No venv's, I just use the base conda environment. Please please tell me what exactly to type in my .emacs file, so that "M-x run-python" starts the anaconda python, properly activates so "import numpy" works. Please! I've flailed around w/ pyvenv.el, conda.el, I give up.
I have a Windows 10 machine, with the official GNU emacs Windows build, and Anaconda Python 3.7.3. I can't get Python to properly run within emacs. Whenever I start Python, I get the message:
Python 3.7.3 (default, Mar 27 2019, 17:13:21) [MSC v.1915 64 bit (AMD64)] :: Anaconda, Inc. on win32 Warning: This Python interpreter is in a conda environment, but the environment has not been activated. Libraries may fail to load. To activate this environment please see https://conda.io/activation Type "help", "copyright", "credits" or "license" for more information.
And numpy, scipy, etc won't load. I have tried several things with the pyvenv and elpy packages, all to no avail. From a DOS prompt, I type 'activate' to activate the conda env. I haven't setup any venv's of my own.