-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trouble getting started on Windows #94
Comments
That line is most definitely incorrect. It won't raise an error, but it does not do anything, either. (You probably copied it from a
That should work. (Note, though, that I just stumbled upon this while looking to see if I can use Emacs for Python development on Windows. I'm not actually using |
Thanks very much for the reply! Yes, that was a dumb error on my part. But I must admit I still can't get things to "work". Meaning: M-x run-python starts Python in emacs, with the Anaconda env. Relevant init.el lines:
Now, M-x conda-env-list returns base. I can do M-x conda-env-activate base, I get some msg about 1 arg given 2 expected. But if I do it again, it says base is active. Either way, whether I activate base or not, M-x run-python gives the standard Microsoft msg about no python installed, you can download from Msft store. Any thoughts? |
Have you had any luck getting started with Python, @dstrozzi? |
No news. I've given up on this for now. I think the Venn diagram of Python + Anaconda + windows + emacs users is just too small. I am out on an island. |
OK I am pretty confused! I am trying to use Python inside emacs 27.2 (the plain version straight from GNU) on Windows 10. I use Anaconda Python, 3.8.8, just the plain base env, I haven't setup my own venv's. By "use Python inside emacs", I do not mean from a shell run within emacs. But, what "M-x run-python" does. I.e., emacs directly runs Python, you don't start a shell and then run Python. Then emacs becomes a nice IDE. I do this all the time on Linux.
To be explicit, my init.el is below, the whole thing. The only relevant lines, I think, are
(require 'conda)
'(conda-anaconda-home "c:/Users/strozzi2/Anaconda3") ;; my base Anaconda dir; has python.exe and everything else
Whether the 2nd line is included or not, "M-x run-python" gives "Python was not found; run without ...". In the past, I was able to get emacs to at least find and start Python, though without conda env activated (so numpy and everything else didn't work). But, my init.el got very confusing, and I want to start over and do it right.
So, question 1: how do I setup emacs so it can find and start python?
Thank you,
Dave
The text was updated successfully, but these errors were encountered: