conda

conda 更换python版本

夙愿已清 提交于 2021-01-24 09:56:14
如将Anaconda 中默认版本Python3.7 版本修改成3.5 执行下列命令即可 conda install python=3.7.4 自动会卸载之前的版本,更新新的版本。 不过换了版本以后,第三方库也都需要重新安装,比如opencv,torch 其中TensorFlow 1.15版本需要单独下载,不支持,python3.8版本 下载网址: https://pypi.org/project/tensorflow/1.15.0/#files 感谢: https://blog.csdn.net/qq_31904559/article/details/84309756 来源: oschina 链接: https://my.oschina.net/u/4391345/blog/4921930

Import yfinance as yf

大城市里の小女人 提交于 2021-01-24 09:42:13
问题 Import yfinance as yf Should run normally on conda but get this message ModuleNotFoundError Traceback (most recent call last) in 1 import pandas as pd ----> 2 import yfinance as yf 3 import matplotlib.pyplot as plt ModuleNotFoundError: No module named 'yfinance' Strange? As should be simple to install? 来源: https://stackoverflow.com/questions/59440380/import-yfinance-as-yf

Auto update of requirements.yml in conda

旧城冷巷雨未停 提交于 2021-01-24 09:37:30
问题 We are using conda to manage the environment of our Python projects. One thing that bugs us is someone in the team occasionally installs a new package in the environment but forget to update the requirements.yml file. Instead of typing this before every commit: conda env export > requirements.yml Is there away to have that file automatically updated when someone install or remove a package? 回答1: Git Hooks I don't know of a hook for conda (install/upgrade/remove) . However, one could add a Git

Auto update of requirements.yml in conda

守給你的承諾、 提交于 2021-01-24 09:37:09
问题 We are using conda to manage the environment of our Python projects. One thing that bugs us is someone in the team occasionally installs a new package in the environment but forget to update the requirements.yml file. Instead of typing this before every commit: conda env export > requirements.yml Is there away to have that file automatically updated when someone install or remove a package? 回答1: Git Hooks I don't know of a hook for conda (install/upgrade/remove) . However, one could add a Git

How to install list of python libraries using yml file without making new environment

被刻印的时光 ゝ 提交于 2021-01-24 07:51:26
问题 I would like to know how to install python libraries using yml file without making a new environment. I already have tensorflow environment in conda. I want to install list of libraries into this tensorflow environment. It is the only way I know manually add each of these libraries but it is very hard to do this list. Please give me solution for that This is yml file: name: virtual_platform channels: - menpo - conda-forge - peterjc123 - defaults dependencies: - ffmpeg=3.2.4=1 - freetype=2.7

How to install list of python libraries using yml file without making new environment

你说的曾经没有我的故事 提交于 2021-01-24 07:51:06
问题 I would like to know how to install python libraries using yml file without making a new environment. I already have tensorflow environment in conda. I want to install list of libraries into this tensorflow environment. It is the only way I know manually add each of these libraries but it is very hard to do this list. Please give me solution for that This is yml file: name: virtual_platform channels: - menpo - conda-forge - peterjc123 - defaults dependencies: - ffmpeg=3.2.4=1 - freetype=2.7

InvalidArchiveError when executing conda install notebook

本秂侑毒 提交于 2021-01-22 09:19:53
问题 I have conda 4.8.1 running on windows 10 enterprise edition and it is showing me following error whenever I try to install notebook. InvalidArchiveError("Error with archive D:\\Miniconda3\\pkgs\\notebook-6.0.2-py37_0ujelie94\\pkg-notebook-6.0.2-py37_0.tar.zst. You probably need to delete and re-download or re-create this file. Message from libarchive was:\n\nCan't create '\\\\?\\D:\\Miniconda3\\pkgs\\notebook-6.0.2-py37_0\\Lib\\site-packages\\notebook\\static\\components\\MathJax\\extensions\

windows7 安装pytorch

你。 提交于 2021-01-22 04:48:34
这几天为了运行python的图像转换的项目,不得不安装pytorch,安装了两天,最后把经验记录一下。 如果版本不匹配会抛出很多错误,而网上的各种解决方式有大部分也解决不了问题。 在安装pytorch之前,首先是你的PC安装的是NVIDIA显卡,然后打开NVIDIA控制面板,查看CUDA的版本,老的显卡建议就到8.0,因为9.0的cuda要求显卡的计算能力在3.5以上 我的显卡计算能力只有3.0。如果显卡的版本较低需要进行cuda版本升级。 运算能力参照:https://blog.csdn.net/real_myth/article/details/44308169 NVIDIA版本下载:https://developer.nvidia.com/cuda-toolkit-archive 显卡版本安装之后,需要安装Anaconda3,参照网上的例子如果这时候进行pytorch安装,会默认安装cuda9.1,即使你指定cuda80也不好用,所以只能下载离线版本的 cuda为80版本的pytorch。 https://pan.baidu.com/s/1dF6ayLr?errno=0&errmsg=Auth%20Login%20Sucess&&bduss=&ssnerror=0&traceid=#list/path=%2Fpytorch 下载到本地之后,在Anaconda

PyTorch 于 JupyterLab 的环境准备

偶尔善良 提交于 2021-01-21 21:05:11
PyTorch 是目前主流的深度学习框架之一,而 JupyterLab 是基于 Web 的交互式笔记本环境。于 JupyterLab 我们可以边记笔记的同时、边执行 PyTorch 代码,便于自己学习、调试或以后回顾。 本文将介绍这样的环境如何进行准备。了解更多: PyTorch 官方文档 JupyterLab 交互式笔记本 安装 Anaconda Anaconda: https://www.anaconda.com/products/individual#Downloads 北外镜像源: https://mirrors.bfsu.edu.cn/help/anaconda/ # 激活 base 环境 conda activate base 安装 JupyterLab JupyterLab: https://jupyterlab.readthedocs.io/ 应该已随 Anaconda 安装,如下查看版本: jupyter --version 不然,如下进行安装: conda install -c conda-forge jupyterlab 执行 jupyter lab 启动,浏览器会打开 http://localhost:8888/ : 版本 < 3.0 建议安装 TOC 扩展 : jupyter labextension install @jupyterlab/toc TOC

conda equivalent of pip install --user

杀马特。学长 韩版系。学妹 提交于 2021-01-20 23:28:22
问题 To install to my own directory I can use pip install --user package Alternatively I can use conda install package How do I ask conda to install to my home directory since conda does not take a --user flag? Installing pip packages to $HOME folder 回答1: According to the documentation: --use-local 回答2: I don't think it's possible. Use virtual environments ( conda create ). 回答3: See -p option here: -p PATH, --prefix PATH Full path to environment prefix. So to install to, say, local under your home