install

'car' dependency error: Installing caret in R 3.1.2

社会主义新天地 提交于 2020-01-13 19:06:56
问题 Cannot install caret package !! install.packages("caret") Installing package into ‘/home/timekeeper/R/x86_64-unknown-linux-gnu-library/3.1’ (as ‘lib’ is unspecified) Warning: dependency ‘car’ is not available trying URL 'http://mirrors.softliste.de/cran/src/contrib/caret_6.0-52.tar.gz' Content type 'application/x-gzip' length 3665293 bytes (3.5 Mb) opened URL ================================================== downloaded 3.5 Mb ERROR: dependency ‘car’ is not available for package ‘caret’ *

开发函数计算的正确姿势——使用交互模式安装依赖

烈酒焚心 提交于 2020-01-13 15:38:22
前言 首先介绍下在本文出现的几个比较重要的概念: 函数计算(Function Compute) : 函数计算 是一个事件驱动的服务,通过函数计算,用户无需管理服务器等运行情况,只需编写代码并上传。函数计算准备计算资源,并以弹性伸缩的方式运行用户代码,而用户只需根据实际代码运行所消耗的资源进行付费。函数计算更多信息 参考 。 Fun : Fun 是一个用于支持 Serverless 应用部署的工具,能帮助您便捷地管理函数计算、API 网关、日志服务等资源。它通过一个资源配置文件(template.yml),协助您进行开发、构建、部署操作。Fun 的更多文档 参考 。 备注: 本文介绍的技巧需要 Fun 版本大于等于 3.0.0-beta.1 。 依赖工具 本项目是在 MacOS 下开发的,涉及到的工具是平台无关的,对于 Linux 和 Windows 桌面系统应该也同样适用。在开始本例之前请确保如下工具已经正确的安装,更新到最新版本,并进行正确的配置。 Docker Fun Fun 和 Fcli 工具依赖于 docker 来模拟本地环境。 对于 MacOS 用户可以使用 homebrew 进行安装: Windows 和 Linux 用户安装请参考: https://github.com/aliyun/fun/blob/master/docs/usage/installation.md

编译安装HAProxy for Ubuntu1804

亡梦爱人 提交于 2020-01-13 15:06:27
环境 OS:Ubuntu1804 haproxy: http://www.haproxy.org/download/2.0/src/haproxy-2.0.4.tar.gz lua:http://www.lua.org/ftp/lua-5.3.5.tar.gz IP:192.168.7.182 安装步骤 1.准备编译安装HAProxy的基础环境 # apt install make gcc build-essential libssl-dev zlib1g-dev libpcre3 libpcre3-dev libsystemd-dev libreadline-dev -y 2.编译安装lua,为HAProxy支持基于其实现功能扩展。 注:HAProxy要求的lua最低版本为5.3 2.1 下载并且安装lua # wget -P /usr/local/src/ http://www.lua.org/ftp/lua-5.3.5.tar.gz # cd /usr/local/src/ # tar xf lua-5.3.5.tar.gz # cd lua-5.3.5/src/ # make linux 2.2 查看编译后的版本 # ./lua -v Lua 5.3.5 Copyright (C) 1994-2018 Lua.org, PUC-Rio 3.编译安装haproxy 3.1

Maven 打包 package install deploy 区别

回眸只為那壹抹淺笑 提交于 2020-01-13 11:24:13
一、打包区别 mvn package :打包到本项目,一般在项目 target 目录下。 mvn install :打包到本地仓库,如果没设置 Maven 本地仓库,一般在 用户/.m2 目录下。 mvn deploy :打包上传到远程仓库,如:私服 nexus 等,需要配置 pom 文件。 二、打包过程 mvn clean package 依次执行:clean、resources、compile、testResources、testCompile、test、jar(打包)。 mvn clean install 依次执行:clean、resources、compile、testResources、testCompile、test、jar(打包)、install。 mvn clean deploy 依次执行:clean、resources、compile、testResources、testCompile、test、jar(打包)、install、deploy。 由上面分析主要区别如下: package命令:完成项目编译、单元测试、打包功能,但打包文件未部署到本地Maven仓库和远程Maven仓库。 install命令:完成项目编译、单元测试、打包功能,同时把打包文件部署到本地Maven仓库,但未部署到远程Maven仓库。 deploy命令:完成项目编译、单元测试、打包功能

npm package.json中的dependencies和devDependencies的区别

♀尐吖头ヾ 提交于 2020-01-13 10:09:32
一个node package有两种依赖,一种是dependencies一种是devDependencies,其中前者依赖的项该是正常运行该包时所需要的依赖项,而后者则是开发的时候需要的依赖项,像一些进行单元测试之类的包。 如果你将包下载下来在包的根目录里运行 npm install 默认会安装两种依赖,如果你只是单纯的使用这个包而不需要进行一些改动测试之类的,可以使用 npm install --production 只安装dependencies而不安装devDependencies。 如果你是通过以下命令进行安装 npm install packagename 那么只会安装dependencies,如果想要安装devDependencies,需要输入 npm install packagename --dev 参考文献: npm官方文档: package.json npm-install 来源: https://www.cnblogs.com/jes_shaw/p/4497836.html

How do I reinstall a directory in /usr/bin/python [closed]

坚强是说给别人听的谎言 提交于 2020-01-13 09:40:07
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I have researched this for hours to no avail. I think I deleted my directory at /usr/bin/python when I installed python 3 because I get this error: -bash: /usr/bin/python: No such file or directory. I've tried sudo ln -s /usr/bin/python2.7 /usr/bin/python , and that gives me ln: /usr/bin/python: File exists

Determine whether a user installed our app via Market link

最后都变了- 提交于 2020-01-13 09:03:33
问题 I have an app which is linked to (via an Android Market URL) on several different websites. What I need to implement is a way to determine where my users came from. Is there a way to determine the referring URL that the user followed to download my app via the Android Market? For example, user A browses site xyz.com and clicks the link to view my app on the Android Market and then proceeds to download it. Once installed can I "programmaticaly" see where the user came from (xyz.com)? I need to

Are there any function replacement for pip.get_installed_distributions() in pip 10.0.0 version?

自作多情 提交于 2020-01-13 08:58:13
问题 When I try to import pip package and use pip.get_installed_distributions(), console is printing error: AttributeError: 'module' object has no attribute 'get_installed_distributions' Are there any solutions which exclude downgrading pip? 回答1: Update With Python 3.8, the standard library has got a way of querying the environment for installed distributions and their metadata: importlib.metadata. For older Python versions, there's a backport importlib_metadata: $ pip install importlib-metadata

./configure,make,make install的作用

北城以北 提交于 2020-01-13 07:23:25
./configure是用来检测你的安装平台的目标特征的。比如它会检测你是不是有CC或GCC,并不是需要CC或GCC,它是个shell脚本。 make是用来 编译 的,它从 Makefile 中读取指令,然后编译。 make install是用来 安装 的,它也从 Makefile 中读取指令,安装到指定的位置。 make clean清除编译产生的可执行文件及目标文件(object file,*.o)。 make distclean:除了清除可执行文件和目标文件外,把configure所产生的Makefile也清除掉。 1、configure,这一步一般用来生成 Makefile,为下一步的编译做准备,你可以通过在 configure 后加上参数来对安装进行控制,比如代码:./configure –prefix=/usr 意思是将该软件安装在 /usr 下面,执行文件就会安装在 /usr/bin (而不是默认的 /usr/local/bin),资源文件就会安装在 /usr/share(而不是默认的/usr/local/share)。同时一些软件的配置文件你可以通过指定 –sys-config= 参数进行设定。有一些软件还可以加上 –with、–enable、–without、–disable 等等参数对编译加以控制,你可以通过允许 ./configure –help

Error while trying to install sklearn from Pycharm | arrayobject.h cannot be absolute

北慕城南 提交于 2020-01-13 05:40:10
问题 Complete error statement: ValueError: path '/home/andy/anaconda3/lib/python3.5/sitepackages/numpy/core/include/numpy/arrayobject.h' cannot be absolute I have installed Scipy and numpy (mkl) version by downloading the compiled wheel files from this link and then installing it from the cmd using pip . I'm more of a python noob, my focus is primarily machine learning. Kindly help me out. 回答1: Listen, i encountered today a similar problem. Do you use Python 3.6 (Latest version) ? If you do, you