@@ -47,29 +47,47 @@ We recommend using
47
47
48
48
49
49
## Python and Other Tools
50
- By far the easiest way to get all of the tools installed and setup is by using the Anaconda Python
50
+
51
+ ### Pipenv
52
+ [ Pipenv] ( https://github.com/pypa/pipenv ) is an easy way to install compatible versions of ` cffi ` , ` cython ` , and
53
+ ` pybind11 ` . Once ` pipenv ` in installed, these other packages can be installed in a virtual environment using:
54
+ ``` shell script
55
+ pipenv install
56
+ ```
57
+
58
+ Then this Python virtual environment can be entered using:
59
+ ``` shell script
60
+ pipenv shell
61
+ ```
62
+
63
+ ### Anaconda Python
64
+ Another easy way to get all of the tools installed and setup is by using the Anaconda Python
51
65
distribution. This is a free distribution of Python available for Windows, Mac OS X, and Linux which
52
66
comes with a couple hundred of the most common and useful Python modules pre-installed including Cython
53
67
and CFFI. It also comes with the `` conda `` package manager which can be used to install additional
54
68
tools such as SWIG.
55
69
56
- ## Anaconda Python
57
- Download the latest version of [ Anaconda] ( https://www.continuum.io/downloads ) . Either the Python 3.6 or
58
- Python 2.7 version should be fine, but we recommend the Python 3.6 version.
70
+ Download the latest version of [ Anaconda] ( https://www.continuum.io/downloads ) . We recommend Python 3.6 or newer.
59
71
60
72
Install Anaconda per the instructions and let it modify your .bashrc, .bash_profile, or path accordingly.
61
73
NOTE: Do not use `` sudo `` to install Anaconda, just install it as a normal user.
62
74
63
75
This also installs Cython and CFFI.
64
76
65
77
## SWIG
66
- Now that Anaconda is installed, you can use the included ** conda** package manager to install SWIG. Do
78
+ If Anaconda is installed, you can use the included ** conda** package manager to install SWIG. Do
67
79
the following in a command-line terminal:
68
80
69
81
``` bash
70
82
conda install swig
71
83
```
72
84
85
+ Alternatively, on macOS you can use the Homebrew package manager to install SWIG:
86
+
87
+ ``` shell script
88
+ brew install swig
89
+ ```
90
+
73
91
## PyPy
74
92
PyPy is best installed with a package manager such as * brew* on Mac OS X or * apt-get** on many Linux distros.
75
93
0 commit comments