Prefer pip to easy_install. Make clear you need to cd before running

This commit is contained in:
Tom Keffer
2018-03-04 09:13:08 -08:00
parent 5943502f46
commit f06e2292a5

View File

@@ -12,10 +12,10 @@
<body>
<h1 class="title">weeWX: Installation on macOS systems
<div class='os-icons'>
<span class='os-icons'>
<img class='logo' src='images/logo-apple.png' alt=""/>
</div>
<div style="clear: both"></div>
</span>
<span style="clear: both"></span>
</h1>
<p>This is a guide to installing weeWX on macOS.</p>
@@ -30,18 +30,19 @@
<p>Ensure that Python2 is installed. Python 2.6 or 2.7 will work,
but Python 3 will not.</p>
<pre class='tty cmd'>python -V</pre>
<p>Install the required Python packages using easy_install:</p>
<pre class='tty cmd'>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</pre>
<p>Install the required Python packages using <a href="https://pypi.python.org/pypi/pip">pip</a> (if pip is not included with
your system, you may have to install it).</p>
<pre class='tty cmd'>sudo pip pysqlite
sudo pip configobj
sudo pip Cheetah
sudo pip PIL
sudo pip pyserial
sudo pip pyusb
sudo pip pyephem</pre>
<p>Depending on the macOS and Python versions, you might have to use <span class="code">Pillow</span> instead of <span class="code">PIL</span>.</p>
<p>If the PIL or Cheetah installation fails, you might have to install xcode:</p>
<pre class='tty cmd'>xcode-select --install</pre>
<p>then try the easy_install again.</p>
<p>then try the pip install again.</p>
<h2>Install weeWX</h2>
<p>Expand the source archive:</p>
@@ -59,7 +60,8 @@ sudo easy_install pyephem</pre>
<h2>Run</h2>
<p>Run the main program directly:</p>
<pre class="tty cmd">/Users/Shared/weewx/bin/weewxd weewx.conf</pre>
<pre class="tty cmd">cd /Users/Shared/weewx
./bin/weewxd weewx.conf</pre>
<p>Or as a daemon automatically when the computer starts:</p>
<pre class="tty cmd">sudo cp /Users/Shared/weewx/util/launchd/com.weewx.weewxd.plist /Library/LaunchDaemons
sudo launchctl load /Library/LaunchDaemons/com.weewx.weewxd.plist</pre>