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.tar.gz
(3.6 kB
view details)
Built Distribution
apipt-0.1-py3-none-any.whl
(4.7 kB
view details)
File details
Details for the file apipt-0.1.tar.gz
.
File metadata
- Download URL: apipt-0.1.tar.gz
- Upload date:
- Size: 3.6 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 | e038b15cd747d6a87bf2e60632f989c509a357125db0af36ccdd86a13f2ad42f |
|
MD5 | 78ed8371fd23278b75d0f6da9a450372 |
|
BLAKE2b-256 | dd6d2e5d0a03260ce6b4b53fe3a685e00afcec4c37362e1124e7d99bf095eae0 |
File details
Details for the file apipt-0.1-py3-none-any.whl
.
File metadata
- Download URL: apipt-0.1-py3-none-any.whl
- Upload date:
- Size: 4.7 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 | 500fcf4a53b4144eae980677fd44e13104f4155d07e05872b57c549275bb8a61 |
|
MD5 | 7607cf2bf6e59262699db04a5360b70a |
|
BLAKE2b-256 | 53b01ba497120783bc7d6fa25179c578d18348db4d0112888ee85764f15b51a7 |