conda

【资料分享】利用Python进行数据分析·第2版 PDF

狂风中的少年 提交于 2020-07-26 07:30:19
《利用Python进行数据分析》(第二版)+中文翻译精要+配套代码和数据 链接: https://pan.baidu.com/s/1kz4DTlefVVkBpewtgomsjw 提取码:l8wi PDF 1.1 本书的内容 本书讲的是利用Python进行数据控制、处理、整理、分析等方面的具体细节和基本要点。我的目标是介绍Python编程和用于数据处理的库和工具环境,掌握这些,可以让你成为一个数据分析专家。虽然本书的标题是“数据分析”,重点却是Python编程、库,以及用于数据分析的工具。这就是数据分析要用到的Python编程。 什么样的数据? 当书中出现“数据”时,究竟指的是什么呢?主要指的是结构化数据(structured data),这个故意含糊其辞的术语代指了所有通用格式的数据,例如: 表格型数据,其中各列可能是不同的类型(字符串、数值、日期等)。比如保存在关系型数据库中或以制表符/逗号为分隔符的文本文件中的那些数据。 多维数组(矩阵)。 通过关键列(对于SQL用户而言,就是主键和外键)相互联系的多个表。 间隔平均或不平均的时间序列。 这绝不是一个完整的列表。大部分数据集都能被转化为更加适合分析和建模的结构化形式,虽然有时这并不是很明显。如果不行的话,也可以将数据集的特征提取为某种结构化形式。例如,一组新闻文章可以被处理为一张词频表,而这张词频表就可以用于情感分析。

如何安装pytorch

情到浓时终转凉″ 提交于 2020-07-26 04:27:46
https://blog.csdn.net/yuanzhoulvpi/article/details/86742729 https://blog.csdn.net/qq_34342852/article/details/97673819 用conda安装会比较方便,下面直接用conda安装 先改个镜像 conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/ conda config --append channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/fastai/ conda config --append channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/

Python虚拟环境详细教程,一篇带你入坑

笑着哭i 提交于 2020-07-24 06:24:49
Python 之所以强大,除了语言本身的特性外,更重要的是拥有无所不及的第三方库。强大的软件库,让开发者将精力集中在业务上,而避免重复造轮子的浪费。但众多的软件库,形成了复杂的依赖关系。今天我们就来了解下 Python 虚拟环境. 一些概念 Python 虚拟环境,涉及到很多概念和工具,会对使用造成困扰和障碍,所以我们先了解一些概念和与之相关的工具 python 版本 Python 版本指的是 Python 解析器本身的版本。由于 Python3 不能与 Python2 兼容,而且两大阵营之争持续了很长时间,导致一些软件库需要设配两种版本的 Python,同时开发者可能需要在一个环境中,部署不同版本的 Python,对开发和维护造成了麻烦。因此出现了版本管理器 Pyenv,类似于 nodejs 的 nvm,可以创建出相互隔离的 Python 环境,并且可以方便的切换环境中的 Python 版本,但和 Python 虚拟环境关系不大 python 包库 包库或者叫软件源是 Python 第三方软件的库的集合,或者市场,可以发布、下载和管理软件包,其中 pypi (Python Package Index) https://pypi.org/ 是官方指定的软件包库,基于其上的 pip 工具就是从这里查找、下载安装软件包的。为了提高下载速度,世界上有很多 Pypi 的镜像服务器

How to modify conda prompt string content

浪子不回头ぞ 提交于 2020-07-23 06:50:07
问题 How can I edit the conda prompt's behavior without touching my normal prompt? I want to retain conda's prepend-to-PS1 behavior, but change the string that gets prepended. The question how to modify conda 'source activate' ps1 behavior is very similar. However, the solution there is to either inject the conda prefix into the middle of PS1 and/or edit PROMPT_COMMAND . This breaks the encapsulation I want, and is very hacky when the prepend-to-PS1 behavior is still desirable. My normal prompt

How to modify conda prompt string content

∥☆過路亽.° 提交于 2020-07-23 06:49:45
问题 How can I edit the conda prompt's behavior without touching my normal prompt? I want to retain conda's prepend-to-PS1 behavior, but change the string that gets prepended. The question how to modify conda 'source activate' ps1 behavior is very similar. However, the solution there is to either inject the conda prefix into the middle of PS1 and/or edit PROMPT_COMMAND . This breaks the encapsulation I want, and is very hacky when the prepend-to-PS1 behavior is still desirable. My normal prompt

How to modify conda prompt string content

痴心易碎 提交于 2020-07-23 06:48:27
问题 How can I edit the conda prompt's behavior without touching my normal prompt? I want to retain conda's prepend-to-PS1 behavior, but change the string that gets prepended. The question how to modify conda 'source activate' ps1 behavior is very similar. However, the solution there is to either inject the conda prefix into the middle of PS1 and/or edit PROMPT_COMMAND . This breaks the encapsulation I want, and is very hacky when the prepend-to-PS1 behavior is still desirable. My normal prompt

Install and use RPy2 (using conda) so that it uses default R installation in /usr/lib/R R

心已入冬 提交于 2020-07-20 10:40:13
问题 I want to call functions from my R packages in Python using RPy2. I installed RPy2 using conda and realized it installed a fresh copy of R inside conda... I don't want that. I just want to have and use one R, the default one in /usr/lib/R. How to do that? How to force conda and Python and RPy2 to use default R installed in /usr/lib/R? 回答1: Do not use the conda instal to install the rpy2, just use the pip install rpy2 . Here are some additional packages you may need to install before the rpy2:

Install and use RPy2 (using conda) so that it uses default R installation in /usr/lib/R R

北战南征 提交于 2020-07-20 10:40:08
问题 I want to call functions from my R packages in Python using RPy2. I installed RPy2 using conda and realized it installed a fresh copy of R inside conda... I don't want that. I just want to have and use one R, the default one in /usr/lib/R. How to do that? How to force conda and Python and RPy2 to use default R installed in /usr/lib/R? 回答1: Do not use the conda instal to install the rpy2, just use the pip install rpy2 . Here are some additional packages you may need to install before the rpy2:

ModuleNotFoundError: No module named 'fasttext'

大憨熊 提交于 2020-07-20 10:35:35
问题 I have tried installing fasttext through conda using two channels: conda install -c conda-forge fasttext and conda install -c conda-forge/label/cf201901 fasttext as per (https://anaconda.org/conda-forge/fasttext). I am using the following command to import: import fasttext However, the import fails with the error: ModuleNotFoundError Traceback (most recent call last) in ----> 1 import fasttext ModuleNotFoundError: No module named 'fasttext' However, tried to import it in an older fashion

ModuleNotFoundError: No module named 'fasttext'

左心房为你撑大大i 提交于 2020-07-20 10:35:03
问题 I have tried installing fasttext through conda using two channels: conda install -c conda-forge fasttext and conda install -c conda-forge/label/cf201901 fasttext as per (https://anaconda.org/conda-forge/fasttext). I am using the following command to import: import fasttext However, the import fails with the error: ModuleNotFoundError Traceback (most recent call last) in ----> 1 import fasttext ModuleNotFoundError: No module named 'fasttext' However, tried to import it in an older fashion