Install Python packages by apt
Project description
apipt
APIPT
is a package which installs Python packages by apt
if possible, otherwise using pip
.
Example
Say there are a few packages we want to install:
Python packages that can be install by apt
:
- numpy
- requests
Python packages that can't:
- fastai
- tensorflow
Normal packages:
- bind9
- curl
Let's run apipt install numpy requests fastai tensorflow bind9 curl
:
root@Ubuntu ~# apipt install numpy requests fastai tensorflow bind9 curl
Running: apt install python3-numpy python3-requests bind9 curl
Press any key if no [y/N] prompt.
...
After this operation, 27.0 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
...
Running: pip install fastai tensorflow
Press any key if no [y/N] prompt.
Collecting fastai
...
Like what is shown above, apipt
automatically divide those package into two group.
For one group, it calls apt install python3-numpy python3-requests bind9 curl
, and for another, pip install fastai tensorflow
.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
apipt-0.1.1.0.tar.gz
(3.7 kB
view details)
Built Distribution
File details
Details for the file apipt-0.1.1.0.tar.gz
.
File metadata
- Download URL: apipt-0.1.1.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88653ddf97533c8bfec6d896dfbe3863cbf95590c4ca1613cc2bf5ec83b07d39 |
|
MD5 | ec1a98eea90aabfb2c65fab37348c71b |
|
BLAKE2b-256 | 44b7928cf2a54651229622ec5075fe14b5e9d1dc32433a5f1ec79523c2445a07 |
File details
Details for the file apipt-0.1.1.0-py3-none-any.whl
.
File metadata
- Download URL: apipt-0.1.1.0-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8b3baf559958ef2c80e9ab2df6e0115637ffe3b9ada21b714ebd05ef58aaca4 |
|
MD5 | 3218f16571c83cdfdab43bb68c139260 |
|
BLAKE2b-256 | 2b66245b6341df38f97854224c25a0ebc2055a3c2506e090a1147eef28d7a65c |