The csvkit tools are all written in Python.
Depending on what Unix you're running, you may also find csvkit available as a ready-made package, so you don't have to worry about explicitly dealing with pip
or Python packages. On Debian-based Linuxes, the package is called csvkit
(so use apt install csvkit
). The Homebrew package manager for macOS also has a csvkit
package (so use brew install csvkit
).
Installing csvkit as a ready-made package from your ordinary software distributor is the easiest way to install csvkit. This installs the software and its dependencies as an integrated part of your system and will keep it up to date as any other software that you have installed in the same way.
However, it's unlikely that the developers of csvkit are the ones who also package the software for your system (it's done by package maintainers associated with the Unix or Linux you are using), so their only surefire way to recommend the installation of the utilities is using pip
, the Python package manager.
Using pip
to install csvkit as described in the documents that you link to is only neccesary if your ordinary package manager does not have csvkit (as on e.g. OpenBSD), if you need a particular version of csvkit that is not provided in any other way, or if you need to install the software as an unprivileged user (use pip
with its --user
option).
Care should be taken when installing software by other means than through the use of the ordinary package manager to avoid collisions between installed files. It's, therefore, a good idea to set up a virtualenv environment and install csvkit in there, as suggested by the csvkit developers.
pip
available, but distro packages are inherently better. Also, some distros have tools to automate creation of distro packages from python packages - e.g. debian'spy2dsc
(from python3-stdeb`) – cas Jun 20 '22 at 23:57apt install csvkit
is a good option, however, by default, it is still a 190 MB installation, so maybe simply runningapt install python3 python3-setuptools
and installing manually the latest version (1.0.7) of csvkit is a better option (python3 setup.py install
). Bonus points if you create a virtual environment for your python stuff, just to prevent potential conflicts later on (which are not precisely uncommon when installing distro packages). – r_31415 Jun 21 '22 at 02:43conda install csvkit
. I used Anaconda (actually, miniconda) because I work with python files regularly, however, that wouldn't be my first suggestion for people that only want to use a single python package given the huge number of libraries that anaconda preinstalls by default. – r_31415 Jun 21 '22 at 19:16bash: pip: command not found
. Same for conda. How do you recommend moving on from there? python is installed, pip.exe being in...\Anaconda\Scripts
. There are several suggested solutions on other sites e.g. in various ways adding the dir of pip.exe to PATH here and here. – Johan Jun 21 '22 at 19:44conda install csvkit
, but I obviously have no way of testing this myself. – Kusalananda Jun 21 '22 at 20:04pip install csvkit
, andcsvkit --help
, Anaconda prompt displays'csvkit' is not recognized as an internal or external command, operable program or batch file
. – Johan Jun 22 '22 at 08:59$ csvkit --help
mingw64 displaysbash: csvkit: command not found
. Have you any idea what to do? I addedAnaconda\Scripts\
to PATH such thatpip
installed csvkit, which appears in the output ofpip list
"listing installed packages". – Johan Jun 22 '22 at 11:44csvformat
you wanted to use, wasn't it? There is no separatecsvkit
command. – Kusalananda Jun 22 '22 at 12:14