Skip to content

Commit b599d9b

Browse files
authored
update pip to conda for quantecon package (#66)
* update pip install to conda -c conda-forge * test new import statements by removing quantecon packge from environment * add packages brought in by install of quantecon * use pkg/main for quantecon rather than conda-forge
1 parent 21479b9 commit b599d9b

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

environment.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ dependencies:
1515
- matplotlib
1616
- networkx
1717
- sphinx=2.4.4
18+
- sympy
19+
- scipy
1820
- pip:
1921
- sphinxcontrib-jupyter
2022
- sphinxcontrib-bibtex
21-
- quantecon
2223
- joblib

source/rst/getting_started.rst

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ Installing Libraries
420420

421421
Most of the libraries we need come in Anaconda.
422422

423-
Other libraries can be installed with ``pip``.
423+
Other libraries can be installed with ``pip`` or ``conda``.
424424

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

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

432-
433-
``!pip install --upgrade quantecon``
432+
``!conda install quantecon``
434433

435434
into a cell.
436435

437436
Alternatively, you can type the following into a terminal
438437

439-
``pip install quantecon``
438+
``conda install quantecon``
440439

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

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

445-
``pip install --upgrade quantecon``
444+
``conda upgrade quantecon``
446445

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

449448
This can be installed by typing in Jupyter
450449

451-
``!pip install interpolation``
450+
``!conda install -c conda-forge interpolation``
452451

453452

454453

source/rst/need_for_speed.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ In addition to what's in Anaconda, this lecture will need
4747
.. code-block:: ipython
4848
:class: hide-output
4949
50-
!pip install --upgrade quantecon
50+
!conda install quantecon
5151
5252
5353

source/rst/numba.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ In addition to what's in Anaconda, this lecture will need the following librarie
1313
.. code-block:: ipython
1414
:class: hide-output
1515
16-
!pip install --upgrade quantecon
16+
!conda install quantecon
1717
1818
Please also make sure that you have the latest version of Anaconda, since old
1919
versions are a :doc:`common source of errors <troubleshooting>`.

source/rst/parallelization.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ In addition to what's in Anaconda, this lecture will need the following librarie
1313
.. code-block:: ipython
1414
:class: hide-output
1515
16-
!pip install --upgrade quantecon
16+
!conda install quantecon
1717
1818
1919
Overview

source/rst/troubleshooting.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ You also need to keep the external code libraries, such as `QuantEcon.py
3535

3636
For this task you can either
3737

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

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

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

0 commit comments

Comments
 (0)