mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-21 10:26:06 +03:00
Add info about installing python3 on Mac, Linux (#6558)
The Mac requires special handholding to allow SSL connections for get.py, so document those for end users.
This commit is contained in:
parent
418b00f7c0
commit
ff1e8e92d1
@ -12,6 +12,7 @@ Prerequisites
|
|||||||
- Arduino 1.6.8, get it from `Arduino
|
- Arduino 1.6.8, get it from `Arduino
|
||||||
website <https://www.arduino.cc/en/Main/OldSoftwareReleases#previous>`__.
|
website <https://www.arduino.cc/en/Main/OldSoftwareReleases#previous>`__.
|
||||||
- Internet connection
|
- Internet connection
|
||||||
|
- Python 3 interpreter (Mac/Linux only, Windows installation supplies its own)
|
||||||
|
|
||||||
Instructions
|
Instructions
|
||||||
~~~~~~~~~~~~
|
~~~~~~~~~~~~
|
||||||
@ -186,9 +187,33 @@ Instructions - Other OS
|
|||||||
cd esp8266/tools
|
cd esp8266/tools
|
||||||
python3 get.py
|
python3 get.py
|
||||||
|
|
||||||
|
If you get an error message stating that python3 is not found, you will need to install it (most modern UNIX-like OSes provide Python 3 as
|
||||||
|
part of the default install). To install you will need to use ``sudo yum install python3``, ``sudo apt install python3``, or ``brew install python3``
|
||||||
|
as appropriate. On the Mac you may get an error message like:
|
||||||
|
|
||||||
|
.. code:: bash
|
||||||
|
|
||||||
|
python3 get.py
|
||||||
|
Platform: x86_64-apple-darwin
|
||||||
|
Downloading python3-macosx-placeholder.tar.gz
|
||||||
|
Traceback (most recent call last):
|
||||||
|
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 1317, in do_open
|
||||||
|
encode_chunked=req.has_header('Transfer-encoding'))
|
||||||
|
...
|
||||||
|
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ssl.py", line 1117, in do_handshake
|
||||||
|
self._sslobj.do_handshake()
|
||||||
|
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)
|
||||||
|
|
||||||
|
This is because Homebrew on the Mac does not always install the required SSL certificates by default. Install them manually (adjust the Python 3.7 as needed) with:
|
||||||
|
|
||||||
|
.. code:: bash
|
||||||
|
|
||||||
|
cd "/Applications/Python 3.7/" && sudo "./Install Certificates.command"
|
||||||
|
|
||||||
|
|
||||||
- Restart Arduino
|
- Restart Arduino
|
||||||
|
|
||||||
- When later updating your local library, goto the esp8266 directory and do a git pull
|
- When later updating your local library, goto the esp8266 directory and do a git pull
|
||||||
|
|
||||||
.. code:: bash
|
.. code:: bash
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user