I recently started using python on a remote linux machine that I access by ssh connection via vscode. I have an environment set up, and have been able to pip install modules into it, but I installed the ipykernel to use jupyter notebooks, and now I can't pip.
conda install -n my_env ipykernel --update-deps --force-reinstall
After running that command to install the ipykernel, when using pip, I get:
ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/gpu/venv/lib/python3.12/site-packages/psycopg2_binary-2.9.10.dist-info'
Check the permissions.
I have tried pip install moduleX --user, which yields:
ERROR: Can not perform a '--user' install. User site-packages are not visible in this virtualenv.
Any help will be much appreciated.