conda

Python之路~Scrapy安装

十年热恋 提交于 2019-12-24 22:20:34
Scarpy框架的安装 环境:Anconda Version:conda 4.8.0 开始安装 如果直接使用命令 pip install scrapy 或者 conda install scrapy 可能会报错。安装前需要安装其他的第三方包。 我这里测试过(我安装的是Python的集成包anconda),只需要安装Twisted模块,再通过 conda install scrapy 就能安装成功。 1、下载Twisted 链接地址:https://www.lfd.uci.edu/~gohlke/pythonlibs/#genshi 找到Twisted,根据操作系统的位数选择对应的版本。 下载完成后,会得到一个.whl结尾的文件。 conda install Twisted-19.10.0-cp38-cp38-win_amd64.whl 2、安装Scrapy 使用命令安装, conda install scrapy 3、测试 如果输入import scrapy 没有报错,则说明安装成功了! PS:安装方法简单粗暴,正好适合新手安装,不然一堆的报错,容易让人有挫败感。也是做个学习笔记。 来源: CSDN 作者: 包子加入侵 链接: https://blog.csdn.net/Baozijiaruqing/article/details/103688872

Managing conda env in cross platform environment

自作多情 提交于 2019-12-24 21:35:24
问题 My project supposed to run on cross platform environment (Mac, Win, Linux). I've created a conda env that manage our dependencies for an easy setup. I want to ensure that everyone that want to update the enn could do that, however when I try to export the env from linux to yml file, it couldnt be install properly on Win or Mac and vise versa. I've already tried to do the regular stuff: 1. conda env export > env.yml conda env create --name -f env.yml 2. conda env export --no-builds > env.yml 3

Heroku Deploy Error : No matching distribution found for anaconda-client==1.6.14

旧街凉风 提交于 2019-12-24 19:48:24
问题 I using trying to deploy an application built using python's Dash Framework to Heroku. Following the deploy instructions posted here. I am having an issue when pushing to master repository. Conflict with anaconda installation it looks like. Cmd: git push heroku master Collecting anaconda-client==1.6.14 (from -r /tmp/build_7c37a8969b8001471e926143aa44a460/requirements.txt (line 2)) remote: Could not find a version that satisfies the requirement anaconda-client==1.6.14 (from -r /tmp/build

Add kerberos from pypi to Anaconda under Windows

限于喜欢 提交于 2019-12-24 10:50:13
问题 Complete noob so would appreciate a step-by-step solution. I would like to add kerberos package to Anaconda but don't know how to do it. I have tried the using conda command line: pip install kerberos but it failed. Does anyone know how to go about it? This is the error log from pip: C:\Users\woodas\AppData\Local\Continuum\Anaconda\Scripts\gcc.bat -DMS_WIN64 -mdll -O -Wall -IC:\Users\woodas\AppData\Local\Continuum\Anaconda\include -IC:\Users\woodas\AppData\Local\Continuum\Anaconda\PC -c src

conda install -c anaconda gcc_linux-64 not being used

醉酒当歌 提交于 2019-12-24 10:42:03
问题 I wanted to install updated version of gcc on a server where I do not have root access. I tried conda install -c creditx gcc-7 which was not working. Then I found conda install -c anaconda gcc_linux-64 in fact installs gccv7.3. But after the successful installation, the conda environment still uses the system gcc at /usr/bin/gcc Please help me so that I can use the gcc v7.3 that I just installed. 回答1: As explained here: https://docs.conda.io/projects/conda-build/en/latest/resources/compiler

Unable to use Rcpp after conda install

北城以北 提交于 2019-12-24 08:58:30
问题 I installed R with conda conda install -c r r-essentials Now I cannot use the Rcpp library, even so it is installed with r-essentials . I get the following error: # using library inline to compile a C++ code on the fly library(inline) library(Rcpp) src <- ' std::vector<std::string> s; s.push_back("hello"); s.push_back("world"); return Rcpp::wrap(s); ' hellofun <- cxxfunction(body = src, includes = '', plugin = 'Rcpp', verbose = FALSE) cat(hellofun(), '\n') Error in dyn.load(libLFile): unable

How to install/convert non-Python packages (.tar.bz2) to Anaconda packages?

不想你离开。 提交于 2019-12-24 08:50:11
问题 I need to convert some non-Python packages that are in the .tar.bz2 format to Anaconda/miniConda .egg files and install them. For this I would need a bld.bat file for Windows. Is there any place on the internet where I can find some examples to do this. Maybe it is possible to write a .py Python script to do this as well. The .tar files are present online and I need to download and install those automatically using the script. 回答1: With conda-build you can build non-Python packages the same

Is that a bad idea to use conda and pip install on the same environment?

荒凉一梦 提交于 2019-12-24 07:55:46
问题 I am curious here. Since conda install and pip install in many cases doing essentially the same thing, what would be the best option? Is there a case when someone should stick to pip install only? Symmetrical, is there a case when one should stick to conda install only? Is there a way to shoot in once's foot by using both conda and pip install in a single environment? An update: if both approaches are essentially the same and don't contradict each other there should be no reason to stick

When trying to install pygame on Anaconda Python 3.x is downgraded to Python 2.7

房东的猫 提交于 2019-12-24 07:24:02
问题 I'm working with Anaconda Python 3. I'm trying to install pyOpenGL, Vpython and pygame. Installing pyOpenGL and Vpython is fine using conda install . When I try to install Pygame, using conda install it shows: conda install -c https://conda.binstar.org/kne pygame #same for conda install pygame ... The following NEW packages will be INSTALLED: . . . The following packages will be REMOVED: backports.os-0.1.1-py37_0 importlib_metadata-0.8-py37_0 jeepney-0.4-py37_0 jupyterlab_server-0.2.0-py37_0

Unable to upgrade Conda and install packages using Conda

前提是你 提交于 2019-12-24 07:12:10
问题 In my windows10 environment I am unable to upgrade conda using following command conda update conda My anaconda and python version (base) C:\Users\naseer>conda --version conda 4.5.3 (base) C:\Users\naseer>python --version Python 3.6.4 :: Anaconda, Inc. following is my error log (base) C:\Users\naseer>conda update conda Solving environment: failed '>>>>>>>>>>>>>>>>Error Report>>>>>>>>>>>>>>>>>>> $ C:\Users\naseer\Anaconda3\Scripts\conda update conda environment variables: CCHZPATH=C:\CTEX\CTeX