How to Create a Python Virtualenv Without Bullshit

FLAVIO CLESIO · 4 min

Via Eiti Kimura. Straight to the point:

  1. Install virtualenv using pip:
    $ pip install virtualenv
    
  2. Define your directory:
    $ mkdir deep-learning-virtual-env
    
  3. After defining the directory, enter it:
    $ cd deep-learning-virtual-env
    
  4. Initialize your virtualenv:
    $ virtualenv .
    
  5. Activate your virtualenv:
    $ source bin/activate
    
  6. To further ease your work, we’ve even created a requirements file with Theano, Keras, Jupyter Notebook, and Scikit-Learn. To install them, simply run the following command:
    $ pip install -r requirements.key
    

    requirements.key