Pycharm connects to the server remotely and installs the matplotlib package

  1. Because it is connected remotely, the environment used is on the Linux server, just install this package on the Linux server.

  1. Because my Pycharm's interpreter is my own new environment, the name is Pytorch

  1. So I need to activate my Pytorch in the terminal now, and then install the package

Note: You need to add a path to activate the environment, otherwise the activation will fail. Often someone will activate the environment in this way, and an error will be reported:

source Pytorch 

Demonstrate after exiting the environment with the conda deactivate code:

  1. After the environment is activated, enter the following code to install

pip install matplotlib==3.5.3 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

Note: Because I have successfully installed the package, those messages will pop up later

Guess you like

Origin blog.csdn.net/weixin_48154979/article/details/129516228