You can check the variable value by typing echo %PATH% in your shell. You'll have to relaunch the shell (and Emacs !) for the environment variables to be taken into account. The paths should look like this (check them beforehand !) : C:\Users\YOUR_USER_NAME\AppData\Local\Continuum\anaconda3\Scripts and C:\Users\YOUR_USER_NAME\AppData\Local\Continuum\anaconda3. Windows -> Environment variables -> System Variables -> Path -> Edit. Plus, if you change python-shell-interpreter to my-python, you get the default functions from python-mode run-python (C-c C-p) and python-shell-send-buffer (C-c C-c) working.Ĭaveat : At this time, images' display (with matplotlib.pyplot) still does not work properly. That way you can call directly my-python from the shell - whether it be on Emacs or on cmd - and have a working ipython shell, with all DLLs loaded. I placed it in a folder named my-batch-files which I have referenced in %PATH%. I personally automated this process by creating a batch file called my-python.bat. Without it, the shell hangs in Emacs, I don't know why (it doesn't in cmd). In the same shell, run python -i (or ipython -i). The -i forces a prompt. This will load the environment and allow you to use the libraries (like numpy).
PROPERLY INSTALL ANACONDA WINDOWS 10 INSTALL
Provided that you added the folders paths of your conda install in Windows' %PATH% variable, the following should work : From a DOS prompt, I type 'activate' to activate the conda env. I have tried several things with the pyvenv and elpy packages, all to no avail. Type "help", "copyright", "credits" or "license" for more information.Īnd numpy, scipy, etc won't load. Once you’ve calibrated once, they stubbornly hold on to the settings you chose, and it’s damned hard to change them.
PROPERLY INSTALL ANACONDA WINDOWS 10 HOW TO
This Python interpreter is in a conda environment, but the environment has not been activated. How to properly re-install Spyder software (Windows) The Spyder range of calibrators are very good (well, not the Express, it’s kinda rubbish, but the Pro and Elite are great) but they have one very annoying quirk. Whenever I start Python, I get the message: Python 3.7.3 (default, Mar 27 2019, 17:13:21) :: Anaconda, Inc. I can't get Python to properly run within emacs.
I have a Windows 10 machine, with the official GNU emacs Windows build, and Anaconda Python 3.7.3. Please! I've flailed around w/ pyvenv.el, conda.el, I give up. emacs file, so that "M-x run-python" starts the anaconda python, properly activates so "import numpy" works. Please please tell me what exactly to type in my. No venv's, I just use the base conda environment. Anaconda installed in c:\users\\Anaconda3. Still Windows 10, official GNU emacs 27.2. 2021 update: I am at my wit's end over this.