question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Consider using pew to activate virtual environments

See original GitHub issue

I’ve been using it via the pew package, which fills roughly the same niche as virtualenvwrapper, but using the inve approach. My own experience finds it vastly superior to the script-sourcing approach. Explained simply, it starts a subshell instead of changing the current shell. That means de-activating an environment is as simple as the standard exit command in your shell.

https://gist.github.com/datagrok/2199506 https://github.com/berdario/pew

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kennethreitzcommented, Jan 24, 2017

i tried using pew, but pew workon does not work on my machine for some reason

0reactions
ryanhiebertcommented, Jan 25, 2017

That’s cool, it’s a different model, and it may not be worth the time Right Now.

I’d like to point out, for possible future reference, that the inve model doesn’t require using pew, though. inve was originally designed as an activate replacement, that would live in the same place, but open a subshell instead. That concept can be really helpful. pew thought so, and made a virtualenvwrapper alternative built on it, and I think it works excellently.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Virtual environments — Python Workshops 0.1.0 documentation
Pew can create, delete and copy your environments, using a single command to switch to them wherever you are, while keeping them in...
Read more >
Getting "No command 'pew' found" every time I open the ...
From the canconvs instructions, it says to use pew as your virtual environment. If you are already have your own virtual environment, then...
Read more >
Use pew, not virtualenvwrapper, for Python virtualenvs
For those just starting Python, I'd say just go with virtualenv. ... Virtual environments aren't a lot of fun without local packages and ......
Read more >
Use pew, not virtualenvwrapper, for Python ... - plan space
The solution is to use pew instead. The Python Environment Wrapper (pew) handles your environment elegantly. This includes not mangling your ...
Read more >
Comparing Python Virtual Environment tools | by Karan Bhanot
2. Python Environment Wrapper (pew). pew acts as a wrapper and you only need to remember this command once you start working with...
Read more >

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found