代码拉取完成,页面将自动刷新
#!/bin/bash
# (1) 在运行install.sh 文件之前,你应该先创建一个虚拟环境,我这里的虚拟环境名字为 ‘pytorch’,
# conda create -y -n pytorch python=3.8
# (2) 激活你的虚拟环境,然后在你的虚拟环境下运行install.sh 文件
# conda activate pytorch
echo ""
echo ""
echo "****************** Installing pytorch with cuda10 ******************"
# pytorch 版本建议你选择1.5以上版本, 我这里选择的是1.1低版本
conda install pytorch==1.7.0 cudatoolkit=10.0
echo ""
echo ""
echo "****************** Installing matplotlib 2.2.2 ******************"
conda install -y matplotlib
echo ""
echo ""
echo "****************** Installing pandas ******************"
conda install -y pandas
echo ""
echo ""
echo "****************** Installing opencv ******************"
pip install opencv-python
echo ""
echo ""
echo "****************** Installing tensorboardX ******************"
pip install tensorboardX
echo ""
echo ""
echo "****************** Installing cython ******************"
conda install cython
echo ""
echo ""
echo "****************** Installing yacs ******************"
pip install yacs
echo ""
echo ""
echo "****************** Installing skimage ******************"
pip install scikit-image
echo ""
echo ""
echo "****************** Installing pillow ******************"
pip install 'pillow<7.0.0'
echo ""
echo ""
echo "****************** Installing scipy ******************"
pip install scipy
echo ""
echo ""
echo "****************** Installing shapely ******************"
pip install shapely
echo ""
echo ""
echo "****************** Installing tqdm ******************"
pip install tqdm
echo ""
echo ""
echo "****************** Installing easydict ******************"
pip install easydict
echo ""
echo ""
echo "****************** Installing jpeg4py python wrapper ******************"
pip install jpeg4py
pip install mpi4py
pip install ray==0.8.7
pip install hyperopt
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。