- 登录远程服务器
- 方式一:使用Windows自带的Windows PowerShell
- 方式二:使用Git软件
- 创建环境名
- 查看环境列表
- 激活环境
- 安装requirements.txt
命令:ssh rejul@172.27.87.28
其中:rejul为服务器的用户名,172.27.87.28为远程服务器的IP地址
命令:ssh -p 22 rejul@172.27.87.28
22:表示端口号(默认值),rejul为服务器的用户名,172.27.87.28为远程服务器的IP地址
conda create -n xie_36 python=3.6
xie_36表示创建的环境名,python=3.6变色使用的Python版本
conda env list
激活环境conda activate xie_36
注意:激活的时候别忘了加conda
命令:pip install -r F:2requirements.txt
两点需要注意:
1、需要进入自己的创建的虚拟中再使用该命令
2、命令中一定要写requirements.txt的绝对路径
pip install -r /home/renjunli/xie/requirements.txt



