@@ -39,8 +39,7 @@ System requirements
3939:Operating System: Windows, macOS, Linux, FreeBSD, Linux ARMv6+
4040:Python Interpreter:
4141
42- Python 3.5+ (Python 2.7 is not recommended, support for it will be removed in the next releases).
43- See detailed instruction on how to :ref: `faq_install_python ` for Windows.
42+ **Python 3.6+ or above **. See detailed instruction on how to :ref: `faq_install_python `.
4443
4544:Terminal Application:
4645
@@ -157,109 +156,6 @@ macOS Homebrew Packages Manager (`brew <http://brew.sh/>`_) as follows:
157156
158157 brew install platformio
159158
160- Virtual Environment
161- ~~~~~~~~~~~~~~~~~~~
162-
163- PlatformIO Core may be installed into isolated Python environment. This
164- method is very good if you don't want to install PlatformIO Core Python's
165- dependencies (packages) into your global system scope. :ref: `pioide ` uses this
166- method to install PlatformIO Core.
167-
168- Default and recommended environment folder is ":ref: `projectconf_pio_core_dir `/penv".
169- You can print **environment folder path ** using the next command in your
170- system terminal:
171-
172- .. code-block :: bash
173-
174- python -c " import os; print(os.path.join(os.getenv('PLATFORMIO_CORE_DIR', os.path.join(os.path.expanduser('~'), '.platformio')), 'penv'))"
175-
176- # ####################### Examples
177- # Windows
178- # C:\Users\UserName\.platformio\penv
179-
180- # Linux
181- # ~/.platformio/penv
182- # /home/username/.platformio/penv
183-
184- # macOS
185- # ~/.platformio/penv
186- # /Users/username/.platformio/penv
187-
188- Prerequisites
189- '''''''''''''
190-
191- 1. Please remove existing PlatformIO Core **environment folder ** if exists.
192- See above command how to get path to environment folder.
193-
194- 2. Please check that you have a valid Python interpreter running a next
195- command in system terminal. Python 2.7.9+ or Python 3.5+ is recommended.
196-
197- .. code-block :: bash
198-
199- python --version
200-
201- # or, for Unix (Linux, Mac), you can use `python2` or `python3` aliases
202- python2 --version
203- python3 --version
204-
205- .. warning ::
206- **Windows Users **: If you already tried to install :ref: `pioide ` and did
207- not get success, please open system's Control Panel > Installed Programs,
208- and check if PlatformIO IDE tried to install an own isolated Python 2.7
209- version. Please uninstall it. Also is good to uninstall all Python
210- interpreters from a system and install manually the latest Python
211- using :ref: `faq_install_python ` guide.
212-
213- 3. Make sure ``virtualenv --help `` command exists in a system, otherwise,
214- please install it manually using ``pip install virtualenv `` or
215- ``pip2 install virtualenv `` command.
216-
217- If ``pip `` (Python Package Manager) does not exists, you have to install it
218- manually. See https://pip.pypa.io/en/stable/installing/
219-
220- Creating
221- ''''''''
222-
223- 1. Create a folder which contains all the necessary executables to use the
224- packages that PlatformIO Core would need using ``virtualenv `` command:
225-
226- .. code-block :: bash
227-
228- virtualenv /path/to/.platformio/penv
229-
230- # If you want to use a custom Python interpreter
231- virtualenv --python=/path/to/custom/python /path/to/.platformio/penv
232-
233- # EXAMPLES
234- # Windows
235- virtualenv C:\U sers\U serName\. platformio\p env
236- virtualenv --python=C:\P ython27\p ython.exe C:\U sers\U serName\. platformio\p env
237-
238- # Unix (Linux, Mac)
239- virtualenv ~ /.platformio/penv
240- virtualenv -p python3 ~ /.platformio/penv
241-
242- 2. Activate virtual environment
243-
244- .. code-block :: bash
245-
246- # Windows
247- C:\U sers\U serName\. platformio\p env\S cripts\a ctivate
248-
249- # Unix (Linux, Mac)
250- source /path/to/.platformio/penv/bin/activate
251- # or
252- . /path/to/.platformio/penv/bin/activate
253-
254- 3. Install PlatformIO Core into virtual environment
255-
256- .. code-block :: bash
257-
258- pip install -U platformio
259-
260- If you plan to use PlatformIO Core commands outside virtual environment, please
261- :ref: `piocore_install_shell_commands `.
262-
263159 .. _installation_develop :
264160
265161Development Version
@@ -414,7 +310,7 @@ Python Interpreter
414310''''''''''''''''''
415311
416312PlatformIO Core Installer Script is written in Python and is compatible with Python 2.7+
417- and Python 3.5+. **We highly recommend using Python 3 **.
313+ and Python 3.5+. **We highly recommend using the latest Python 3 **.
418314
419315Python is installed by default on the most popular Unix OS (macOS, Linux, FreeBSD).
420316If there is no Python on a user machine (you can check running ``python --version ``),
0 commit comments