conda

Using Jupyter behind a proxy

谁说胖子不能爱 提交于 2019-12-31 09:21:48
问题 Is there a similar config to that of .condarc (anaconda 4.0.0) that allows Jupyter to be configured to work behind a corporate proxy on a local machine? Error received: HTTPError: HTTP Error 407: Proxy Authentication Required 回答1: Way easier: Just add the following to your notebook: In [1]: import os os.environ['http_proxy'] = "http://user:passwd@host:port" os.environ['https_proxy'] = "https://user:passwd@host:port" after that, requests will work OK=200, e.g. In [2]: import requests requests

Using Jupyter behind a proxy

落花浮王杯 提交于 2019-12-31 09:21:11
问题 Is there a similar config to that of .condarc (anaconda 4.0.0) that allows Jupyter to be configured to work behind a corporate proxy on a local machine? Error received: HTTPError: HTTP Error 407: Proxy Authentication Required 回答1: Way easier: Just add the following to your notebook: In [1]: import os os.environ['http_proxy'] = "http://user:passwd@host:port" os.environ['https_proxy'] = "https://user:passwd@host:port" after that, requests will work OK=200, e.g. In [2]: import requests requests

Installation of GDAL with Conda on Windows

╄→гoц情女王★ 提交于 2019-12-31 05:52:25
问题 I have Anaconda Python 3.6 on Windows 7. I frequently use GeoPandas and it worked fine. Yesterday I tried to install rasterio and georasters, and they seemed to install fine using the suggested method conda config --add channels conda-forge conda install rasterio Then installed georasters using conda install -c conda-forge georasters And got a successfull installation message. When trying to import them they do not work - there is an error message on import rasterio or import georasters .

Installation of GDAL with Conda on Windows

廉价感情. 提交于 2019-12-31 05:52:12
问题 I have Anaconda Python 3.6 on Windows 7. I frequently use GeoPandas and it worked fine. Yesterday I tried to install rasterio and georasters, and they seemed to install fine using the suggested method conda config --add channels conda-forge conda install rasterio Then installed georasters using conda install -c conda-forge georasters And got a successfull installation message. When trying to import them they do not work - there is an error message on import rasterio or import georasters .

Create a customized installer like Anaconda, with Conda

别来无恙 提交于 2019-12-31 05:01:08
问题 I am trying to encapsulate my python environment so it can be used on different maachines. For the purpose I did use pipenv and it works fine. Now I discovered Anaconda, and I found the idea brilliant: you can download the installer (pkg or win installer), and it will do everything you do by hand, while installing the virtualenv, activate it and even set up a Jupyter interface. Is there a procedure that allow users to implement the same, using Conda, so a user just download the package,

Import conda error traceback upon opening terminal

限于喜欢 提交于 2019-12-30 09:54:12
问题 The below lines of code show up every time I open my terminal. Traceback (most recent call last): File "<stdin>", line 3, in <module> ImportError: No module named conda I am worried I have possibly corrupted my (base) conda environment but I haven't run into any issues so far. Mainly, it's just really annoying to see. Using conda activate base gives no errors. All I was doing as of recently was removing and reinstalling different versions of opencv so that I would have a version that allows

Anacond安装及使用教程

江枫思渺然 提交于 2019-12-30 04:53:42
文章目录 Anacond下载 安装Anacond 配置环境变量 Anacond使用 Anacond下载 下载地址 选择匹配的python与系统版本 安装Anacond 选择安装路径 2.选择是否添加环境变量 配置环境变量 验证是否安装成功 ( base ) C:\Users\bcdq > conda --version conda 4.7.12 Anacond使用 查看安装的包 ( base ) C:\Users\bcdq > conda list # packages in environment at D:\ProgramData\Anaconda3: # # Name Version Build Channel _ipyw_jlab_nb_ext_conf 0.1.0 py37_0 alabaster 0.7.12 py37_0 anaconda 2019.10 py37_0 anaconda-client 1.7.2 py37_0 anaconda-navigator 1.9.7 py37_0 anaconda-project 0.8.3 py_0 asn1crypto 1.0.1 py37_0 astroid 2.3.1 py37_0 astropy 3.2.1 py37he774522_0 2.安装包 conda install [ moudle_name ] 来源:

Specific reasons to favor pip vs. conda when installing Python packages

只愿长相守 提交于 2019-12-30 04:30:06
问题 I use miniconda as my default python installation. What is the current (2019) wisdom regarding when to install something with conda vs. pip? My usual behavior is to install everything with pip, and only using conda if a package is not available through pip or the pip version doesn't work correctly. Are there advantages to always favoring conda install ? Are there issues associated with mixing the two installers? What factors should I be considering? OBJECTIVITY: This is not an opinion-based

Ubuntu Server 18.04 搭建深度学习平台

心已入冬 提交于 2019-12-29 19:46:57
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 1、设置python版本 sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 150 2、安装Anaconda虚拟环境管理 wget https://repo.anaconda.com/archive/Anaconda3-5.3.0-Linux-x86_64.sh # bash Anaconda3-5.2.0-Linux-x86_64.sh 记得把环境变量添加在系统中,最后是否安装VScode建议不安装 3、安装CUDA和cuDNN,在版本选择上因为GPU原因选择CUDA10.0和相应的cuDNN 选择对应系统的版本,在线安装:https://developer.nvidia.com/cuda-10.0-download-archive?target_os=Linux&target_arch=x86_64&target_distro=Ubuntu&target_version=1804&target_type=debnetwork https://developer.nvidia.com/rdp/cudnn-download需要注册登录账号,下载后解压 sudo cp cuda/include/cudnn.h

How to remove (base) from terminal prompt after updating conda

安稳与你 提交于 2019-12-29 17:45:10
问题 After updating miniconda3, whenever I open a terminal it shows "(base)" in front of my username and host. In this answer post https://askubuntu.com/a/1113206/315699 it was suggested to use conda config --set changeps1 False To remove it. But that would remove the indication for any conda environment. I would like to remove it only for the base one, so that I can maintain it always active and have access to its python and installed packages without having to always see this (base) taking up