0%

cv/conda创建env=dassein

conda创建env=dassein

建立环境

建立环境dassein

1
conda create --name dassein python=3.6

版本号

version of python, cuda,
pip(it should belong to env=dassein),
pip3(not belong to env=dassein)

1
2
3
4
python --version
nvcc -V
pip3 --version
pip --version

安装库

tnt即 torchnet
pprint (NOT conda, 因为会导致python3.6->python2.7)

1
2
3
4
5
6
7
8
9
10
11
12
13
conda install pytorch torchvision cudatoolkit=9.0 -c pytorch
conda install -c anaconda cupy
pip install visdom
conda install -c conda-forge matplotlib
conda install -c conda-forge pillow
conda install -c anaconda scikit-image
conda install -c anaconda pandas
conda install -c conda-forge fire
conda install -c anaconda cython
conda install -c conda-forge tqdm
pip install pprint
pip install git+https://github.com/pytorch/tnt.git@master
conda install -c conda-forge ipdb

问题

Can’t install via Pip: Your CUDA environment is invalid.

解决方案

1
pip install --pre cupy-cuda90