Skip to content

Commit bcb0dcd

Browse files
committed
added basic pyenv support
1 parent 28f8f5d commit bcb0dcd

File tree

3 files changed

+23
-4
lines changed

3 files changed

+23
-4
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.idea/
12
bin/
23
include/
34
lib/

.python-version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.6.6

README.md

+21-4
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,26 @@ Predictions ideally perform well on a diversity of datasets, illumination condit
5353

5454
## Environment Setup
5555

56-
EmoPy runs using Python 3.6 and up, theoretically on any Python-compatible OS. We tested EmoPy using Python 3.6.6 on OSX. You can install [Python 3.6.6](https://www.python.org/downloads/release/python-366/) from the Python website.
57-
5856
Python is compatible with multiple operating systems. If you would like to use EmoPy on another OS, please convert these instructions to match your target environment. Let us know how you get on, and we will try to support you and share you results.
5957

60-
If you do not have Homebrew installed run this command to install:
58+
Before beginning, ff you do not have Homebrew installed run this command to install:
6159

6260
```
6361
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
6462
```
6563

64+
EmoPy runs using Python 3.6 and up, theoretically on any Python-compatible OS. We tested EmoPy using Python 3.6.6 on OSX.
65+
66+
There are 2 ways you can install Python 3.6.6:
67+
68+
1. Directly from the [Python website] (https://www.python.org/downloads/release/python-366/), or
69+
2. Using [pyenv] (https://github.com/pyenv/pyenv):
70+
71+
```
72+
$ brew install pyenv
73+
$ pyenv install 3.6.6
74+
```
75+
6676
GraphViz is required for visualisation functions.
6777

6878
```
@@ -78,7 +88,14 @@ Create and activate the virtual environment. Run:
7888
```
7989
python3.6 -m venv venv
8090
```
81-
where the second `venv` is the name of your virtual environment. To activate, run from the same directory:
91+
92+
Or if using pyenv:
93+
94+
```
95+
$ pyenv exec python3.6 -m venv venv
96+
```
97+
98+
Where the second `venv` is the name of your virtual environment. To activate, run from the same directory:
8299
```
83100
source venv/bin/activate
84101
```

0 commit comments

Comments
 (0)