MaJ du 04-02-2021

This commit is contained in:
2021-02-04 09:55:26 +01:00
parent 84b4e1a85d
commit fb07a20b0c
56 changed files with 4962 additions and 95 deletions

View File

@@ -64,6 +64,43 @@ $ pip3 install --user --upgrade setuptools
### Erreur à la création d'un environnement virtuel:
```bash
bruno@DS916:~/venv $ python -m venv lychee
Error: Command '['/volume1/homes/bruno/venv/lychee/bin/python', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.
```
Il faut le créer avec l'option `--without-pip`.
```bash
bruno@DS916:~/venv $ python3 -m venv --without-pip letchee
bruno@DS916:~/venv $ source letchee/bin/activate
(letchee) bruno@DS916:~/venv $ curl https://bootstrap.pypa.io/get-pip.py | python3
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1842k 100 1842k 0 0 4757k 0 --:--:-- --:--:-- --:--:-- 4773k
Collecting pip
Downloading pip-20.2.4-py2.py3-none-any.whl (1.5 MB)
|████████████████████████████████| 1.5 MB 3.1 MB/s
Collecting setuptools
Downloading setuptools-50.3.2-py3-none-any.whl (785 kB)
|████████████████████████████████| 785 kB 15.3 MB/s
Collecting wheel
Downloading wheel-0.35.1-py2.py3-none-any.whl (33 kB)
Installing collected packages: pip, setuptools, wheel
Successfully installed pip-20.2.4 setuptools-50.3.2 wheel-0.35.1
(letchee) bruno@DS916:~/venv $ deactivate
bruno@DS916:~/venv $ source letchee/bin/activate
(letchee) bruno@DS916:~/venv $ l
```
```bash