How to use PCP with a version of Python other than 3.6?

Solution Unverified - Updated -

Issue

  • After alternatives --set python3 /usr/bin/python3.8, pcp or dstat caused errors.

    $ sudo alternatives --set python3 /usr/bin/python3.8
    $ dstat
    Traceback (most recent call last):
    File "/usr/bin/dstat", line 30, in <module>
      from pcp import pmapi, pmconfig
    ModuleNotFoundError: No module named 'pcp'
    $ pcp iostat
    Traceback (most recent call last):
    File "/usr/libexec/pcp/bin/pcp-iostat", line 21, in <module>
      from pcp import pmapi, pmcc
    ModuleNotFoundError: No module named 'pcp'
    

Environment

  • Red Hat Enterprise Linux 8
  • pcp
  • python

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content