Skip to content

update pip to conda for quantecon package #66

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 18, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ dependencies:
- matplotlib
- networkx
- sphinx=2.4.4
- sympy
- scipy
- pip:
- sphinxcontrib-jupyter
- sphinxcontrib-bibtex
- quantecon
- joblib
11 changes: 5 additions & 6 deletions source/rst/getting_started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ Installing Libraries

Most of the libraries we need come in Anaconda.

Other libraries can be installed with ``pip``.
Other libraries can be installed with ``pip`` or ``conda``.

One library we'll be using is `QuantEcon.py <http://quantecon.org/quantecon-py>`__.

Expand All @@ -429,26 +429,25 @@ One library we'll be using is `QuantEcon.py <http://quantecon.org/quantecon-py>`
You can install `QuantEcon.py <http://quantecon.org/quantecon-py>`__ by
starting Jupyter and typing


``!pip install --upgrade quantecon``
``!conda install quantecon``

into a cell.

Alternatively, you can type the following into a terminal

``pip install quantecon``
``conda install quantecon``

More instructions can be found on the `library page <http://quantecon.org/quantecon-py>`__.

To upgrade to the latest version, which you should do regularly, use

``pip install --upgrade quantecon``
``conda upgrade quantecon``

Another library we will be using is `interpolation.py <https://github.com/EconForge/interpolation.py>`__.

This can be installed by typing in Jupyter

``!pip install interpolation``
``!conda install -c conda-forge interpolation``
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jstac I changed this to use conda from pip for consistency but interpolations will need the conda-forge channel to be specified. Is this OK?




Expand Down
2 changes: 1 addition & 1 deletion source/rst/need_for_speed.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ In addition to what's in Anaconda, this lecture will need
.. code-block:: ipython
:class: hide-output

!pip install --upgrade quantecon
!conda install quantecon



Expand Down
2 changes: 1 addition & 1 deletion source/rst/numba.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ In addition to what's in Anaconda, this lecture will need the following librarie
.. code-block:: ipython
:class: hide-output

!pip install --upgrade quantecon
!conda install quantecon

Please also make sure that you have the latest version of Anaconda, since old
versions are a :doc:`common source of errors <troubleshooting>`.
Expand Down
2 changes: 1 addition & 1 deletion source/rst/parallelization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ In addition to what's in Anaconda, this lecture will need the following librarie
.. code-block:: ipython
:class: hide-output

!pip install --upgrade quantecon
!conda install quantecon


Overview
Expand Down
4 changes: 2 additions & 2 deletions source/rst/troubleshooting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ You also need to keep the external code libraries, such as `QuantEcon.py

For this task you can either

* use `pip install --upgrade quantecon` on the command line, or
* use `conda upgrade quantecon` on the command line, or

* execute `!pip install --upgrade quantecon` within a Jupyter notebook.
* execute `!conda upgrade quantecon` within a Jupyter notebook.

If your local environment is still not working you can do two things.

Expand Down