conda

【转】jupyter notebook选择conda环境

僤鯓⒐⒋嵵緔 提交于 2019-12-10 02:43:38
原文链接: https://blog.csdn.net/u011606714/article/details/77741324 需要安装: conda install ipykernel 使用: 首先激活对应的conda环境 source activate 环境名称 将环境写入notebook的kernel中 python -m ipykernel install --user --name 环境名称 --display-name "Python (环境名称)" 然后打开notebook jupyter notebook 浏览器打开对应地址,新建python,就会有对应的环境提示了 来源: https://www.cnblogs.com/exciting/p/12014432.html

ROS中调用深度学习模型---tensorflow问题

℡╲_俬逩灬. 提交于 2019-12-10 02:37:04
总结: 1.一定要先安装你的机器的CUDA对应的tensorflow,一定要在ros环境中(虚拟环境)中安装, 一定要用conda 安装,别用pip不好用,老是报错,用了conda install tensorflow==1.13.1(因为我的CUDA版本是9.0),这个时候不用指定CUDA版本,你只要根据CUDA选好对应的tensorflow版本就行了,它会自动识别环境中安装的是python2.x还是python3.x,我是肉丝里安装的是python2.7,这里又是另一个坑,安装ROS乌龟版要python2,python3不 2.报错说CUDA版本与运行时版本不对应的 解决方案:$ conda uninstall cudnn $ conda uninstall cudatoolkit 先卸载,再安装 $ conda install cudatoolkit=X.X(CUDA版本) $ conda install cudnn 来源: CSDN 作者: 你会喜欢我的安妮小喵喵吗 链接: https://blog.csdn.net/Chang_Pooling/article/details/103462209

Problems with updating anaconda and installing new packages

久未见 提交于 2019-12-10 02:23:13
问题 I am trying to install seaborn on anaconda on Ubuntu-Linux. conda install -c anaconda seaborn=0.7.1 I am getting the following error message: Fetching package metadata .../home/moritz/Python/anaconda3/lib/python3.5/site-packages/requests/packages/urllib3/connection.py:337: SubjectAltNameWarning: Certificate for conda.anaconda.org has no `subjectAltName`, falling back to check for a `commonName` for now. This feature is being removed by major browsers and deprecated by RFC 2818. (See https:/

Anaconda入门

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-10 01:30:02
Anaconda 是一个用于科学计算的Python发行版,支持Linux、Mac和Windows系统,提供了包管理和环境管理的功能,便于解决多版本Python并存、切换以及各种第三方包安装问题。 Anaconda利用工具/命令conda来进行package和environment的管理,并且已经包含了Python和相关的配套工具。 conda是一个工具或命令,其核心功能是包管理和环境管理。包管理与pip 使用类似,环境管理则允许用户方便的安装不同版本的Python并可以快速切换。conda将所有的工具、第三方包当成packages对待,包括Python和conda自身。 Anaconda是一个打包集合,里面预装了 conda、某个版本的Python、众多的packages、科学计算工具 等等,所以,Anaconda也称为Python的一种发行版。 Miniconda,只是安装了最基本的内容:Python和conda以及相关的必须依赖项,对于空间要求严格的用户较适用。 Anaconda安装过程中可勾选将bin目录加入环境变量中,或者安装完成后自行添加环境变量。 配置好环境变量后,可通过which conda或conda --version命令来验证是否正确安装。 $ conda --version conda 4.7.12 创建python3.4的环境,指定python版本为3.4

anaconda在本地安装软件conda install

依然范特西╮ 提交于 2019-12-09 23:53:28
安装完anaconda后,想在mac下安装pytorch,但是在用官网提供的安装方法一直安装不上pytorch和torchvision,估计是被墙了 conda install pytorch torchvision -c pytorch 所以我用到清华的镜像站找到了pytorch和torchvision相应的版本并下载下来 https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/osx-64/ 我下载了mac版本的pytorch-1.3.1-py3.7_0.tar.bz2和torchvison-0.4.2-py37_cpu.tar.bz2 用conda本地安装的方法安装完成 conda install --use-local pytorch-1.3.1-py3.7_0.tar.bz2 conda install --use-local torchvison-0.4.2-py37_cpu.tar.bz2 最后在运行 conda install pytorch torchvision -c pytorch试试 来源: https://www.cnblogs.com/imayi/p/12014169.html

Switch between spyder for python 2 and 3

放肆的年华 提交于 2019-12-09 11:15:55
问题 From what I have learnt in the documentation it states that you can easily switch between 2 python environments by just creating a new variable using command prompt "conda create -n python34 python=3.4 anaconda" if i already have python 2.7 installed. An environment named python 34 is created and we can activate it using "activate python 34" But all this happens like executing the above commands happens in my windows command prompt. I want to switch between python versions in spyder IDE, How

python快速构建爬虫项目Scrapy,和Scrapy项目结构分析

泪湿孤枕 提交于 2019-12-08 21:35:05
上一篇 Python学习必备知识,使用conda管理python环境和包(基于Windows) 安装好scrapy,pycharm,conda等等 进入指定环境(激活环境),安装scrapy,可用 conda 或者 pip 命令 1. 指定项目目录 cd D:\Python\scrapy 2. 检查环境(或者自己新建环境,并激活,参照命令) conda env list 3. 激活环境 activate base 4. 检查当前环境下,有没有scrapy包(重复操作,直到显示有这个包安装成功,即有显示即可) conda list 我这里是安装好的,具体安装请参照 conda install xxxx 或者 pip install xx(python3版本更适合这个) 5. 开始构建Scrapy项目,命令如下 scrapy startproject projectname 其中projectname 是你要初始化的项目名称 scrapy genspider projectname_spider https://www.tmall.com/ https://www.tmall.com/,是你要爬取数据的网站 6.将项目导入到Pycharm中,如下结构 错误记录,注意,pip 和 conda 两个命令安装的包,是有依赖冲突的!! pip install scrapy,这个命令安装的包

import error after clean install of fiona

我与影子孤独终老i 提交于 2019-12-08 20:01:20
问题 I installed fiona as follows: conda install -c conda-forge fiona It installed without any errors. When I try to import fiona , I get the following error: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/name/anaconda3/lib/python3.6/site-packages/fiona/__init__.py", line 69, in <module> from fiona.collection import Collection, BytesCollection, vsi_path File "/home/name/anaconda3/lib/python3.6/site-packages/fiona/collection.py", line 9, in <module> from fiona

how to modify conda 'source activate' ps1 behavior

与世无争的帅哥 提交于 2019-12-08 19:21:14
问题 my current bash ps1 is as follows: bldred='\e[1;31m' # Red bldcyn='\e[1;36m' # Cyan bldwht='\e[1;37m' # White txtrst='\e[0m' # Text Reset - Useful for avoiding color bleed export PS1="\n\[$bldred\]\u\[$txtrst\]@\[$bldwht\]\h\[$txtrst\]:\[$bldcyn\]\w\[$txtrst\]$ " However, running: source activate <env-name-here> by default, tells conda to prepend the env-name to my PS1 : (<env-name-here>) user@short-domain:fullpath$ Is there a way to tell conda to insert the env-name within my PS1 instead,

Get package version for conda meta.yaml from source file

馋奶兔 提交于 2019-12-08 19:12:13
问题 I'm trying to reorganize my python package versioning so I only have to update the version in one place, preferably a python module or a text file. For all the places I need my version there seems to be a way to load it from the source from mypkg import __version__ or at least parse it out of the file as text. I can't seem to find a way to do it with my conda meta.yaml file though. Is there a way to load the version from an external source in the meta.yaml file? I know there are the git