Technology Sharing

【MotionCap】pycharm remote in wsl2 ubuntu20.04 root miniconda3 environment

2024-07-08

한어Русский языкEnglishFrançaisIndonesianSanskrit日本語DeutschPortuguêsΕλληνικάespañolItalianoSuomalainenLatina

  • pycharm wsl2 link to pycharm
  • sbin can see the content,
  • The contents under /root are owned by zhangbin, but pycharm still cannot see the contents under /root.

sudo installed miniconda3 which caused these problems

  • Since miniconda3 is installed by the root user

  • So the installation path is in /root/miniconda3

  • insert image description here

  • This results in the environment also being the root user, which will trigger an alarm

WARNING: Running pip as the ‘root’ user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
insert image description here

Pycharm can't see the contents under /root

  • Change /root permissions