最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Reinstalling Python broke pip - Stack Overflow

programmeradmin1浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论