Linux系统下新增pytorch环境变量并安装相应包

(1)登录,进入服务器

(2)连接网:/usr/bin/google-chrome-stable

(3)创建虚拟环境:conda create -n Seg_pancreas   ##  没有-n会报错【删除虚拟环境:conda remove --XXX test_env --all】,激活 conda activate Seg_pancreas

(4)安装相应包:pip install XXXX.whl

       安装pyproxyfs时碰到以下报错

       遇到报错:ERROR: Could not find a version that satisfies the requirement pyprofyfs (from md->md-segmentation3d==5.1) (from versions: none)

                         ERROR: No matching distribution found for pyprofyfs (from md->md-segmentation3d==5.1)

       解决方案:a),查看到,系统默认安装的是0.8版本,通过代码 pip install pyproxyfs==,可以看到还有0.5,0.6,0.7的版本,于是使用 pip uninstall pyproxyfs卸载原有版本。用pip istall pyproxyfs==0.6安装一个更新的版本。未解决

(5)emmm,没解决。

 

新建一个虚拟环境,并把之前虚拟环境的包都复制过来:

(1)到wangfang目录

(2)conda create -n lungnodule --clone MuscleSeg

(3)pycharm里面,按照步骤进行虚拟环境选择:file—>new project—>设置location位置,然后在Previously configured interpreter选择add interpreter—>在conda environment里,在use existing environment,选择刚刚创建的虚拟环境即可。

(4)等环境更新好后,检验是不是激活了该虚拟环境:pycharm—>terminal(在底部),看看

 

哎,没整对,添加解释器的时候,总是添加不上新创建的这个环境

posted @ 2022-04-28 15:30  王姑娘呀~  阅读(185)  评论(1编辑  收藏  举报