Coder Social home page Coder Social logo

Python virtualenvwrapper about emacs-direnv HOT 6 CLOSED

wbolster avatar wbolster commented on May 26, 2024
Python virtualenvwrapper

from emacs-direnv.

Comments (6)

behaghel avatar behaghel commented on May 26, 2024 1

Of course, exec-path-from-shell did the trick. Also to make it work, I had to stop my shell config to automatically enter in a tmux session.

Thanks again.

from emacs-direnv.

wbolster avatar wbolster commented on May 26, 2024

what you describe is expected, and actually the same as direnv in a shell would do. i combine this package with https://github.com/purcell/exec-path-from-shell to make sure my emacs environment is the same as in my shells, regardless of how i start emacs.

re. choosing python versions, that's something that virtualenvwrapper maybe can do for you. i stopped using that long time ago in favour of sth like layout python-venv python3.8 (see direnv wiki for python-venv snippet) for virtualenv management. orthogonal to that i use pyenv for installing multiple python versions on my system (in addition to operating system packages).

let me know if you want more details about my setup. pretty happy about it, and everything works both in shell and in emacs, without any manual tweaks at all.

from emacs-direnv.

wbolster avatar wbolster commented on May 26, 2024

oh, missed one part of your question: seems like your virtualenvwrapper thingy fails in emacs somehow. path issues? exec-path-from-shell to the rescue.

also check the direnv buffer in emacs (see readme) since it may contain essential debugging info.

from emacs-direnv.

behaghel avatar behaghel commented on May 26, 2024

Thanks, super helpful! All sorted with your guidance.

from emacs-direnv.

wbolster avatar wbolster commented on May 26, 2024

cool, you're welcome. care to share what the issue was? it may help others in the future

from emacs-direnv.

wbolster avatar wbolster commented on May 26, 2024

ah, nothing specific to virtualenvwrapper or anything like that. (good!)

from emacs-direnv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.