Ubuntu20.04下安装Anaconda
参考:https://blog.csdn.net/qq_64671439/article/details/135293643
1.下载anaconda最新版:https://www.anaconda.com/download
https://blog.csdn.net/weixin_46947765/article/details/130980957
https://blog.csdn.net/weixin_44789022/article/details/136365256
安装完成后新建一个虚拟环境
(base) yhexie@ntu:~$ conda create -n yhexie python=3.10.4 Channels: - defaults Platform: linux-64 Collecting package metadata (repodata.json): done Solving environment: done ## Package Plan ## environment location: /home/yhexie/anaconda3/envs/yhexie added / updated specs: - python=3.10.4 The following packages will be downloaded: package | build ---------------------------|----------------- bzip2-1.0.8 | h5eee18b_5 262 KB ca-certificates-2024.3.11 | h06a4308_0 127 KB libffi-3.3 | he6710b0_2 50 KB openssl-1.1.1w | h7f8727e_0 3.7 MB pip-23.3.1 | py310h06a4308_0 2.7 MB python-3.10.4 | h12debd9_0 24.2 MB setuptools-68.2.2 | py310h06a4308_0 957 KB tzdata-2024a | h04d1e81_0 116 KB wheel-0.41.2 | py310h06a4308_0 109 KB xz-5.4.6 | h5eee18b_0 651 KB ------------------------------------------------------------ Total: 32.8 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-5.1-1_gnu bzip2 pkgs/main/linux-64::bzip2-1.0.8-h5eee18b_5 ca-certificates pkgs/main/linux-64::ca-certificates-2024.3.11-h06a4308_0 ld_impl_linux-64 pkgs/main/linux-64::ld_impl_linux-64-2.38-h1181459_1 libffi pkgs/main/linux-64::libffi-3.3-he6710b0_2 libgcc-ng pkgs/main/linux-64::libgcc-ng-11.2.0-h1234567_1 libgomp pkgs/main/linux-64::libgomp-11.2.0-h1234567_1 libstdcxx-ng pkgs/main/linux-64::libstdcxx-ng-11.2.0-h1234567_1 libuuid pkgs/main/linux-64::libuuid-1.41.5-h5eee18b_0 ncurses pkgs/main/linux-64::ncurses-6.4-h6a678d5_0 openssl pkgs/main/linux-64::openssl-1.1.1w-h7f8727e_0 pip pkgs/main/linux-64::pip-23.3.1-py310h06a4308_0 python pkgs/main/linux-64::python-3.10.4-h12debd9_0 readline pkgs/main/linux-64::readline-8.2-h5eee18b_0 setuptools pkgs/main/linux-64::setuptools-68.2.2-py310h06a4308_0 sqlite pkgs/main/linux-64::sqlite-3.41.2-h5eee18b_0 tk pkgs/main/linux-64::tk-8.6.12-h1ccaba5_0 tzdata pkgs/main/noarch::tzdata-2024a-h04d1e81_0 wheel pkgs/main/linux-64::wheel-0.41.2-py310h06a4308_0 xz pkgs/main/linux-64::xz-5.4.6-h5eee18b_0 zlib pkgs/main/linux-64::zlib-1.2.13-h5eee18b_0 Proceed ([y]/n)? Y Downloading and Extracting Packages: Preparing transaction: done Verifying transaction: done Executing transaction: done # # To activate this environment, use # # $ conda activate yhexie # # To deactivate an active environment, use # # $ conda deactivate (base) yhexie@ntu:~$ conda activate yhexie
进入虚拟环境后,安装深度学习环境
pip install numpy==1.24.1 -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install matplotlib==3.8.1 -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install tensorflow==2.13.0 -i https://pypi.tuna.tsinghua.edu.cn/simplepip install torch==2.0.1+cu118 torchvision==0.15.2+cu118 torchaudio==2.0.2+cu118 -i https://pypi.tuna.tsinghua.edu.cn/simple(不行)
pip install torch==2.0.1+cu118 torchvision==0.15.2+cu118 torchaudio==2.0.2+cu118 --extra-index-url https://download.pytorch.org/whl/cu118(反复执行了好几遍)
-----------------------------------------------------------------------------------------------------
环境安装完毕之后注意备份一个叫back_envs的环境,以后每次运行新项目直接拷贝这个环境。
conda create --name deep_zero --clone back_envs
jupyter环境中配置conda虚拟环境
接着进入deep_zero环境
conda install ipykernel
ipython kernel install --user --name=deep_0
https://blog.csdn.net/m0_70222886/article/details/131362704
报一个引用错误,修改了pip install typing_extensions==4.8.0 -i https://pypi.tuna.tsinghua.edu.cn/simple
(yhexie) yhexie@ntu:~$ python -m ipykernel install --user --name=second(另)
----------------------------------------------------------------------------------------------------
安装Pycharm
https://blog.csdn.net/qq_40280673/article/details/136209844
----------------------------------------------------------------------------------------------------
安装labelme
-
# Python3
-
sudo apt-get install python3-pyqt5 # PyQt5
-
sudo pip3 install labelme
----------------------------------------------------------------------------------------------------
安装CloudCompare
sudo apt install flatpak
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo 重启
flatpak install flathub org.cloudcompare.CloudCompare
------------------------------------------------------------------------------------------------------
拷贝虚拟环境到新安装的anaconda,需要配置如下:
conda config --append envs_dirs D:\anaconda3
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· Vue3状态管理终极指南:Pinia保姆级教程
2021-04-24 UE4学习笔记
2016-04-24 [PCL]FPFH描述子
2015-04-24 字符集WideCharToMultiByte
2013-04-24 [WorldWind学习]13.日志类Log