conda

Wrong pip in conda env

ⅰ亾dé卋堺 提交于 2019-12-05 10:54:06
I have a conda env called birdid. While working in the env (i.e. I did source activate bird_dev ), showing the list of the packages give (bird_dev)...$ conda list # packages in environment at /home/jul/Development/miniconda/envs/bird_dev: # ... pep8 1.6.2 py27_0 pip 7.1.2 py27_0 pixman 0.26.2 0 ... but when trying to see what pip is used I get (bird_dev)...$ which pip /usr/local/bin/pip while the correct python is found (bird_dev)...$ which python /home/jul/Development/miniconda/envs/bird_dev/bin/python Anybody can help? Edit: more details about the installed versions Check which -a pip (bird

Windows: Anaconda 'python' is not recognized as an internal or external command on CMD

随声附和 提交于 2019-12-05 09:31:52
This is starting to get aggravating. I'm getting the typical 'python' is not recognized as an internal or external command... message when trying to run python on the command line. This is a common issue, and I've found plenty of posts saying to fix it by adding python folder ( C:\Users\ftake\Anaconda3 ) my Windows path (restarted my PC after that) but nothing worked for me. The problem is that I've already Anaconda 1.8.2 installed on my computer and when trying to run python on CMD an error message occurs saying that python is not recognized as an internal... I've tried to install pyinstaller

centos 7 配置pytorch运行环境

99封情书 提交于 2019-12-05 09:24:01
华为云服务器,4核心8G内存,没有显卡,性能算凑合,赶上双11才不到1000,性价比还可以,打算配置一套训练densenet的环境。 首先自带的python版本是2.7,由于明年开始就不再维护了,所以安装了个conda。 wget https://repo.continuum.io/archive/Anaconda3-5.3.0-Linux-x86_64.sh 发现实在太慢,找了个清华的源,快了很多。 wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-4.3.0-Linux-x86_64.sh (这里4.3.0可以换成5.3.0,4.3.0的python版本好像是3.6 ,后面再安装pytorch和torchvision的时候可能还需要升级python版本) chmod 777 anaconda3.4.3.0-Linux-x86_64.sh ./anaconda3.4.3.0-Linux-x86_64.sh 一直yes,安装好后,会提示是否加入系统变量中,点击yes,再执行命令 :source ~/.bachrc 输入python --version 检查是否版本从2.7升级到3.6 输入conda list,检查conda是否安装好 然后安装pytorch和torchvision conda

在.slurm文件中激活Anaconda环境

随声附和 提交于 2019-12-05 09:06:41
超算中心使用slurm作为集群调度。原始slurm脚本如下: source activate tuzhuo python neural_style.py --content content/nju-1.jpg --styles style/18.jpg --output result-v100/result-nju-18.jpg 提交任务后报错: 很明显,第一句激活anaconda环境失败了,提示找不到conda activate可执行程序。 Google了一下,发现了这个: https://github.com/conda/conda/issues/5071 看了一下,大概心里有数了,直接将slurm脚本改为: source /home/xieweibo/project/software/anaconda3/bin/activate tuzhuo python neural_style.py --content content/nju-1.jpg --styles style/18.jpg --output result-v100/result-nju-18.jpg 也就是将conda activate可执行程序作为绝对路径在任务脚本中索引即可。 任务成功提交至调度系统: tz@croplab,hzau 2019-11-23 来源: https://www.cnblogs.com

How to install Apache Toree for Spark Kernel in Jupyter in (ana)conda environment?

China☆狼群 提交于 2019-12-05 08:17:19
I am trying to install Jupyter -support for Spark in a conda environment (which I set up using http://conda.pydata.org/docs/test-drive.html ) of the anaconda distribution . I am trying to use apache toree as Jupyter Kernel for this. Here is what I did after I installed Anaconda: conda create --name jupyter python=3 source activate jupyter conda install jupyter pip install --pre toree jupyter toree install Everything worked fine until I reached the last line. There I get PermissionError: [Errno 13] Permission denied: '/usr/local/share/jupyter' Which begs the question: Why is it even looking in

`conda update --all` not updating Spyder

假装没事ソ 提交于 2019-12-05 08:11:57
I just installed Anaconda on a Windows 10 machine and the first thing I did thereafter was go into the Anaconda Prompt and run conda udpate conda and then conda update --all . As expected, it updated a lot of stuff. When I then ran Spyder, however, I got a pop-up saying that a new version of Spyder was available. What? I just updated everything. Checking conda list I see that sypder 3.2.4 is indeed installed, so I do the following: (base) C:\Users\Mark>conda update --all Solving environment: done All requested packages already installed. (base) C:\Users\Mark>conda update spyder Solving

portable conda environment as a binary tarball

心已入冬 提交于 2019-12-05 07:49:01
I am trying to build a portable conda environment. So we can tarball and distribute it to another server or many servers later. Place where we build environment and where it'll be deployed later are two different places. I noticed that conda create and conda install both hard-code environment location into shebang of all the installed scripts under environment_path\bin - is there is a way to override that? We have to use deployment location and not build location for that environment in shebang bin/ scripts. Also created https://github.com/conda/conda/issues/7861 Disclaimer: I'm aware of

PyQt5 and OpenCV have similar libraries; how to avoid conflict between the 2?

守給你的承諾、 提交于 2019-12-05 04:58:41
I have PyQt5 and OpenCV in the same conda virtual environment. opencv-python==3.4.1.15 PyQt5==5.10.1 Whenever I run my PyQt5 app, I get many warnings like these: objc[7992]: Class QCocoaPageLayoutDelegate is implemented in both /Users/alexryan/miniconda3/envs/qacker/lib/python3.5/site-packages/cv2/.dylibs/QtGui (0x109ae0290) and /Users/alexryan/miniconda3/envs/qacker/lib/python3.5/site-packages/PyQt5/Qt/lib/QtPrintSupport.framework/Versions/5/QtPrintSupport (0x10a387f20). One of the two will be used. Which one is undefined. objc[7992]: Class QCocoaPrintPanelDelegate is implemented in both

Python anaconda conda issue: updating anaconda package impossible because processes are running

筅森魡賤 提交于 2019-12-05 04:09:26
I have an issue with updating anaconda's packages with conda. when I make a conda update --all there is an issue which says to me: Error: Unable to remove files for package: cryptography Please close all processes running code from cryptography and try again. however, none process are running, I have just the cmd window open. Same story when I want update dateutile for instance. It is like if conda uses some package and then I cannot update them? Somebody knows a method to close or remove those packages in order to reinstall them? For information: C:\Anaconda3\Scripts>conda info -a Current

Layout and importing for pytest in python3

可紊 提交于 2019-12-05 03:55:52
I'm having trouble importing modules from my pytest functions. I know there's a million questions on this, but I've read through a bunch, and I'm still having trouble understanding. $ tree . └── code ├── eight_puzzle.py ├── missionaries_and_cannibals.py ├── node.py ├── search.py └── test ├── test_eight_puzzle.py └── test_search.py 2 directories, 6 files $ $ grep import code/test/test_search.py import sys import pytest import code.search $ $ pytest ... ImportError while importing test module '~/Documents/code/test/test_search.py'. Hint: make sure your test modules/packages have valid Python