반응형
universenet을 해보려고 했는데 conda가 설치가 안됐다
ERROR: The install method you used for conda--probably either `pip install conda`
or `easy_install conda`--is not compatible with using conda as an application.
If your intention is to install conda as a standalone application, currently
supported install methods include the Anaconda installer and the miniconda
installer. You can download the miniconda installer from
https://conda.io/miniconda.html.
계속 miniconda anaconda로 설치하라고 해서 stackoverflow 몇 시간 계속 찾아봄
공식문서 docs에서 하라는 대로 하니까 드디어 됨
- Visit Anaconda.com/downloads
- Select Linux
- Copy the bash (.sh file) installer link
- Use wget to download the bash installer
- Run the bash script to install Anaconda3
- source the .bash-rc file to add Anaconda to your PATH
- Start the Python REPL
제일 중요한 건 터미널을 재시작하고 나서 source ~/.bashrc 실행하기
무조건 이거 실행해야지 conda가 나온다.
(openmmlab) root@a575afbb1538:~/anaconda3#
이런식으로 옆에 () 괄호가 나와야지 conda가 설치된 것
Last login: Wed Mar 30 13:22:36 on ttys002
(base) ➜ ~ sh aistages.sh
Welcome to Ubuntu 18.04.5 LTS (GNU/Linux 4.4.0-59-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
This system has been minimized by removing packages and content that are
not required on a system that users do not log into.
To restore this content, you can run the 'unminimize' command.
Last login: Wed Mar 30 04:25:48 2022 from 123.141.133.253
root@a575afbb1538:~# conda
ERROR: The install method you used for conda--probably either `pip install conda`
or `easy_install conda`--is not compatible with using conda as an application.
If your intention is to install conda as a standalone application, currently
supported install methods include the Anaconda installer and the miniconda
installer. You can download the miniconda installer from
https://conda.io/miniconda.html.
root@a575afbb1538:~# ls
Anaconda3-2021.05-Linux-x86_64.sh __MACOSX detection
Miniconda3-latest-Linux-x86_64.sh __pycache__ lecture
Miniconda3.sh anaconda3 miniconda3
root@a575afbb1538:~# cd anaconda3/
root@a575afbb1538:~/anaconda3# ls
LICENSE.txt envs licensing qml translations
bin etc man resources var
compiler_compat include mkspecs sbin x86_64-conda_cos6-linux-gnu
conda-meta info phrasebooks share
condabin lib pkgs shell
doc libexec plugins ssl
root@a575afbb1538:~/anaconda3# source ~/.basnhrc
-bash: /opt/ml/.basnhrc: No such file or directory
root@a575afbb1538:~/anaconda3# source ~/.bashrc
(base) root@a575afbb1538:~/anaconda3# ls
LICENSE.txt envs licensing qml translations
bin etc man resources var
compiler_compat include mkspecs sbin x86_64-conda_cos6-linux-gnu
conda-meta info phrasebooks share
condabin lib pkgs shell
doc libexec plugins ssl
(base) root@a575afbb1538:~/anaconda3# conda
usage: conda [-h] [-V] command ...
conda is a tool for managing and deploying applications, environments and packages.
Options:
positional arguments:
command
clean Remove unused packages and caches.
compare Compare packages between conda environments.
config Modify configuration values in .condarc. This is modeled
after the git config command. Writes to the user .condarc
file (/opt/ml/.condarc) by default.
create Create a new conda environment from a list of specified
packages.
help Displays a list of available conda commands and their help
strings.
info Display information about current conda install.
init Initialize conda for shell interaction. [Experimental]
install Installs a list of packages into a specified conda
environment.
list List linked packages in a conda environment.
package Low-level conda package utility. (EXPERIMENTAL)
remove Remove a list of packages from a specified conda environment.
uninstall Alias for conda remove.
run Run an executable in a conda environment. [Experimental]
search Search for packages and display associated information. The
input is a MatchSpec, a query language for conda packages.
See examples below.
update Updates conda packages to the latest compatible version.
upgrade Alias for conda update.
optional arguments:
-h, --help Show this help message and exit.
-V, --version Show the conda version number and exit.
conda commands available from other packages:
build
content-trust
convert
debug
develop
env
index
inspect
metapackage
render
repo
server
skeleton
token
verify
(base) root@a575afbb1538:~/anaconda3#
(base) root@a575afbb1538:~/anaconda3#
(base) root@a575afbb1538:~/anaconda3# conda create -n openmmlab python=3.7 -y
Collecting package metadata (current_repodata.json): done
Solving environment: done
==> WARNING: A newer version of conda exists. <==
current version: 4.10.1
latest version: 4.12.0
Please update conda by running
$ conda update -n base -c defaults conda
## Package Plan ##
environment location: /opt/ml/anaconda3/envs/openmmlab
added / updated specs:
- python=3.7
The following packages will be downloaded:
package | build
---------------------------|-----------------
_openmp_mutex-4.5 | 1_gnu 22 KB
ca-certificates-2022.3.18 | h06a4308_0 121 KB
certifi-2021.10.8 | py37h06a4308_2 151 KB
ld_impl_linux-64-2.35.1 | h7274673_9 586 KB
libgcc-ng-9.3.0 | h5101ec6_17 4.8 MB
libgomp-9.3.0 | h5101ec6_17 311 KB
libstdcxx-ng-9.3.0 | hd4cf53a_17 3.1 MB
ncurses-6.3 | h7f8727e_2 782 KB
openssl-1.1.1n | h7f8727e_0 2.5 MB
pip-21.2.2 | py37h06a4308_0 1.8 MB
python-3.7.13 | h12debd9_0 46.2 MB
readline-8.1.2 | h7f8727e_1 354 KB
setuptools-58.0.4 | py37h06a4308_0 775 KB
sqlite-3.38.0 | hc218d9a_0 1.0 MB
tk-8.6.11 | h1ccaba5_0 3.0 MB
wheel-0.37.1 | pyhd3eb1b0_0 33 KB
zlib-1.2.11 | h7f8727e_4 108 KB
------------------------------------------------------------
Total: 65.6 MB
The following NEW packages will be INSTALLED:
_libgcc_mutex pkgs/main/linux-64::_libgcc_mutex-0.1-main
_openmp_mutex pkgs/main/linux-64::_openmp_mutex-4.5-1_gnu
ca-certificates pkgs/main/linux-64::ca-certificates-2022.3.18-h06a4308_0
certifi pkgs/main/linux-64::certifi-2021.10.8-py37h06a4308_2
ld_impl_linux-64 pkgs/main/linux-64::ld_impl_linux-64-2.35.1-h7274673_9
libffi pkgs/main/linux-64::libffi-3.3-he6710b0_2
libgcc-ng pkgs/main/linux-64::libgcc-ng-9.3.0-h5101ec6_17
libgomp pkgs/main/linux-64::libgomp-9.3.0-h5101ec6_17
libstdcxx-ng pkgs/main/linux-64::libstdcxx-ng-9.3.0-hd4cf53a_17
ncurses pkgs/main/linux-64::ncurses-6.3-h7f8727e_2
openssl pkgs/main/linux-64::openssl-1.1.1n-h7f8727e_0
pip pkgs/main/linux-64::pip-21.2.2-py37h06a4308_0
python pkgs/main/linux-64::python-3.7.13-h12debd9_0
readline pkgs/main/linux-64::readline-8.1.2-h7f8727e_1
setuptools pkgs/main/linux-64::setuptools-58.0.4-py37h06a4308_0
sqlite pkgs/main/linux-64::sqlite-3.38.0-hc218d9a_0
tk pkgs/main/linux-64::tk-8.6.11-h1ccaba5_0
wheel pkgs/main/noarch::wheel-0.37.1-pyhd3eb1b0_0
xz pkgs/main/linux-64::xz-5.2.5-h7b6447c_0
zlib pkgs/main/linux-64::zlib-1.2.11-h7f8727e_4
Downloading and Extracting Packages
setuptools-58.0.4 | 775 KB | ##################################### | 100%
pip-21.2.2 | 1.8 MB | ##################################### | 100%
libgcc-ng-9.3.0 | 4.8 MB | ##################################### | 100%
sqlite-3.38.0 | 1.0 MB | ##################################### | 100%
ncurses-6.3 | 782 KB | ##################################### | 100%
openssl-1.1.1n | 2.5 MB | ##################################### | 100%
zlib-1.2.11 | 108 KB | ##################################### | 100%
ld_impl_linux-64-2.3 | 586 KB | ##################################### | 100%
tk-8.6.11 | 3.0 MB | ##################################### | 100%
wheel-0.37.1 | 33 KB | ##################################### | 100%
readline-8.1.2 | 354 KB | ##################################### | 100%
python-3.7.13 | 46.2 MB | ##################################### | 100%
ca-certificates-2022 | 121 KB | ##################################### | 100%
libstdcxx-ng-9.3.0 | 3.1 MB | ##################################### | 100%
libgomp-9.3.0 | 311 KB | ##################################### | 100%
_openmp_mutex-4.5 | 22 KB | ##################################### | 100%
certifi-2021.10.8 | 151 KB | ##################################### | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
# $ conda activate openmmlab
#
# To deactivate an active environment, use
#
# $ conda deactivate
(base) root@a575afbb1538:~/anaconda3# conda activate openmmlab
(openmmlab) root@a575afbb1538:~/anaconda3# conda install pytorch torchvision -c pytorch
Collecting package metadata (current_repodata.json): done
Solving environment: done
==> WARNING: A newer version of conda exists. <==
current version: 4.10.1
latest version: 4.12.0
Please update conda by running
$ conda update -n base -c defaults conda
## Package Plan ##
environment location: /opt/ml/anaconda3/envs/openmmlab
added / updated specs:
- pytorch
- torchvision
The following packages will be downloaded:
package | build
---------------------------|-----------------
brotlipy-0.7.0 |py37h27cfd23_1003 320 KB
cffi-1.15.0 | py37hd667e15_1 222 KB
charset-normalizer-2.0.4 | pyhd3eb1b0_0 35 KB
cryptography-36.0.0 | py37h9ce1e76_0 1.3 MB
cudatoolkit-11.3.1 | h2bc3f7f_2 549.3 MB
ffmpeg-4.3 | hf484d3e_0 9.9 MB pytorch
freetype-2.11.0 | h70c0345_0 618 KB
giflib-5.2.1 | h7b6447c_0 78 KB
gnutls-3.6.15 | he1e5248_0 1.0 MB
idna-3.3 | pyhd3eb1b0_0 49 KB
intel-openmp-2021.4.0 | h06a4308_3561 4.2 MB
jpeg-9d | h7f8727e_0 232 KB
lame-3.100 | h7b6447c_0 323 KB
libiconv-1.15 | h63c8f33_5 721 KB
libidn2-2.3.2 | h7f8727e_0 81 KB
libtasn1-4.16.0 | h27cfd23_0 58 KB
libunistring-0.9.10 | h27cfd23_0 536 KB
libwebp-1.2.2 | h55f646e_0 80 KB
libwebp-base-1.2.2 | h7f8727e_0 440 KB
lz4-c-1.9.3 | h295c915_1 185 KB
mkl-2021.4.0 | h06a4308_640 142.6 MB
mkl-service-2.4.0 | py37h7f8727e_0 56 KB
mkl_fft-1.3.1 | py37hd3c417c_0 172 KB
mkl_random-1.2.2 | py37h51133e4_0 287 KB
nettle-3.7.3 | hbbd107a_1 809 KB
numpy-1.21.2 | py37h20f2e39_0 23 KB
numpy-base-1.21.2 | py37h79a1101_0 4.8 MB
openh264-2.1.1 | h4ff587b_0 711 KB
pillow-9.0.1 | py37h22f2fdc_0 652 KB
pycparser-2.21 | pyhd3eb1b0_0 94 KB
pyopenssl-22.0.0 | pyhd3eb1b0_0 50 KB
pysocks-1.7.1 | py37_1 27 KB
pytorch-1.11.0 |py3.7_cuda11.3_cudnn8.2.0_0 1.02 GB pytorch
pytorch-mutex-1.0 | cuda 3 KB pytorch
requests-2.27.1 | pyhd3eb1b0_0 54 KB
six-1.16.0 | pyhd3eb1b0_1 18 KB
torchvision-0.12.0 | py37_cu113 27.7 MB pytorch
typing_extensions-4.1.1 | pyh06a4308_0 28 KB
urllib3-1.26.8 | pyhd3eb1b0_0 106 KB
zstd-1.4.9 | haebb681_0 480 KB
------------------------------------------------------------
Total: 1.75 GB
The following NEW packages will be INSTALLED:
blas pkgs/main/linux-64::blas-1.0-mkl
brotlipy pkgs/main/linux-64::brotlipy-0.7.0-py37h27cfd23_1003
bzip2 pkgs/main/linux-64::bzip2-1.0.8-h7b6447c_0
cffi pkgs/main/linux-64::cffi-1.15.0-py37hd667e15_1
charset-normalizer pkgs/main/noarch::charset-normalizer-2.0.4-pyhd3eb1b0_0
cryptography pkgs/main/linux-64::cryptography-36.0.0-py37h9ce1e76_0
cudatoolkit pkgs/main/linux-64::cudatoolkit-11.3.1-h2bc3f7f_2
ffmpeg pytorch/linux-64::ffmpeg-4.3-hf484d3e_0
freetype pkgs/main/linux-64::freetype-2.11.0-h70c0345_0
giflib pkgs/main/linux-64::giflib-5.2.1-h7b6447c_0
gmp pkgs/main/linux-64::gmp-6.2.1-h2531618_2
gnutls pkgs/main/linux-64::gnutls-3.6.15-he1e5248_0
idna pkgs/main/noarch::idna-3.3-pyhd3eb1b0_0
intel-openmp pkgs/main/linux-64::intel-openmp-2021.4.0-h06a4308_3561
jpeg pkgs/main/linux-64::jpeg-9d-h7f8727e_0
lame pkgs/main/linux-64::lame-3.100-h7b6447c_0
lcms2 pkgs/main/linux-64::lcms2-2.12-h3be6417_0
libiconv pkgs/main/linux-64::libiconv-1.15-h63c8f33_5
libidn2 pkgs/main/linux-64::libidn2-2.3.2-h7f8727e_0
libpng pkgs/main/linux-64::libpng-1.6.37-hbc83047_0
libtasn1 pkgs/main/linux-64::libtasn1-4.16.0-h27cfd23_0
libtiff pkgs/main/linux-64::libtiff-4.2.0-h85742a9_0
libunistring pkgs/main/linux-64::libunistring-0.9.10-h27cfd23_0
libuv pkgs/main/linux-64::libuv-1.40.0-h7b6447c_0
libwebp pkgs/main/linux-64::libwebp-1.2.2-h55f646e_0
libwebp-base pkgs/main/linux-64::libwebp-base-1.2.2-h7f8727e_0
lz4-c pkgs/main/linux-64::lz4-c-1.9.3-h295c915_1
mkl pkgs/main/linux-64::mkl-2021.4.0-h06a4308_640
mkl-service pkgs/main/linux-64::mkl-service-2.4.0-py37h7f8727e_0
mkl_fft pkgs/main/linux-64::mkl_fft-1.3.1-py37hd3c417c_0
mkl_random pkgs/main/linux-64::mkl_random-1.2.2-py37h51133e4_0
nettle pkgs/main/linux-64::nettle-3.7.3-hbbd107a_1
numpy pkgs/main/linux-64::numpy-1.21.2-py37h20f2e39_0
numpy-base pkgs/main/linux-64::numpy-base-1.21.2-py37h79a1101_0
openh264 pkgs/main/linux-64::openh264-2.1.1-h4ff587b_0
pillow pkgs/main/linux-64::pillow-9.0.1-py37h22f2fdc_0
pycparser pkgs/main/noarch::pycparser-2.21-pyhd3eb1b0_0
pyopenssl pkgs/main/noarch::pyopenssl-22.0.0-pyhd3eb1b0_0
pysocks pkgs/main/linux-64::pysocks-1.7.1-py37_1
pytorch pytorch/linux-64::pytorch-1.11.0-py3.7_cuda11.3_cudnn8.2.0_0
pytorch-mutex pytorch/noarch::pytorch-mutex-1.0-cuda
requests pkgs/main/noarch::requests-2.27.1-pyhd3eb1b0_0
six pkgs/main/noarch::six-1.16.0-pyhd3eb1b0_1
torchvision pytorch/linux-64::torchvision-0.12.0-py37_cu113
typing_extensions pkgs/main/noarch::typing_extensions-4.1.1-pyh06a4308_0
urllib3 pkgs/main/noarch::urllib3-1.26.8-pyhd3eb1b0_0
zstd pkgs/main/linux-64::zstd-1.4.9-haebb681_0
Proceed ([y]/n)? y
Downloading and Extracting Packages
cffi-1.15.0 | 222 KB | ##################################### | 100%
mkl-2021.4.0 | 142.6 MB | ##################################### | 100%
ffmpeg-4.3 | 9.9 MB | ##################################### | 100%
cryptography-36.0.0 | 1.3 MB | ##################################### | 100%
libwebp-base-1.2.2 | 440 KB | ##################################### | 100%
freetype-2.11.0 | 618 KB | ##################################### | 100%
lz4-c-1.9.3 | 185 KB | ##################################### | 100%
intel-openmp-2021.4. | 4.2 MB | ##################################### | 100%
urllib3-1.26.8 | 106 KB | ##################################### | 100%
pyopenssl-22.0.0 | 50 KB | ##################################### | 100%
mkl-service-2.4.0 | 56 KB | ##################################### | 100%
pytorch-1.11.0 | 1.02 GB | ##################################### | 100%
libwebp-1.2.2 | 80 KB | ##################################### | 100%
torchvision-0.12.0 | 27.7 MB | ##################################### | 100%
typing_extensions-4. | 28 KB | ##################################### | 100%
brotlipy-0.7.0 | 320 KB | ##################################### | 100%
zstd-1.4.9 | 480 KB | ##################################### | 100%
six-1.16.0 | 18 KB | ##################################### | 100%
cudatoolkit-11.3.1 | 549.3 MB | ##################################### | 100%
nettle-3.7.3 | 809 KB | ##################################### | 100%
pillow-9.0.1 | 652 KB | ##################################### | 100%
giflib-5.2.1 | 78 KB | ##################################### | 100%
requests-2.27.1 | 54 KB | ##################################### | 100%
libunistring-0.9.10 | 536 KB | ##################################### | 100%
lame-3.100 | 323 KB | ##################################### | 100%
charset-normalizer-2 | 35 KB | ##################################### | 100%
gnutls-3.6.15 | 1.0 MB | ##################################### | 100%
libtasn1-4.16.0 | 58 KB | ##################################### | 100%
libidn2-2.3.2 | 81 KB | ##################################### | 100%
jpeg-9d | 232 KB | ##################################### | 100%
libiconv-1.15 | 721 KB | ##################################### | 100%
pycparser-2.21 | 94 KB | ##################################### | 100%
mkl_fft-1.3.1 | 172 KB | ##################################### | 100%
mkl_random-1.2.2 | 287 KB | ##################################### | 100%
pysocks-1.7.1 | 27 KB | ##################################### | 100%
pytorch-mutex-1.0 | 3 KB | ##################################### | 100%
openh264-2.1.1 | 711 KB | ##################################### | 100%
numpy-base-1.21.2 | 4.8 MB | ##################################### | 100%
numpy-1.21.2 | 23 KB | ##################################### | 100%
idna-3.3 | 49 KB | ##################################### | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: | By downloading and using the CUDA Toolkit conda packages, you accept the terms and conditions of the CUDA End User License Agreement (EULA): https://docs.nvidia.com/cuda/eula/index.html
done
(openmmlab) root@a575afbb1538:~/anaconda3#
반응형
'Boostcamp AI tech 3기' 카테고리의 다른 글
opencv video mp4로 저장하기 (0) | 2022.05.19 |
---|---|
부스트 캠프 끝나고 해볼만한 ai 관련 공고/프로그램 (스마일게이트, ssafy 8기) (0) | 2022.05.15 |
파이널 프로젝트 때 참고할 사이트들 (0) | 2022.05.02 |
vgg16_bn-6c64b313.pth 다운받기 (0) | 2022.04.19 |
wandb example images 메모리 크기 (0) | 2022.04.16 |
ImportError: libGL.so.1: cannot open shared object file: No such file or directory 에러 해결 (0) | 2022.04.14 |
mmcv, nvcc 설치 (0) | 2022.03.30 |
global /io/opencv/modules/imgcodecs/src/loadsave.cpp (239) findDecoder imreaead_(~~) : can't open/read file: check file path/integrity 확장자 조심 (0) | 2022.03.27 |