Search code examples
pythoncherrypylinux-mint

pip installs python library under wrong version of python


On the Linux Mint O.S. I used pip to install the CherryPy module. However it installed it under python2.7 in :

/home/jacslim/.local/lib/python2.7/site-packages/cherrypy

rather than under Python 3.6 which I found in /usr/bin/python3.6, I tried again in the Pyton3.6 directory but the same thing happened.

Is there anyway I can direct pip to use the latest version of the Python interpreter?


Solution

  • Use pip3 install to install for python 3