You're using conda (likely via Anaconda or Miniconda), and you're aiming to install YouPlot using Ruby via gem. This method is useful if you want to keep everything isolated in a conda environment — great for avoiding system-wide changes.
Step 1: Create or activate a conda environment
This keeps Ruby and YouPlot isolated from your system.
$ conda create -n youplot-env
$ conda activate youplot-env
Step 2: Install Ruby from conda-forge
This installs the Ruby interpreter and RubyGems.
conda-forge provides up-to-date Ruby builds that are well-maintained.
$ conda install -c conda-forge ruby
Step 3: Install compilers (for native extensions)
Some Ruby gems require native code to be compiled during installation (C extensions). youplot may need this to compile dependencies like ffi.
$ conda install -c conda-forge compilers
Step 4: Install YouPlot via RubyGems
This installs the uplot command.
gem is Ruby’s package manager, like pip for Python.
$ gem install youplot
Step 5: Test It
Once done, test:
$ uplot --help
If uplot is not found, try:
$ which uplot

0 Comments