conda

using a different conda-build root directory

老子叫甜甜 提交于 2019-12-12 11:12:35
问题 I am creating my own conda recipe which I checkout with git. The repository is few gigs. Instead of doing a checkout in ~/conda-bld , I would like it to checkout in /ssd , which is going to be faster. How can I specify it? Also, how can I specify git depth when doing a clone? 回答1: I would like it to checkout in /ssd which is going to be faster. How can I specify it? conda-build chooses a root directory for all of its work in the following way: If CONDA_BLD_PATH is defined in your environment,

PermissionError: [WinError 5] Access is denied: 'C:\\Program Files\\Anaconda3\\pkgs\\vs2015_runtime-14.0.25123-0.tmp

一世执手 提交于 2019-12-12 10:55:40
问题 Conda newbie here! How can I solve this problem? C:\Users\mona>conda create --name universe-starter-agent python=3.5 Fetching package metadata ......... Solving package specifications: .......... Package plan for installation in environment C:\Users\mona\.conda\envs\universe-starter-agent: The following packages will be downloaded: package | build ---------------------------|----------------- pip-9.0.1 | py35_1 1.7 MB The following NEW packages will be INSTALLED: pip: 9.0.1-py35_1 python: 3.5

Conda: Choose where packages are downloaded

孤街浪徒 提交于 2019-12-12 10:33:17
问题 I don't have enough space in my default conda directory so I want conda packages to be downloaded at a different location. I have a conda environment created and activated at /different_drive/condaenv Based on what I found online, I tried editing the .condarc file to have pkgs_dirs - /different_drive/pkgs and edited the permission of the default directory /home/user/conda/pkgs/ to read-only. However, I just get permission denied errors as conda still tries to download the files to the default

pip install packages failing: Invalid requirement & No matching distribution

雨燕双飞 提交于 2019-12-12 10:27:09
问题 I am trying to install packages in a python 3.6.3 virtual environment. I keep getting errors. I have tried pip with --ignore-installed flag like: pip install -I -r package-list.txt . Here is part of what I have in package-list.txt . # This file may be used to create an environment using: # $ conda create --name <env> --file <this file> # platform: linux-64 _libgcc_mutex==0.1==main appdirs==1.4.3==pypi_0 asn1crypto==0.24.0==py36_0 beautifulsoup4==4.7.1==py36_1 blas==1.0==mkl bzip2==1.0.6=

Failed to run Python script with Conda

☆樱花仙子☆ 提交于 2019-12-12 09:44:11
问题 I tried to install menpo like in this tutorial. After that I installed menpofit, menpo3d and menpodetect: conda install -c menpo menpofit conda install -c menpo menpo3d conda install -c menpo menpodetect Next I ran this python script from CMD( python testPy.py ): import menpo.io as mio from menpo.visualize import visualize_images images = list(mio.import_images('A:/img/*.png')) visualize_images(images) And got this output: What am I doing wrong and how I can fix it? 回答1: It seems that

Spawn multiprocessing.Process under different python executable with own path

杀马特。学长 韩版系。学妹 提交于 2019-12-12 09:37:38
问题 I have two versions of Python (these are actually two conda environments) /path/to/bin-1/python /path/to/bin-2/python From one version of python I want to launch a function that runs in the other version using something like the multiprocessing.Process object. It turns out that this is doable using the set_executable method: ctx = multiprocess.get_context('spawn') ctx.set_executable('/path/to/bin-2/python') And indeed we can see that this does in fact launch using that executable: def f(q):

Conda install package from github including requirements.txt

只愿长相守 提交于 2019-12-12 05:28:51
问题 I use a jupyter notebook as part of an anaconda installation. I'd like to install a Python package hosted on Github (i.e., via a https://... or git://... URL), along with all requirements.txt dependencies. This is a custom package developed in-house, not a package published to PyPI. I'm not clear on whether I would want to do it in a conda or a pip / virtualenv environment, or how I would do it. What is the best way to do this? 回答1: This may not be the best way but you can use Ipython console

Activate/deactivate conda environment commands aren't recognized by command prompt

℡╲_俬逩灬. 提交于 2019-12-12 05:19:45
问题 I am going crazy over this issue and would really love some help, as I read countless posts on similar issues but I found no solution to my particular problem. I am on Windows 10 with Anaconda 1.6.2 and Python 2.7.13. I created a new environment in conda (called AntennaTracking) that I want to activate, while deactivating the default environment called root. When I type "conda info --envs" I get both the environments with a * in front of root, showing that both exist and that root is

Python conda traceback: No module named ruamel.yaml.comments

让人想犯罪 __ 提交于 2019-12-12 04:30:32
问题 Ran conda update conda on bash terminal and below is the traceback. Any idea on what is wrong with my installation? yusuf@yusuf-pc2:~$ conda update conda Traceback (most recent call last): File "/usr/local/bin/conda", line 11, in <module> load_entry_point('conda==4.2.7', 'console_scripts', 'conda')() File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 567, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/local/lib/python2.7

How to clean local python environment of conda installs

邮差的信 提交于 2019-12-12 04:08:52
问题 Using the latest miniconda2 I created a conda environment & then did all my conda package installs. Then when I finished I realized I had FORGOT TO ACTIVATE the environment (I'm dizzy) with the command source activate myenv so all my conda installs went into the local/system wide environment. I simply did conda uninstall package-name for all the packages but I'm certain not all the dependencies were removed. For example, conda install of matplotlib showed The following NEW packages will be