07-03-2020

This commit is contained in:
2020-03-07 08:26:20 +01:00
parent f760227ba1
commit f9ae910168
13 changed files with 248 additions and 43 deletions

View File

@@ -8,7 +8,7 @@ Python 3 peut s'installer avec Homebrew:
$ brew install python3
```
Les extensions Python 3 s'installent dans `/usr/local/lib/python3.6/site-packages/`
Les extensions Python 3 s'installent dans `/usr/local/lib/python3.7/site-packages/`
Pour lancer un script Python 3:
@@ -29,8 +29,8 @@ export PATH=/usr/local/opt/python/libexec/bin:$PATH
Pip est installé d'origine avec Python 3. On le lance avec la commande **pip3**:
```bash
$ pip3 list --outdated --format=columns
$ pip3 install mkdocs
$ pip list --outdated --format=columns
$ pip install mkdocs
```
@@ -39,7 +39,7 @@ Installation utilisateur:
```bash
$ python3 -m site --user-base
/Users/bruno/Library/Python/3.6
/Users/bruno/Library/Python/3.7
```
[Pipenv](https://docs.pipenv.org)
@@ -76,7 +76,7 @@ $ brew reinstall python3 --with-tcl-tk
Installer:
```bash
$ pip3 install jupyter
$ pip install jupyter
```
Démarrer:
@@ -89,15 +89,52 @@ $ jupyter notebook
### Modules:
#### Global
```bash
$ pip install <module>
```
Les modules s'installent dans `/usr/local/lib/python3.7/site-packages` :
Liste des modules:
```bash
$ pip freeze
appnope==0.1.0
asgiref==3.2.3
backcall==0.1.0
```
#### Local
```bash
$ pip install --user <module>
```
Les modules s'installent dans `/Users/bruno/Library/Python/3.7/lib/python/site-packages/` :
Liste des modules:
```bash
$ pip freeze --user
Click==7.0
tornado==6.0.3
```
#### Mkdocs
Il faut installer Mkdocs avec pip dans --user
```bash
$ pip3 install --user mkdocs
$ pip install --user mkdocs
```
Mkdocs s'installe dans `'/Users/bruno/Library/Python/3.7/bin'` :
Mkdocs s'installe dans `/Users/bruno/Library/Python/3.7/bin` :
```bash
~/Library/Python/3.7/bin$ ./mkdocs --version
@@ -115,7 +152,7 @@ export PATH=/Users/bruno/Library/Python/3.7/bin:$PATH
On installe de la même manière le thème [Material](https://squidfunk.github.io/mkdocs-material/getting-started/):
```bash
$ pip3 install --user mkdocs-material
$ pip install --user mkdocs-material
```