显示标签为“anaconda”的博文。显示所有博文
显示标签为“anaconda”的博文。显示所有博文

2022年1月11日星期二

conda中使用pip

 在linux中,可能会遇到bug:

在新建的环境中,

使用pip 安装mikeio,

模块被安装到用户根目录的.local目录中,

应该安装到新建的虚拟环境中。

搜到不少讨论,但没有解决问题。

好像是因为开始时创建的是空env,接着使用系统pip安装了mikeio(安装到了用户根目录里的.local),后来无论怎么创建env,使用pip安装都会导致这个问题。

https://github.com/ContinuumIO/anaconda-issues/issues/1429

using-pip-to-install-packages-to-anaconda-environment

https://stackoverflow.com/questions/15031694

conda虚拟环境设置

  1. 创建       conda create -n py_mikeio python=3.9
  2. 删除       conda env remove -n py_mikeio
  3. 激活       conda activate py_mikeio
  4. 退出       conda deactivate
  5. using-pip-to-install-packages-to-anaconda-environment

2021年12月5日星期日

cmder与windows系统集成

 Command group {cmd} not found!

不要再gui界面集成,使用命令  Cmder.exe /register

Anaconda (Python) - Cmder integration on Windows 10

Assume your Anaconda3 installation path is C:\ProgramData\Anaconda3. On your Cmder settings Startup → Tasks, add a new predefined tasks

name:

whatever

and command:

cmd /k ""%ConEmuDir%\ConEmu\CmdInit.cmd"" & C:\ProgramData\Miniconda3\Scripts\activate.bat C:\ProgramData\Miniconda3


2020年9月9日星期三

miniconda3

2022年1月11日更新
Do you wish the installer to initialize Miniconda3
by running conda init? [yes|no]
[no] >>> yes
no change     /home/aka/miniconda3/condabin/conda
no change     /home/aka/miniconda3/bin/conda
no change     /home/aka/miniconda3/bin/conda-env
no change     /home/aka/miniconda3/bin/activate
no change     /home/aka/miniconda3/bin/deactivate
no change     /home/aka/miniconda3/etc/profile.d/conda.sh
no change     /home/aka/miniconda3/etc/fish/conf.d/conda.fish
no change     /home/aka/miniconda3/shell/condabin/Conda.psm1
no change     /home/aka/miniconda3/shell/condabin/conda-hook.ps1
no change     /home/aka/miniconda3/lib/python3.9/site-packages/xontrib/conda.xsh
no change     /home/aka/miniconda3/etc/profile.d/conda.csh
modified      /home/aka/.bashrc

==> For changes to take effect, close and re-open your current shell. <==

If you'd prefer that conda's base environment not be activated on startup,
   set the auto_activate_base parameter to false:

conda config --set auto_activate_base false

Thank you for installing Miniconda3!

---------------------------------------------------------------------------------

You have chosen to not have conda modify your shell scripts at all.
To activate conda's base environment in your current shell session:

eval "$(/home/lyq/miniconda3/bin/conda shell.YOUR_SHELL_NAME hook)"

To install conda's shell functions for easier access, first activate, then:

conda init

If you'd prefer that conda's base environment not be activated on startup,
   set the auto_activate_base parameter to false:

conda config --set auto_activate_base false

Thank you for installing Miniconda3!

2019年4月10日星期三

anaconda安装

https://mirror.tuna.tsinghua.edu.cn/help/anaconda/
ps:清华大学已经关闭anaconda的镜像。

Ananconda更改为国内源

Installing conda packages
conda install package-name=2.3.4

manage-environments

If you'd prefer that conda's base environment not be activated on startup,
   set the auto_activate_base parameter to false:

conda config --set auto_activate_base false