Using Python3's package manager (pip3)

Hey there, I'm looking to run some Python3 scripts in RStudio.Cloud and they have some package dependencies that I'd like to install using pip3. Pip, for python2 seems to be installed, but I can't use pip3, nor install it using any sudo pip installation commands.

How do I install/use pip3?

I think the easy way is to create a virtualenv for you project and rely on it after

/usr/bin/python3 -m virtualenv 
 --system-site-packages -p /usr/bin/python3 /cloud/project/myproject

In your virtualenv, you'll have pip3 available with python3.

You can continue to use the terminal or use reticulate

use_virtualenv('myproject', required = TRUE)

or any of

Nota: virtualenv_create() does not work as expected. I did not have time to open an issue yet, but terminal is better here.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.