1(tutorial-env) $ pip freeze > requirements.txt
2(tutorial-env) $ cat requirements.txt
3novas==3.1.1.3
4numpy==1.9.2
5requests==2.7.0
6
1$ source ~/envs/tutorial-env/bin/activate
2(tutorial-env) $ python
3Python 3.5.1 (default, May 6 2016, 10:59:36)
4 ...
5>>> import sys
6>>> sys.path
7['', '/usr/local/lib/python35.zip', ...,
8'~/envs/tutorial-env/lib/python3.5/site-packages']
9>>>
10
1(tutorial-env) $ python -m pip install -r requirements.txt
2Collecting novas==3.1.1.3 (from -r requirements.txt (line 1))
3 ...
4Collecting numpy==1.9.2 (from -r requirements.txt (line 2))
5 ...
6Collecting requests==2.7.0 (from -r requirements.txt (line 3))
7 ...
8Installing collected packages: novas, numpy, requests
9 Running setup.py install for novas
10Successfully installed novas-3.1.1.3 numpy-1.9.2 requests-2.7.0
11
1(tutorial-env) $ pip search astronomy
2skyfield - Elegant astronomy for Python
3gary - Galactic astronomy and gravitational dynamics.
4novas - The United States Naval Observatory NOVAS astronomy library
5astroobs - Provides astronomy ephemeris to plan telescope observations
6PyAstronomy - A collection of astronomy related tools for Python.
7...
8
1(tutorial-env) $ pip list
2novas (3.1.1.3)
3numpy (1.9.2)
4pip (7.0.3)
5requests (2.7.0)
6setuptools (16.0)
7
1(tutorial-env) $ python -m pip install novas
2Collecting novas
3 Downloading novas-3.1.1.3.tar.gz (136kB)
4Installing collected packages: novas
5 Running setup.py install for novas
6Successfully installed novas-3.1.1.3
7
1(tutorial-env) $ python -m pip install --upgrade requests
2Collecting requests
3Installing collected packages: requests
4 Found existing installation: requests 2.6.0
5 Uninstalling requests-2.6.0:
6 Successfully uninstalled requests-2.6.0
7Successfully installed requests-2.7.0
8