Giter Site home page Giter Site logo

dev-environment's Introduction

dev-environment

Dev environment. Will add more comments and notes here.

For Ubuntu systems, put bashrc in ~/.bashrc For Mac OS X, put this in ~/.bash_profile instead. In both cases, put aliases in ~/.bash_aliases.

Put vimrc in ~/.vimrc.

Virtualenvwrapper

For virtual environments using the wrapper, use:

pip install --user virtualenvwrapper

So you only need pip installed globally. I don't know else to get around it, though, so someone will have to do sudo apt-get install python-pip. But that should be the only global thing related to pip.

And then for Python3, assuming you've made the changes in ~/.bashrc to point to your environment directory do:

mkvirtualenv --python=`which python3` name-of-env

But, sometimes I think I actually need:

export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3

before the virtualenvwrapper.sh script, because otherwise I'd get errors like these:

user@machine:~ $ . ~/.bashrc
/usr/bin/python: No module named virtualenvwrapper
virtualenvwrapper.sh: There was a problem running the initialization hooks.

If Python could not import the module virtualenvwrapper.hook_loader,
check that virtualenvwrapper has been installed for
VIRTUALENVWRAPPER_PYTHON=/usr/bin/python and that PATH is
set properly.
user@machine:~ $

I needed python3, not python... see this StackOverflow answer for details.

This also happens sometimes with GNU screen. If this happens, just source activate it the normal way. Also, always double check Python versions when creating virtualenvs.

References

Inspired by Roshan Rao's dev env, and many others.

dev-environment's People

Contributors

danieltakeshi avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

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.