From f06e2292a56feaaa8bdb426ea29845e8f916b315 Mon Sep 17 00:00:00 2001 From: Tom Keffer Date: Sun, 4 Mar 2018 09:13:08 -0800 Subject: [PATCH] Prefer pip to easy_install. Make clear you need to cd before running --- docs/macos.htm | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/docs/macos.htm b/docs/macos.htm index de9941d3..3e669958 100644 --- a/docs/macos.htm +++ b/docs/macos.htm @@ -12,10 +12,10 @@

weeWX: Installation on macOS systems -
+ -
-
+ +

This is a guide to installing weeWX on macOS.

@@ -30,18 +30,19 @@

Ensure that Python2 is installed. Python 2.6 or 2.7 will work, but Python 3 will not.

python -V
-

Install the required Python packages using easy_install:

-
sudo easy_install pysqlite
-sudo easy_install configobj
-sudo easy_install Cheetah
-sudo easy_install PIL
-sudo easy_install pyserial
-sudo easy_install pyusb
-sudo easy_install pyephem
+

Install the required Python packages using pip (if pip is not included with +your system, you may have to install it).

+
sudo pip pysqlite
+sudo pip configobj
+sudo pip Cheetah
+sudo pip PIL
+sudo pip pyserial
+sudo pip pyusb
+sudo pip pyephem

Depending on the macOS and Python versions, you might have to use Pillow instead of PIL.

If the PIL or Cheetah installation fails, you might have to install xcode:

xcode-select --install
-

then try the easy_install again.

+

then try the pip install again.

Install weeWX

Expand the source archive:

@@ -59,7 +60,8 @@ sudo easy_install pyephem

Run

Run the main program directly:

-
/Users/Shared/weewx/bin/weewxd weewx.conf
+
cd /Users/Shared/weewx
+./bin/weewxd weewx.conf

Or as a daemon automatically when the computer starts:

sudo cp /Users/Shared/weewx/util/launchd/com.weewx.weewxd.plist /Library/LaunchDaemons
 sudo launchctl load /Library/LaunchDaemons/com.weewx.weewxd.plist