Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit 0cbfbd3

Browse files
committed
add importlib_resources info for older Python versions
1 parent b5aae7e commit 0cbfbd3

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ $
505505

506506
The [examples](https://github.com/cloudflare/python-cloudflare/tree/master/examples) folder contains many examples in both simple and verbose formats.
507507

508-
You can see the installed path of these files directly via `cli4 -e` command.
508+
You can see the installed path of these files directly via `cli4 -e` (or `cli4 --examples`) command.
509509

510510
```bash
511511
$ cli4 -e
@@ -533,6 +533,20 @@ $ pip install importlib_resources
533533
$
534534
```
535535

536+
It will show up if you are running on an older system. For example, this is the results from running on Win7):
537+
538+
```bash
539+
U:\Users\█████>cli4 -e
540+
Module "importlib_resources" missing - please "pip install importlib_resources" as your Python version is lower than 3.9
541+
542+
U:\Users\█████>python -V
543+
Python 3.8.3
544+
545+
U:\Users\█████>
546+
```
547+
548+
Upgrading from an older version of Python is always recommended. Upgrading from Win7 is by-default even more important!
549+
536550
## A DNS zone code example
537551

538552
```python

0 commit comments

Comments
 (0)