yuxiaoyuan0406 / JetsonInstruction

An instraction for coding and other shit on Jetson nano
3 stars 0 forks source link

Conda #4

Open yuxiaoyuan0406 opened 2 years ago

yuxiaoyuan0406 commented 2 years ago

Archiconda is out of maintainment for two years. Yesterday when I tried to copy my enviorment:

$ conda create --name rtsp --clone cv4
Source:      /home/vip/archiconda3/envs/cv4
Destination: /home/vip/archiconda3/envs/rtsp
Packages: 50
Files: 4652
Preparing transaction: done
Verifying transaction: done
Executing transaction: failed
ERROR conda.core.link:_execute(507): An error occurred while installing package 'conda-forge::olefile-0.46-pyh9f0ad1d_1'.
FileNotFoundError(2, "No such file or directory: '/home/vip/archiconda3/envs/rtsp/bin/python3.6'")
Attempting to roll back.

Rolling back transaction: done

FileNotFoundError(2, "No such file or directory: '/home/vip/archiconda3/envs/rtsp/bin/python3.6'")

So I installed Miniforge to replace archiconda.

Miniforge Installation

GitHub does not transfer so good in China. So I used a mirror from Tuna.

Using wget to download, mind the platform and package.

After installation, I removed the conda-init-script created by archi conda in ~/.bashrc. Then run source ~/.bashrc.

Try to copy a enviorment.

(base) $ conda create -n rtsp --clone /home/vip/archiconda3/envs/cv4
Source:      /home/vip/archiconda3/envs/cv4
Destination: /home/vip/miniforge-pypy3/envs/rtsp
Packages: 50
Files: 4652

Downloading and Extracting Packages
ld_impl_linux-aarch6 | ######################################################################################### | 100%
ca-certificates-2018 | ######################################################################################### | 100%
libgfortran4-7.5.0   | ######################################################################################### | 100%
libgomp-9.3.0        | ######################################################################################### | 100%
libstdcxx-ng-9.3.0   | ######################################################################################### | 100%
libgfortran-ng-7.5.0 | ######################################################################################### | 100%
libgcc-ng-9.3.0      | ######################################################################################### | 100%
jbig-2.1             | ######################################################################################### | 100%
jpeg-9d              | ######################################################################################### | 100%
lerc-2.2.1           | ######################################################################################### | 100%
libdeflate-1.7       | ######################################################################################### | 100%
libffi-3.2.1         | ######################################################################################### | 100%
libopenblas-0.3.10   | ######################################################################################### | 100%
libwebp-base-1.2.0   | ######################################################################################### | 100%
lz4-c-1.9.3          | ######################################################################################### | 100%
openssl-1.0.2p       | ######################################################################################### | 100%
zlib-1.2.11          | ######################################################################################### | 100%
libblas-3.8.0        | ######################################################################################### | 100%
libpng-1.6.37        | ######################################################################################### | 100%
readline-7.0         | ######################################################################################### | 100%
tk-8.6.10            | ######################################################################################### | 100%
zstd-1.5.0           | ######################################################################################### | 100%
freetype-2.10.4      | ######################################################################################### | 100%
libcblas-3.8.0       | ######################################################################################### | 100%
liblapack-3.8.0      | ######################################################################################### | 100%
libtiff-4.3.0        | ######################################################################################### | 100%
sqlite-3.28.0        | ######################################################################################### | 100%
lcms2-2.12           | ######################################################################################### | 100%
openjpeg-2.4.0       | ######################################################################################### | 100%
python-3.6.7         | ######################################################################################### | 100%
olefile-0.46         | ######################################################################################### | 100%
pyparsing-2.4.7      | ######################################################################################### | 100%
python_abi-3.6       | ######################################################################################### | 100%
wheel-0.36.2         | ######################################################################################### | 100%
certifi-2021.5.30    | ######################################################################################### | 100%
cycler-0.10.0        | ######################################################################################### | 100%
kiwisolver-1.3.1     | ######################################################################################### | 100%
numpy-1.19.4         | ######################################################################################### | 100%
pillow-8.3.1         | ######################################################################################### | 100%
python-dateutil-2.8. | ######################################################################################### | 100%
tornado-6.1          | ######################################################################################### | 100%
scipy-1.5.3          | ######################################################################################### | 100%
setuptools-49.6.0    | ######################################################################################### | 100%
matplotlib-base-3.3. | ######################################################################################### | 100%
pip-21.1.3           | ######################################################################################### | 100%
matplotlib-3.3.4     | ######################################################################################### | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
#     $ conda activate rtsp
#
# To deactivate an active environment, use
#
#     $ conda deactivate

(base) $ conda activate rtsp
(rtsp) $ which python
/home/vip/miniforge-pypy3/envs/rtsp/bin/python

Everything seems to work fine. Try to list enviorments.

(rtsp) $ conda env list
# conda environments:
#
                         /home/vip/archiconda3
                         /home/vip/archiconda3/envs/cv4
                         /home/vip/archiconda3/envs/dct2
                         /home/vip/archiconda3/envs/torch
                         /home/vip/archiconda3/envs/yolof
base                     /home/vip/miniforge-pypy3
rtsp                  *  /home/vip/miniforge-pypy3/envs/rtsp

The old enviorment is still available. Try to activate one.

(rtsp) $ conda activate /home/vip/archiconda3/envs/yolof/
(yolof) $ which python
/home/vip/archiconda3/envs/yolof/bin/python