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 hashes)