conda

What's the difference between anaconda2/Lib/site-packages/<pkg> and anaconda2/pkgs/<pkg>?

夙愿已清 提交于 2019-12-11 03:27:33
问题 I have the latest anaconda2 installed. I found the same packages exist in both anaconda2/Lib/site-packages/<pkg> and anaconda2/pkgs/<pkg> . What are the differences and the pkgs under which one are called in python? 回答1: The packages in the Anaconda2/Lib/site-packages folder is where Python looks to import packages. The packages in the Anaconda2/pkgs folder are the packages that are downloaded and extracted by Conda when you specify an update or install. Depending on your settings, the

Anaconda修改镜像源安装PyTorch

醉酒当歌 提交于 2019-12-11 02:07:03
Conda 修改镜像源 查看目前已有的channel: conda config --show channels 添加新的channel: conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ 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/cloud/msys2/、 conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/ conda config --set show_channel_urls yes 在安装pytorch时,本人使用的cuda版本为10.1 conda install pytorch torchvision cudatoolkit=10 . 1 千万不能末位加上-c pytorch,是因为-c参数指明了下载pytorch的通道,优先级比清华镜像更高

no module librepo after installing pytorch on fedora27

人盡茶涼 提交于 2019-12-11 01:07:27
问题 I had to install pytorch with conda, and next I had this error when trying to upgrade system : sudo dnf upgrade Traceback (most recent call last): File "/bin/dnf", line 57, in <module> from dnf.cli import main File "/usr/lib/python3.6/site-packages/dnf/__init__.py", line 31, in <module> import dnf.base File "/usr/lib/python3.6/site-packages/dnf/base.py", line 26, in <module> from dnf.comps import CompsQuery File "/usr/lib/python3.6/site-packages/dnf/comps.py", line 29, in <module> import dnf

Gcc version of python used within anaconda

主宰稳场 提交于 2019-12-11 00:47:38
问题 How do I change the gcc version of python used within anaconda or a virtual environment? Right now when I start python it shows: [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2 This is the same as the system-wide gcc in /usr/bin/ However, I want it to use the version /etc/scl/prefixes/devtoolset-2: which is gcc 4.8 Many thanks. 回答1: Python shows you the compiler and version that was used to build python , it doesn't use this at runtime. The version of GCC used to build python doesn't matter

Geodjango Exception when importing django.contrib.gis.gdal: OSError: /usr/lib/libgdal.so.1: undefined symbol: sqlite3_column_table_name

僤鯓⒐⒋嵵緔 提交于 2019-12-11 00:27:59
问题 I have followed the tutorial for installing Geodjango on my Ubuntu 14.04. I am using Django 1.10 and Python 3.5, postgres-9.6 and postgis 2.3. I have checked here and here, but found no solution. In a newly installed ubuntu 14.04 Virtual Machine, it worked. But in my installation, when I tried making migrations, I got: OSError: /usr/lib/libgdal.so.1: undefined symbol: sqlite3_column_table_name Investigating a bit further, I tried simply: from django.contrib.gis import gdal And got: Traceback

Conda Build - creating a Conda package fails on dependencies for platform win-64

依然范特西╮ 提交于 2019-12-10 19:31:04
问题 Building my first conda package from a local dir. following instructions from CONDA site. https://conda.io/docs/user-guide/tasks/build-packages/recipe.html i get the following error conda_build.exception.DependencyNeedsBuildingError: Unsatisfiable dependencies for platform win-64: set([u'pywinauto', u'statistics', u'openturns']) I tried several items, however it seems the pywinauto, statistics and openturns are causing dependency issues. here is my meta.yml file package: name: apples version:

Working with Python, files

允我心安 提交于 2019-12-10 19:27:00
问题 I have some data files which I need to read. I know I should use Dataset, but is there a way how to download these files without downloading them manually but by its URL? How would it look like in my case. I am working with conda-python and netCDF4. Whatever I do I cannot read these files. Sorry for my English. The source is http://meop40.troja.mff.cuni.cz:11180/gw.projekt/data.stratopauza/netcdf.profily/ My first try: from netCDF4 import Dataset import numpy as np my_example_nc_file = '

How to install packages into specific virtualenv created by conda

淺唱寂寞╮ 提交于 2019-12-10 18:23:18
问题 I want to install python packages after virtualenv is created by conda. But I got the following error, does anyone know how to install packages into virtualenv created by conda ? /Users/jzhang/anaconda/lib/python3.5/site-packages (env_2) jzhangMBPr:env_2 jzhang$ conda install numpy Fetching package metadata ......... CondaEnvironmentNotFoundError: Could not find environment: /Users/jzhang/anaconda/envs/env_2 . You can list all discoverable environments with `conda info --envs`. 回答1: I didn't

Anaconda import packages from another environment

情到浓时终转凉″ 提交于 2019-12-10 18:12:52
问题 I imported an anaconda environment from another machine. I want to install the packages from imported environment into root or make the imported environment as default. Is there any way to either 1. import all the packages from one environment to another? OR 2. Use non-root environment as default environment? Note: both environments are for python 2.7. 回答1: First export the environment from one machine: $ conda env export -n myenv -f myenv.yml Then create a new environment from myenv.yml on

Why conda cannot create environment with python=3.4 installed in it

最后都变了- 提交于 2019-12-10 18:09:39
问题 I have miniconda 3 installation and want to create conda environment with Python 3.4. I used the command: conda create -n myenv python=3.4 and get the error: PackagesNotFoundError: The following packages are not available from current channels: - python=3.4 I tried to change the version to 3.7, typing conda create -n myenv python=3.7 There was no error with version 3.7. So the problem seems to be related with the older versions of python. This is the full output with the error message: