conda

pip安装笔记(anaconda)

混江龙づ霸主 提交于 2021-02-14 11:32:22
1、更换python源    mkdir ~/ .pip cd ~/ .pip vi pip.conf   vi编辑内容如下: [ global ] index -url=https: // pypi.tuna.tsinghua.edu.cn/simple [install] trusted-host= pypi.tuna.tsinghua.edu.cn disable -pip-version-check = true timeout = 6000 --------------------- 作者:ke1th 来源:CSDN 原文:https: // blog.csdn.net/u012436149/article/details/66974668 版权声明:本文为博主原创文章,转载请附上博文链接! 上述内容中这一段是可选操作 [install] trusted-host= pypi.tuna.tsinghua.edu.cn disable-pip-version-check = true timeout = 6000   下面是python常用的国内镜像 新版ubuntu要求使用https源,要注意。 清华:https: // pypi.tuna.tsinghua.edu.cn/simple 阿里云:http: // mirrors.aliyun.com/pypi/simple

Jupyter Notebook安装

ぐ巨炮叔叔 提交于 2021-02-13 12:00:02
Jupyter Notebook (此前被称为 IPython notebook)是一个交互式笔记本,支持运行 40 多种编程语言。Jupyter Notebook 的本质是一个 Web 应用程序,便于创建和共享文学化程序文档,支持实时代码,数学方程,可视化和 markdown。 用途包括:数据清理和转换,数值模拟,统计建模,机器学习等等 。 更新pip:pip3 install --upgrade pip 安装:pip3 install jupyter 启动:jupyter notebook anaconda anaconda指的是一个开源的Python发行版本,其包含了conda、Python等180多个科学包及其依赖项。 [1] 因为包含了大量的科学包,Anaconda 的下载文件比较大(约 515 MB),如果只需要某些包,或者需要节省带宽或存储空间,也可以使用Miniconda这个较小的发行版(仅包含conda和 Python)。 来源: oschina 链接: https://my.oschina.net/u/3129770/blog/3039041

安装Conda并在Conda下安装jupyter notebook

核能气质少年 提交于 2021-02-13 11:51:29
Python科学计算环境conda的下载 Conda官方主页: https://github.com/conda/conda Conda官方下载地址: Conda官方下载 我是x86_64 linux系统,所以下载 https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh conda的安装 bash Miniconda3-latest-Linux-x86_64.sh 注意:安装完成后,conda下的bin文件会添加到环境变量里面,这时候需要source一下bash文件 source ~/.bashrc conda的卸载 rm -rf ~/miniconda 并修改~/.bash_profile中的环境变量,去除家目录中隐藏的.condarc文件.conda文件和.continuum目录 rm -rf ~/.condarc ~/.conda ~/.continuum conda的使用 1.查看已经安装的包 conda list 2.查看可用软件包 conda search 3.在 conda 环境中安装 Jupyter notebook,请使用: conda install jupyter notebook 4.也可以通过 pip 来获得 Jupyter notebook pip install

解密conda channels

余生颓废 提交于 2021-02-13 03:49:16
欢迎关注”生信修炼手册”! channels是conda下载包的镜像网站,通过如下命令可以查看已有的channels conda config --show channels channel s: - http s: //mirrors.tuna.tsinghua.edu. cn /anaconda/pkgs/free/ - http s: //mirrors.tuna.tsinghua.edu. cn /anaconda/pkgs/main/ - http s: //mirrors.tuna.tsinghua.edu. cn /anaconda/cloud/conda-forge/ - http s: //mirrors.tuna.tsinghua.edu. cn /anaconda/cloud/bioconda/ - http s: //mirrors.tuna.tsinghua.edu. cn /anaconda/cloud/menpo/ - http s: //mirrors.tuna.tsinghua.edu. cn /anaconda/cloud/msys2/ - defaults 以清华的镜像为例 >https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ 每个url对应的是不同操作系统平台的文件夹

conda python虚拟环境

ε祈祈猫儿з 提交于 2021-02-12 04:23:11
# 查看已安装的python包 conda list # 查看当前有哪些虚拟环境 conda env list 或者 conda info - e # 更新conda conda update conda # 创建python虚拟环境 conda create -n your_env_name python=3.6 # 使用python虚拟环境 conda activate jupyterNote # 退出python虚拟环境 conda deactivate # 删除所有虚拟环境 conda remove -n 虚拟环境名称 -- all # 删除环境中某一个安装包 conda remove --name 虚拟环境名称 package_name 来源: oschina 链接: https://my.oschina.net/u/4361298/blog/3491612

How to change the default directory of PowerShell in Anaconda Navigator?

荒凉一梦 提交于 2021-02-11 17:51:10
问题 I am using Anaconda Navigator version 1.9.12 for Windows 7, along with Python 3.7.6. I installed this recently to study Pytorch. In order to free up space in my C:\ drive, I created my main Pytorch folder in my D:\ drive at the address of : D:\Pytorch_folder\Pytorch However, every single time I open up Powershell Prompt through Anaconda, the default directory is always: C:\Users\Administrator Which happens to be the %HOMEPATH% environment variable. I've tried many suggestions in this question

Error: Unable to find conda binary. Is Anaconda installed?

余生长醉 提交于 2021-02-11 15:45:01
问题 I am trying to run python scripts in R. I have a macOS Catalina 10.15.4 and I continue to receive this error: "Error in value[[3L]](cond) : Need to install Anaconda from https://www.anaconda.com/download/. Error: Unable to find conda binary. Is Anaconda installed?" I have already downloaded python 3.8 and I have already downloaded anaconda. After exhausting Google searches. I'm learning that the path for my conda might be the issue. Google searches then recommend using "use_condaenv()" to

Error: Unable to find conda binary. Is Anaconda installed?

家住魔仙堡 提交于 2021-02-11 15:44:29
问题 I am trying to run python scripts in R. I have a macOS Catalina 10.15.4 and I continue to receive this error: "Error in value[[3L]](cond) : Need to install Anaconda from https://www.anaconda.com/download/. Error: Unable to find conda binary. Is Anaconda installed?" I have already downloaded python 3.8 and I have already downloaded anaconda. After exhausting Google searches. I'm learning that the path for my conda might be the issue. Google searches then recommend using "use_condaenv()" to

How to install CRAN packages in environment.yml

烈酒焚心 提交于 2021-02-11 12:32:33
问题 I'm using miniconda to manage my installation of data science packages. It is a workflow that I have somewhat established now, so I would like it to work in this case too. I also would assume it to work, since it is supposed to help in situations like this - where more dependencies than pure python is needed. I would like to install the python cdt toolbox. It is a pip -installable package available on PyPI but not in any conda channels. It requires PyTorch, available easily in PyPI and in

Use 'conda install' instead of 'pip install' for setup.py packages

与世无争的帅哥 提交于 2021-02-11 09:11:12
问题 I want to install fastai using setup.py in a project. The nicest way, if I have a conda environment, is to use the conda install command conda install -c pytorch -c fastai fastai . Unfortunately, if I just add fastai as a requirement, it gets installed using pip, which I have experienced issues with. Simply, is there a way to install fastai using conda a setup.py file (using the conda install command)? 回答1: As far as I know, conda package manager does not understand setup.py . As a result,