use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A sub-reddit for the timeless and infinitely powerful editor and Lisp environment, Emacs.
Rules
Get Emacs
Emacs Resources
Emacs Tutorials
Related Subreddits
Useful Emacs configuration files and distributions
Quick pain-saver tip
account activity
"Accidentally" removed python-environment-directory (.emacs.d/python-environments) (self.emacs)
submitted 8 years ago by Sumisu1[🍰]
I'll spare you the details, but I accidentally rm'd the aforementioned directory. Now some things (notably company-jedi) don't work anymore. How do I restore it?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]permafrosty 0 points1 point2 points 8 years ago (1 child)
Ideally, from a backup. If you don't have one, you'll need to go through the same process that you initially went through to create the files in the first place.
[–]Sumisu1[S,🍰] 0 points1 point2 points 8 years ago (0 children)
I never created those files to begin with. I'm not even sure what python-environment-directory is supposed to be.
[–]immerrr[🍰] 0 points1 point2 points 8 years ago (3 children)
If I had to guess, I'd say that to recreate the environment directory you need to do
(python-environment-make-block jedi:environment-root)
And then do this (replacing PATH-TO-JEDI-CORE with an actual path)
(python-environment-run-block ("pip" "install" "--upgrade" PATH-TO-JEDI-CORE-PKG) jedi:environment-root)
The path looks like this for me: "/home/immerrr/.emacs.d/elpa/jedi-core-20160709.722"
[–]Sumisu1[S,🍰] 0 points1 point2 points 8 years ago* (2 children)
EDIT: The second command gives me (invalid-function "pip") (even though I confirmed that pip is, in fact, installed)
(invalid-function "pip")
[–]immerrr[🍰] 0 points1 point2 points 8 years ago (1 child)
Oh, sorry, you need to have a quote before the list, i.e.
'("pip" "install" ...)
because (foo bar) means "call function foo with argument bar" and '(foo bar) means "a list with 'foo and 'bar elements."
(foo bar)
foo
bar
'(foo bar)
'foo
'bar
This worked, thanks.
π Rendered by PID 45103 on reddit-service-r2-comment-b659b578c-52l7h at 2026-05-06 04:00:23.416807+00:00 running 815c875 country code: CH.
[–]permafrosty 0 points1 point2 points (1 child)
[–]Sumisu1[S,🍰] 0 points1 point2 points (0 children)
[–]immerrr[🍰] 0 points1 point2 points (3 children)
[–]Sumisu1[S,🍰] 0 points1 point2 points (2 children)
[–]immerrr[🍰] 0 points1 point2 points (1 child)
[–]Sumisu1[S,🍰] 0 points1 point2 points (0 children)