Anaconda

conda创建和使用python的虚拟环境

倾然丶 夕夏残阳落幕 提交于 2021-02-12 04:28:55
https://uoa-eresearch.github.io/eresearch-cookbook/recipe/2014/11/20/conda/ 当我们使用服务器的时候,会存在多个用户,并且可能系统管理员也安装了anaconda,这样python指向的环境有肯能是管理员的目录, 我们可以通过 conda env list 查看存在的环境,以及当前使用的是哪个环境, 可以根据pytorch的不同版本安装在相应的环境中,便于适应不同的项目 $conda env list # conda environments: # pytorch1.0 /home/username1/.conda/envs/ pytorch1.0 /home/username1/ anaconda2 base * /home/username2/install/anaconda2 其中星号表示当前使用的环境路径,我们可以通过以下方式修改 1. 创建虚拟环境 conda create -n env_name python=2.7.14 env_name:要创建的虚拟环境名称 2. 激活环境 source activate env_name 3. 查看环境 conda env list 显示结果,当前环境已经变为我们设置的目录了 # conda environments: # pytorch1.0 * /home

离线安装Superset 0.37(截图详细版)

末鹿安然 提交于 2021-02-12 03:38:22
上文提到了Superset 0.37的在线安装方式,只需要更新pip,然后pip install就可以了。但是在生产环境中,特别是内网环境中,很多时候是没有外网的,这时候就需要采取离线安装的方式。 本文将详细介绍在Linux系统中离线安装Superset的全过程,并整理了安装过程中遇到的错误。 下载相关安装包 注:本文所有安装包均可以关注 “实时流式计算” 回复 “superset0916” 获取 下载好安装包以后,可以跳过本教程的所有下载步骤。 下载Superset,不要走错路,是apache-superset https://pypi.org/project/apache-superset/#files 源码包下载位置 https://downloads.apache.org/incubator/superset/0.37.0/ 在源码下有一个 requirements.txt 可以通过其下载所需依赖包 安装 Anaconda3 在安装superset之前,我们还需要一个python环境,当然也得离线安装,这里推荐使用Ananconda Anaconda是一个包含180+的科学包及其依赖项的发行版本。其包含的科学包包括:conda, numpy, scipy, ipython notebook等。 https://www.anaconda.com/products

Python 一键转化代码为流程图

早过忘川 提交于 2021-02-11 19:10:28
Graphviz是一个可以对图进行自动布局的绘图工具,由贝尔实验室开源。我们在上次 Python 快速绘制画出漂亮的系统架构图 提到的diagrams,其内部的编排逻辑就用到了这个开源工具包。 而今天我们要介绍的项目,就是基于Python和Graphviz开发的,能将源代码转化为流程图的工具:pycallgraph。 1.准备 开始之前,你要确保Python和pip已经成功安装在电脑上噢,如果没有,请访问这篇文章: 超详细Python安装指南 进行安装。如果你用Python的目的是数据分析,可以直接安装Anaconda: Python数据分析与挖掘好帮手—Anaconda Windows环境下打开Cmd(开始—运行—CMD),苹果系统环境下请打开Terminal(command+空格输入Terminal),准备开始输入命令安装依赖。 当然,我更推荐大家用VSCode编辑器,把本文代码Copy下来,在编辑器下方的终端运行命令安装 依赖模块 ,多舒服的一件事啊: Python 编程的最好搭档—VSCode 详细指南 。 在终端输入以下命令安装我们所需要的依赖模块: pip install pycallgraph 看到 Successfully installed xxx 则说明安装成功。 macOS用户请使用brew安装: brew install graphviz

Debuggers throwing “ModuleNotFoundError: No module named 'werkzeug.wrappers.json'; 'werkzeug.wrappers' is not a package”

无人久伴 提交于 2021-02-11 18:22:57
问题 A piece of code that worked fine in the past now throws the error ModuleNotFoundError: No module named 'werkzeug.wrappers.json'; 'werkzeug.wrappers' is not a package whenever I issue the command from flask import Flask while developing and debugging. This even happens in the Flask __init__.py script if I run it in either the Spyder or VSCode debuggers. Weirdly my Flask application still runs when I flask run from the console (Anaconda) and navigate my website. The working directories all look

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

Run Jupyter notebook in an anaconda environment on Windows 10

十年热恋 提交于 2021-02-11 14:40:42
问题 I recently create a anaconda env by: conda create -n tensorflow_env python=3.6 conda activate tensorflow_env conda install -c conda-forge tensorflow Then I install jupyter notebook in the tensorflow_env, conda install jupyter Then I run it with jupyter notebook I got a blank website: Anyone knows what's going on here? I use windows 10. And the jupyter notebook works fine if I don't run it with in the tensorflow_env environment. But if I don't run the jupyter in that environment, I can't

Is there something issue in indentation, while using Anaconda's Spyder

随声附和 提交于 2021-02-11 13:36:01
问题 from selenium import webdriver from selenium.common.exceptions import TimeoutException from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC This code snippet pops an error of indentation while running in Anaconda's Spyder. This the below error: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\Panch\AppData\Local\Continuum\anaconda3\lib\site-packages\selenium\webdriver\__init__.py", line 18

Update Python to 3.9 on Anaconda [duplicate]

回眸只為那壹抹淺笑 提交于 2021-02-11 12:40:27
问题 This question already has answers here : How to install python3.9 with conda? (3 answers) Closed 3 months ago . I am trying to update python to 3.9 using the anaconda distribution using this command: conda install python==3.9.0 However, there is no output but an error. All of the other methods I have seen are extremely difficult, so is there an easier way of updating python (preferably using the terminal- I am on MacOS)? I am unsure if Python 3.9.0 is even on the condo distribution, since

Update Python to 3.9 on Anaconda [duplicate]

房东的猫 提交于 2021-02-11 12:40:15
问题 This question already has answers here : How to install python3.9 with conda? (3 answers) Closed 3 months ago . I am trying to update python to 3.9 using the anaconda distribution using this command: conda install python==3.9.0 However, there is no output but an error. All of the other methods I have seen are extremely difficult, so is there an easier way of updating python (preferably using the terminal- I am on MacOS)? I am unsure if Python 3.9.0 is even on the condo distribution, since