Coder Social home page Coder Social logo

How to work with virtualenv? about pippel HOT 5 CLOSED

Sarcasm avatar Sarcasm commented on June 16, 2024
How to work with virtualenv?

from pippel.

Comments (5)

dakra avatar dakra commented on June 16, 2024 2

I use https://github.com/porterjamesj/virtualenvwrapper.el and that works well, too.

Imho it's ok for pipple to just use the current active python version in emacs.
How you set your python version is up to the user then.. either pyvenv, virtualenvwrapper or by hand. No need to replicate that functionality in pippel.

from pippel.

brotzeit avatar brotzeit commented on June 16, 2024

I use pyvenv and it works without problems. However I don't know what pyvenv does in addition to setting python-shell-virtualenv-root. I will try to figure it out.

from pippel.

Sarcasm avatar Sarcasm commented on June 16, 2024

Ah pyvenv ok, a quick look seems to indicate that it modifies exec-path: https://github.com/jorgenschaefer/pyvenv/blob/91c47b8d2608ccbcac2eba91f0e36b422101ce55/pyvenv.el#L172 end the environment variables.

It may be non-trivial to implement for pippel maybe I should just use pyvenv...?

from pippel.

brotzeit avatar brotzeit commented on June 16, 2024

I want to avoid additional dependencies, so I guess I have to find a way to get this to work without pyvenv. I like it, but I also didn't try anything else ;)

from pippel.

arifer612 avatar arifer612 commented on June 16, 2024

Closed as I do not wish to look into this any further. I believe that using the active python environment is the right way to use pippel. If you intend to use specific virtual environment managers, I would suggest you to activate the virtual environment (e.g. pyvenv-activate for pyvenv) before executing pippel. This would reduce any ambiguity of its usage.

from pippel.

Related Issues (15)

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.